Integrate LessToken's compression capabilities into VS Code using MCP-compatible extensions. Use compression tools directly in your VS Code workflow.
Visual Studio Code supports MCP servers through various extensions and configurations. By configuring VS Code to use our MCP server, you can access compression tools directly in your development environment.
This integration allows you to compress code, documentation, and prompts before sending them to AI models, reducing token usage and improving efficiency.
Install an MCP-compatible extension in VS Code. Popular options include:
Configure the MCP server in your extension's settings. The configuration format depends on your extension, but typically involves adding the server URL and API key:
{
"mcpServers": {
"less-token-compression": {
"url": "https://lesstokens.hive-hub.ai/api/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY_HERE"
}
}
}
}YOUR_API_KEY_HERE with your actual LessToken API key. The exact configuration location depends on your extension.After saving the configuration, restart VS Code completely. The MCP server will be connected when VS Code starts.
In VS Code, you should now see the compress_text tool available in your AI assistant. You can verify this by checking available tools or using compression in your conversations.
If you're using the Continue.dev extension in VS Code, you can configure the MCP server in the Continue.dev configuration file:
{
"mcpServers": {
"less-token-compression": {
"url": "https://lesstokens.hive-hub.ai/api/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY_HERE"
}
}
}
}For more detailed instructions, see our Continue.dev integration guide.