Context Master for VS CodeDeterministic AST-based context for coding agents. Context Master runs an MCP server inside VS Code and exposes opinionated and streamlined tools that let agents navigate along the edges of the AST tree using data obtained from the VSCode API. This prevents hallucinations or ambiguous results from regular grepping through files. Why Context Master?Modern AI assistants are powerful, but they often lack the deep understanding of your project's architecture needed to generate high-quality, context-aware code. Context Master solves this by providing the AI with the same deep-level insights a human developer would have. This gives you:
How It WorksContext Master starts a local MCP server that your AI assistant can connect to. This server exposes a set of powerful tools that allow the AI to query your codebase using the full power of VS Code's language intelligence. The AI will follow along traceable edges of the AST tree and thus get a complete and accurate picture of the codebase. Biggest Capabilities
For a more in-depth explanation of how Context Master works, please refer to our website's how it works page. MCP Tools Exposed
Quick Start
Example Cursor MCP config:
AGENTS.md HelperThe extension includes a built-in AGENTS.md installer:
Behavior:
Free vs Licensed
Key Settings
Command Palette Commands
Privacy & TelemetryContext Master respects VS Code's global telemetry setting. If telemetry is disabled in VS Code, the extension does not send any telemetry or analytics data. Your source code or any other sensible data never leaves your machine, not even graph state or topology are logged anywhere but locally on your machine. Privacy policy: https://context-master.dev/privacy FeedbackReport issues or requests at context-master-issues. TroubleshootingHere are some answers to frequently asked questions: Q: How do I configure my AI Assistant (e.g., Cursor) to use Context Master? A: Open Context Master dashboard -> Ports and copy the mapped port for your current workspace. Add that port to your assistant MCP configuration:
Each VS Code window runs its own MCP server instance. Ports are stable per workspace and stored in a machine-local Port Map. Q: Why do I need to configure different ports per VSCode Workspace? A: Each workspace uses its own MCP server instance to keep workspace context isolated. This avoids forcing the LLM to choose the correct workspace on every interaction, which would otherwise require adding an extra workspace parameter to each tool call. Keeping ports separate reduces decision overhead and keeps calls simpler and more deterministic. We may revisit this approach in the future if it becomes clear that LLMs can reliably handle the added multi-workspace complexity. Q: The extension seems stuck on indexing. What should I do? A: Initial indexing can take some time for large projects. You can see the progress in the notification area. If it seems stuck, try the following:
Q: The mapped port is already in use. What should I do? A: Context Master prompts you with three options: Increase to the next suggested port, Open Port Map to edit assignments, or Retry after you manually free the port. The selected mapping is persisted in the Port Map. Q: Does Context Master support multi-root workspaces? A: Yes, there is preliminary support for multi-root workspaces. However, tool calls are currently scoped to a single workspace folder at a time. This means the AI cannot yet see a structurally linked overview of all your open folders at once. If you'd like to see more advanced multi-root support, please let us know by opening an issue or starting a discussion on our GitHub repository! Q: Why isn't my AI assistant using the tools from Context Master? A: First, verify your MCP server configuration in your AI assistant's settings. Second, check the VS Code status bar to ensure the Context Master server is running. If you see an error, check the extension logs. Finally, consult your AI assistant's documentation to see how it discovers and uses MCP tools. Q: How can I inspect what the extension is doing? A: Use Q: I found a bug or have a feature request. Where should I report it? A: We'd love to hear from you! Please head over to our GitHub repository to open an issue or start a discussion. |