Skip to main content
Glama

Code Context Provider MCP

by AB498

get_code_context

Analyzes a project directory to generate a comprehensive codebase overview, including directory structure and code symbols. Use to quickly understand project layout and key elements at task initiation.

Instructions

Returns Complete Context of a given project directory, including directory tree, and code symbols. Useful for getting a quick overview of a project. Use this tool when you need to get a comprehensive overview of a project's codebase. Useful at the start of a new task.

Input Schema

NameRequiredDescriptionDefault
absolutePathYesAbsolute path to the directory to analyze. For windows, it is recommended to use forward slashes to avoid escaping (e.g. C:/Users/username/Documents/project/src)
analyzeJsNoWhether to analyze JavaScript/TypeScript and Python files. Returns the count of functions, variables, classes, imports, and exports in the codebase.
includeSymbolsNoWhether to include code symbols in the response. Returns the code symbols for each file.
maxDepthNoMaximum directory depth for code analysis (default: 5 levels). Directory tree will still be built for all levels. Reduce the depth if you only need a quick overview of the project.
symbolTypeNoType of symbols to include if includeSymbols is true. Otherwise, returns only the directory tree.all

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "absolutePath": { "description": "Absolute path to the directory to analyze. For windows, it is recommended to use forward slashes to avoid escaping (e.g. C:/Users/username/Documents/project/src)", "type": "string" }, "analyzeJs": { "default": false, "description": "Whether to analyze JavaScript/TypeScript and Python files. Returns the count of functions, variables, classes, imports, and exports in the codebase.", "type": "boolean" }, "includeSymbols": { "default": false, "description": "Whether to include code symbols in the response. Returns the code symbols for each file.", "type": "boolean" }, "maxDepth": { "default": 5, "description": "Maximum directory depth for code analysis (default: 5 levels). Directory tree will still be built for all levels. Reduce the depth if you only need a quick overview of the project.", "type": "number" }, "symbolType": { "default": "all", "description": "Type of symbols to include if includeSymbols is true. Otherwise, returns only the directory tree.", "enum": [ "functions", "variables", "classes", "imports", "exports", "all" ], "type": "string" } }, "required": [ "absolutePath" ], "type": "object" }

Other Tools from Code Context Provider MCP

Related Tools

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/AB498/code-context-provider-mcp'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server