Code Context Provider MCP

by AB498
Verified

get_code_context

Retrieve a comprehensive overview of a project's codebase, including directory structure and code symbols, to quickly understand its architecture and components. Ideal for starting new tasks or analyzing unfamiliar projects.

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" }

You must be authenticated.

Other Tools from Code Context Provider MCP

Related Tools

ID: dxvglivv9l