VSCode Setup Guide¶
This guide covers multiple ways to use Tenets with Visual Studio Code.
Option 1: VSCode Extension (Recommended)¶
The easiest way to use Tenets with VSCode is through the official extension.
Installation¶
Install Tenets with MCP support:
Install the VSCode extension:
- Install from VS Code Marketplace (recommended)
- Or search "Tenets MCP Server" in VSCode Extensions panel
Or install via command line:
code --install-extension ManicAgency.tenets-mcp-serverReload VSCode (the extension auto-starts the server on launch)
Features¶
- ✅ Auto-start: Server starts automatically when VSCode launches
- ✅ Status indicator: Shows server status in status bar
- ✅ Log viewer: View server logs in Output panel
- ✅ Commands: Start, stop, restart server via Command Palette
Commands¶
Access via Command Palette (Cmd+Shift+P / Ctrl+Shift+P):
- Tenets: Start MCP Server - Manually start the server
- Tenets: Stop MCP Server - Stop the running server
- Tenets: Restart MCP Server - Restart the server
- Tenets: View Logs - Open the Tenets MCP output channel
Configuration¶
Open VSCode Settings and search for "Tenets":
{
"tenets.mcpPath": "", // Path to tenets-mcp (leave empty for auto-detect)
"tenets.autoStart": true // Auto-start server on VSCode launch
}
Troubleshooting¶
Server not starting¶
Verify installation:
Check if
[mcp]extra is installed:View logs:
- Click status bar item (shows "Tenets: Active" or "Tenets: Inactive")
- Or run "Tenets: View Logs" command
Check for error messages
Manual path configuration:
- If auto-detection fails, find your tenets-mcp path:
- Set
tenets.mcpPathin VSCode settings to the full path
Option 2: Manual MCP Configuration¶
If you prefer not to use the extension, you can configure Tenets as an MCP server manually (though this won't work with Claude Code extension v2.0.65 as it doesn't support custom MCP servers).
For Cursor IDE¶
Edit ~/.cursor/mcp.json:
For Claude Desktop¶
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
Or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Option 3: Claude Code CLI¶
Use Tenets with Claude Code from the terminal:
Configure CLI (
~/.config/claude/settings.json):Run Claude Code:
Use Tenets tools:
Verification¶
After installation, verify Tenets is working:
- Check server status:
- VSCode extension: Look for status bar item
CLI: The server starts automatically when Claude Code connects
Test a tool:
In your AI assistant, ask:
View available tools:
- Ask your AI:
Expected tools: - distill - Build ranked, token-optimized context - rank_files - Fast file relevance ranking - examine - Code structure analysis - chronicle - Git history analysis - momentum - Development velocity tracking - session_create, session_list, session_pin_file, session_pin_folder - tenet_add, tenet_list, tenet_instill
Common Issues¶
"Tenets MCP Server not found"¶
Cause: tenets-mcp executable is not on PATH
Solution:
# Find it
which tenets-mcp
# If not found, install with [mcp]
pipx install tenets[mcp]
# Verify
tenets-mcp --version
"ModuleNotFoundError: No module named 'mcp'"¶
Cause: Installed tenets without [mcp] extra
Solution:
Extension installed but server not running¶
Cause: Auto-start might be disabled or tenets-mcp not found
Solution: 1. Check settings: tenets.autoStart should be true 2. Manually start: Run "Tenets: Start MCP Server" command 3. View logs to see error messages 4. Set tenets.mcpPath if auto-detection fails
Server keeps restarting¶
Cause: The tenets-mcp process is crashing
Solution: 1. View logs ("Tenets: View Logs") 2. Check for Python errors 3. Verify [mcp] extra is installed correctly 4. Try running tenets-mcp manually in terminal to see errors
Performance Tips¶
Session pinning - Pin frequently used files to avoid re-ranking:
Tenet injection - Set up guiding principles once:
Distill modes:
fast- Quick BM25 ranking (default)balanced- BM25 + TF-IDF + git signalsthorough- All ranking factors + import centrality
Next Steps¶
- Read the MCP documentation: docs/MCP.md
- Explore CLI usage: docs/CLI.md
- Configure tenets: docs/CONFIG.md
- Learn about architecture: docs/architecture/
Reporting Issues¶
If you encounter problems:
- Check logs ("Tenets: View Logs" in VSCode)
- Run
tenets-mcpmanually in terminal to see errors - Verify installation:
pip list | grep tenets - Report issues: https://github.com/jddunn/tenets/issues
Include in your report: - VSCode version - Extension version - Python version - Output from which tenets-mcp - Relevant logs from Output panel