Loading connector details…
Loading connector details…
Choose a unique username to continue using AgentHotspot
by wrale • Search & Retrieval
An MCP server that provides structure-aware code analysis using tree-sitter to give AI assistants intelligent, context-managed access to codebases.
Extract and traverse ASTs or symbols (functions, classes) from a repository to perform code understanding and generation tasks.
Search codebases using text search or tree-sitter queries to find patterns, usages, or potential refactor targets.
Fetch bounded, context-appropriate slices of files (lines, AST depth) with caching and project persistence to stay within model context windows.
This server implements the Model Context Protocol (MCP) to expose ASTs, symbol extraction, search, and query capabilities using tree-sitter parsers. It supports many languages, efficient cursor-based traversal, parse-tree caching, and project state persistence for repeated analysis. Integrations and tools are provided to register projects, fetch files or line ranges, run tree-sitter queries, and analyze complexity or dependencies. Designed for use with Claude Desktop (reference) but reusable directly as a Python library or standalone server.
Configure the server. Args: config_path: Path to YAML config file cache_enabled: Whether to enable parse tree caching max_file_size_mb: Maximum file size in MB log_level: Logging level (DEBUG, INFO, WARNING, ERROR) Returns: Current configuration
Register a project directory for code exploration. Args: path: Path to the project directory name: Optional name for the project (defaults to directory name) description: Optional description of the project Returns: Project information
List all registered projects. Returns: List of project information
Remove a registered project. Args: name: Project name Returns: Success message
List available languages. Returns: Information about available languages
Create a prompt for reviewing a code file
Create a prompt for explaining a code file
Create a prompt explaining tree-sitter query syntax
Create a prompt for suggesting code improvements
Create a prompt for a project overview analysis
Scores are informational only and provided “as is” without warranty. AgentHotspot assumes no liability for actions taken based on these ratings.