Documentation Index
Fetch the complete documentation index at: https://mintlify.com/S1LV4/th0th/llms.txt
Use this file to discover all available pages before exploring further.
Overview
th0th integrates with VSCode through the Model Context Protocol (MCP), providing semantic search, memory, and context compression to:- VSCode Copilot - GitHub’s AI pair programmer
- Antigravity - Alternative AI coding assistant for VSCode
Quick Setup
The fastest way to configure th0th for VSCode is using the setup script:- Check prerequisites (Bun, Ollama)
- Start the th0th API if not running
- Create
.vscode/mcp.jsonin your workspace - Test the MCP server connection
- Generate example configurations
The setup script creates both workspace-level (
.vscode/mcp.json) and user-level (~/.config/th0th/mcp.json.example) configurations.Manual Setup
If you prefer to configure manually, follow these steps:Configuration Options
Using npx Instead of bunx
If you don’t have Bun installed, use npx:.vscode/mcp.json
Custom API URL
If your th0th API runs on a different host or port:.vscode/mcp.json
Development Mode
To run th0th from source for development:.vscode/mcp.json
Workspace vs User Configuration
- Workspace Config
- User Config
Configure th0th for a specific project:Location:
.vscode/mcp.json in your project rootUse when:- The project has specific th0th requirements
- You want to commit the configuration to version control
- Different projects use different th0th instances
.vscode/mcp.json
Using with VSCode Copilot
Once configured, th0th tools are available in GitHub Copilot Chat:Open Copilot Chat
Click the Copilot icon in the activity bar or press:
Cmd+Shift+I(Mac)Ctrl+Shift+I(Windows/Linux)
Using with Antigravity
Antigravity follows the same MCP configuration:Setup Script Details
Thesetup-vscode.sh script automates the entire setup process:
Script Output
Successful setup looks like this:Verification
Check MCP output
In VSCode, open the Output panel:
- Press
Cmd+Shift+U(Mac) orCtrl+Shift+U(Windows/Linux) - Select “MCP” from the dropdown
- Look for th0th connection messages
Troubleshooting
Tools not appearing in Copilot
Tools not appearing in Copilot
- Check VSCode Output → MCP for error messages
- Verify th0th API is running:
curl http://localhost:3333/health - Reload VSCode window:
Cmd+Shift+P→ “Developer: Reload Window” - Check
.vscode/mcp.jsonsyntax is valid JSON
Command not found: bunx
Command not found: bunx
Install Bun or switch to npx:
API connection refused
API connection refused
The API may not be running or using a different port:
Permission denied errors
Permission denied errors
Ensure the MCP client package has execute permissions:
MCP server crashes
MCP server crashes
Check the VSCode Output → MCP for stack traces, then:
- Verify your Node/Bun version is compatible
- Try running the MCP client directly:
bunx @th0th-ai/mcp-client --help - Check for conflicting MCP servers in
.vscode/mcp.json
API Management
Useful commands for managing the th0th API:Next Steps
MCP Tools Reference
Learn about all available th0th MCP tools
Configuration
Configure embedding providers and models
OpenCode Integration
Use th0th with OpenCode for better performance
Docker Setup
Run th0th in Docker containers