Provide Code Context for AI Assistants
AI code context provider MCP server. Extracts directory structure and code symbols using WebAssembly Tree-sitter. Zero native dependencies.
Why it matters
Enhance AI coding assistants by providing detailed code context, including directory structure and code symbols, extracted efficiently using WebAssembly Tree-sitter parsers.
Outcomes
What it gets done
Generate directory tree structures.
Extract code symbols (functions, variables, classes) from JavaScript, TypeScript, and Python files.
Filter code context based on file patterns and directory depth.
Integrate seamlessly with AI assistants via the MCP protocol.
Install
Add it to your toolbox
Run in your project directory:
curl -fsSL https://spark.entire.vc/get/vb-code-context-provider-mcp | bash Capabilities
Tools your agent gets
Analyzes a directory and returns its structure along with code symbols like functions, variables, and classes.
Overview
code-context-provider-mcp server
What it does
What it does
This MCP server provides code context and analysis for AI assistants by extracting directory structure and code symbols. It utilizes WebAssembly Tree-sitter parsers, eliminating the need for native dependencies.
When to use
Use this tool when you need to provide an AI assistant with detailed information about your project's codebase, including its file structure and the definitions of functions, variables, and classes. It's ideal for tasks like code generation, refactoring suggestions, or documentation assistance.
Inputs and outputs
Inputs: The primary input is a directory path that the server will analyze. Users can also provide file pattern filters and specify the analysis depth.
Outputs: The server outputs the directory tree structure, a list of code symbols (functions, variables, classes, imports, exports) found within supported files, and analysis results based on the provided configuration.
Integrations
This MCP server is designed for integration with AI assistants that support the MCP protocol. Specific client integrations mentioned include:
- Smithery: Can be installed via the Smithery CLI for Claude clients.
Who it's for
This tool is for those working with JavaScript/TypeScript and Python projects who want to integrate code analysis without managing complex native dependencies. Unlike tools that require local compilation or specific language runtimes, this MCP server offers a lightweight, WebAssembly-based solution.
Here's how to install it globally:
npm install -g code-context-provider-mcp
Discussion
Questions & comments · 0
Sign In Sign in to leave a comment.