MCP-Server

Symvanta

com.symvanta/code-graph
Daten & Analytik Entwicklertools Öffentlich und erreichbar MCP 2025-11-25

Was dieses MCP kann

Indexes GitHub repositories into a code graph for symbol lookup, dependency and caller analysis, architecture questions, change impact, source access, and repository history.

add_repository
Attach a GitHub repository to a project (owner + repo_name; clone URL derived; projectId defaults to the bound / default project). Public repos need nothing else. Private repos need installation_id from list_installations (a GitHub App installation that covers the repo) or a workspace PAT saved on the dashboard; without either the attach is refused (private_repository_needs_credential) instead of failing on the queued clone. Idempotent. First attach dispatches an indexing job; response carries visibility, credential ("installation" | "pat" | null), indexing_status ("queued" | "already_indexed") and indexing_job_id to poll. Needs mcp:admin.
Externer Zugriff Idempotent
Eingabeschema
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['owner', 'repo_name'], 'properties': {'owner': {'type': 'string', 'pattern': '^[a-zA-Z0-9\\-_.]+$', 'maxLength': 255, 'minLength': 1, 'description': 'GitHub owner (user or org)'}, 'feedback': {'type': 'object', 'required': ['answerId', 'outcome'], 'properties': {'outcome': {'enum': ['useful', 'dead_end', 'corrected'], 'type': 'string', 'description': 'How the answer worked out.'}, 'answerId': {'type': 'string', 'maxLength': 36, 'minLength': 36, 'description': 'answer_id from a previous ask_codebase response'}, 'correction': {'type': 'string', 'maxLength': 2000, 'description': 'Only when the user corrected the answer'}}, 'description': 'Optional: report how a previous answer worked out; piggybacks on any call.'}, 'projectId': {'type': 'string', 'minLength': 1, 'description': 'Project id from init/list_projects. Omit for the active project.'}, 'repo_name': {'type': 'string', 'pattern': '^[a-zA-Z0-9\\-_.]+$', 'maxLength': 255, 'minLength': 1, 'description': 'Repository name'}, 'default_branch': {'type': 'string', 'maxLength': 255, 'minLength': 1, 'description': 'Default branch (default main)'}, 'installation_id': {'type': 'string', 'maxLength': 64, 'minLength': 1, 'description': 'Private repository: id of a GitHub App installation from list_installations that covers it. Refused (installation_lacks_repository) when the installation does not grant access.'}}}
adr
Architecture decision records: the WHY behind code, anchored to a symbol/file/project. Survive reindexes; find_node attaches a node's decisions. Ops: - record: needs title+decision. Anchor with repository+symbolPath or +filePath; omit both for project-wide. Optional context, consequences, status. - list: records for a project, filter by repository/symbolPath/filePath/status. - update: needs id; status:"superseded"+supersededById, or "deprecated".
Eingabeschema
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['op'], 'properties': {'id': {'type': 'integer', 'maximum': 9007199254740991, 'minimum': 1, 'description': 'update: record id (from adr list or find_node decisions).'}, 'op': {'enum': ['record', 'list', 'update'], 'type': 'string', 'description': 'record: create a decision record. list: read records. update: amend or supersede one.'}, 'limit': {'type': 'integer', 'maximum': 100, 'minimum': 1, 'description': 'list: max records (default 20).'}, 'title': {'type': 'string', 'maxLength': 200, 'minLength': 3, 'description': 'record: short imperative title, e.g. "No pgvector".'}, 'status': {'enum': ['proposed', 'accepted', 'superseded', 'deprecated'], 'type': 'string', 'description': 'record/update: lifecycle status.'}, 'context': {'type': 'string', 'maxLength': 20000, 'description': 'Why (constraints, alternatives rejected).'}, 'decision': {'type': 'string', 'maxLength': 20000, 'minLength': 3, 'description': 'record: what was decided.'}, 'feedback': {'type': 'object', 'required': ['answerId', 'outcome'], 'properties': {'outcome': {'enum': ['useful', 'dead_end', 'corrected'], 'type': 'string', 'description': 'How the answer worked out.'}, 'answerId': {'type': 'string', 'maxLength': 36, 'minLength': 36, 'description': 'answer_id from a previous ask_codebase response'}, 'correction': {'type': 'string', 'maxLength': 2000, 'description': 'Only when the user corrected the answer'}}, 'description': 'Optional: report how a previous answer worked out; piggybacks on any call.'}, 'filePath': {'type': 'string', 'maxLength': 2000, 'minLength': 1, 'description': 'Anchor: repo-relative file path.'}, 'projectId': {'type': 'string', 'minLength': 1, 'description': 'Project id from init/list_projects. Omit for the active project.'}, 'repository': {'type': 'string', 'minLength': 1, 'description': 'Repository full name, e.g. "owner/repo". Omit when the project has one repository.'}, 'symbolPath': {'type': 'string', 'maxLength': 2000, 'minLength': 1, 'description': 'Anchor: symbolPath as find_node / locate returns.'}, 'consequences': {'type': 'string', 'maxLength': 20000, 'description': 'Trade-offs accepted.'}, 'supersededById': {'type': 'integer', 'maximum': 9007199254740991, 'minimum': 1, 'description': 'update: id of the replacement record.'}}}
ask_codebase
Synthesis Q&A for behavior/architecture questions: answer + citations in one call. HEAVY (~2-4 s, ~3-5 k tokens): prefer context, find_node, or locate when they suffice. scope:"repo" (default) = ONE repo; scope:"all" = cross-repo (repositoryIds narrows, omit spans all; rejects repository). If sufficient_to_answer=true, answer without further tool calls. commitSha pins a revision.
Nur Lesen Idempotent
Eingabeschema
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'limit': {'type': 'integer', 'default': 10, 'maximum': 30, 'minimum': 1, 'description': 'Max candidate symbols fed to synthesis (default 10, max 30).'}, 'query': {'type': 'string', 'minLength': 1, 'description': 'Alias of question.'}, 'scope': {'enum': ['repo', 'all'], 'type': 'string', 'default': 'repo', 'description': 'repo (default) = single-repo. all = cross-repo; repositoryIds narrows, omit spans all.'}, 'feedback': {'type': 'object', 'required': ['answerId', 'outcome'], 'properties': {'outcome': {'enum': ['useful', 'dead_end', 'corrected'], 'type': 'string', 'description': 'How the answer worked out.'}, 'answerId': {'type': 'string', 'maxLength': 36, 'minLength': 36, 'description': 'answer_id from a previous ask_codebase response'}, 'correction': {'type': 'string', 'maxLength': 2000, 'description': 'Only when the user corrected the answer'}}, 'description': 'Optional: report how a previous answer worked out; piggybacks on any call.'}, 'question': {'type': 'string', 'minLength': 1, 'description': 'The behavior question, e.g. "how does X work".'}, 'commitSha': {'type': 'string', 'pattern': '^[0-9a-fA-F]{7,40}$', 'description': 'Pin reads to one indexed revision (7-40 hex). Graph tools error with revision_not_indexed when it is not an indexed revision of the scoped repository, or revision_not_servable when that revision\'s graph was superseded by a later reindex, and echo the revision served back as commitSha; source ops read git objects, so any commit works there. Exception: a kept revision (revisions rows flagged architectureSnapshot) still serves map view:"architecture" as a preserved snapshot.'}, 'projectId': {'type': 'string', 'minLength': 1, 'description': 'Project id from init/list_projects. Omit for the active project.'}, 'repository': {'type': 'string', 'minLength': 1, 'description': 'Repository full name, e.g. "owner/repo". Omit when the project has one repository.'}, 'repositoryIds': {'type': 'array', 'items': {'type': 'string', 'minLength': 1, 'description': 'Encoded repository id from list_repositories.'}, 'maxItems': 50, 'minItems': 1, 'description': 'scope:all only. Restrict to these encoded repository ids.'}}}
bundle
Run up to 10 independent tool calls in parallel in one round-trip. Calls share the bundle-level project/repository scope unless a call sets its own args.repository, which scopes that call alone. Supported: locate (args.mode text|symbol|semantic|file|config, not codebase), relate (kind:callers only), find_node, list_file_symbols, find_http_route. Returns results in input order; unsupported tool names return {error}.
Nur Lesen Idempotent
Eingabeschema
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['calls'], 'properties': {'calls': {'type': 'array', 'items': {'type': 'object', 'required': ['tool', 'args'], 'properties': {'args': {'type': 'object', 'description': 'Arguments for the call', 'propertyNames': {'type': 'string'}, 'additionalProperties': {}}, 'tool': {'type': 'string', 'minLength': 1, 'description': 'Tool name to call'}}}, 'maxItems': 10, 'minItems': 1, 'description': "Calls to run in parallel; each uses the bundle's project/repository scope unless its args.repository names another one."}, 'feedback': {'type': 'object', 'required': ['answerId', 'outcome'], 'properties': {'outcome': {'enum': ['useful', 'dead_end', 'corrected'], 'type': 'string', 'description': 'How the answer worked out.'}, 'answerId': {'type': 'string', 'maxLength': 36, 'minLength': 36, 'description': 'answer_id from a previous ask_codebase response'}, 'correction': {'type': 'string', 'maxLength': 2000, 'description': 'Only when the user corrected the answer'}}, 'description': 'Optional: report how a previous answer worked out; piggybacks on any call.'}, 'commitSha': {'type': 'string', 'pattern': '^[0-9a-fA-F]{7,40}$', 'description': 'Pin reads to one indexed revision (7-40 hex). Graph tools error with revision_not_indexed when it is not an indexed revision of the scoped repository, or revision_not_servable when that revision\'s graph was superseded by a later reindex, and echo the revision served back as commitSha; source ops read git objects, so any commit works there. Exception: a kept revision (revisions rows flagged architectureSnapshot) still serves map view:"architecture" as a preserved snapshot.'}, 'projectId': {'type': 'string', 'minLength': 1, 'description': 'Project id from init/list_projects. Omit for the active project.'}, 'repository': {'type': 'string', 'minLength': 1, 'description': 'Repository full name, e.g. "owner/repo". Omit when the project has one repository.'}}}
context
First-touch task orientation. Pass a natural-language task; returns the top 5 relevant files with their symbols and best-matching snippets in one call (~1-1.5k tokens, ~500 ms, no LLM). Replaces chaining locate (text) + locate (semantic) + list_file_symbols. Known symbol: find_node/locate. Synthesized explanation: ask_codebase.
Nur Lesen Idempotent
Eingabeschema
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['task'], 'properties': {'task': {'type': 'string', 'maxLength': 1024, 'minLength': 3, 'description': 'Natural-language task. Returns ranked files with symbols and matching snippets, no LLM call.'}, 'feedback': {'type': 'object', 'required': ['answerId', 'outcome'], 'properties': {'outcome': {'enum': ['useful', 'dead_end', 'corrected'], 'type': 'string', 'description': 'How the answer worked out.'}, 'answerId': {'type': 'string', 'maxLength': 36, 'minLength': 36, 'description': 'answer_id from a previous ask_codebase response'}, 'correction': {'type': 'string', 'maxLength': 2000, 'description': 'Only when the user corrected the answer'}}, 'description': 'Optional: report how a previous answer worked out; piggybacks on any call.'}, 'commitSha': {'type': 'string', 'pattern': '^[0-9a-fA-F]{7,40}$', 'description': 'Pin reads to one indexed revision (7-40 hex). Graph tools error with revision_not_indexed when it is not an indexed revision of the scoped repository, or revision_not_servable when that revision\'s graph was superseded by a later reindex, and echo the revision served back as commitSha; source ops read git objects, so any commit works there. Exception: a kept revision (revisions rows flagged architectureSnapshot) still serves map view:"architecture" as a preserved snapshot.'}, 'projectId': {'type': 'string', 'minLength': 1, 'description': 'Project id from init/list_projects. Omit for the active project.'}, 'repository': {'type': 'string', 'minLength': 1, 'description': 'Repository full name, e.g. "owner/repo". Omit when the project has one repository.'}}}
create_project
Create a project in the workspace (name; slug derived and made unique). Needs mcp:admin; plan project caps apply (plan_limit_exceeded). Then attach repositories with add_repository { projectId, owner, repo_name } and bind the session with ref op:"use_project" (or init with the checkout's repository once attached).
Eingabeschema
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['name'], 'properties': {'name': {'type': 'string', 'maxLength': 255, 'minLength': 1, 'description': 'Project name. The slug is derived from it and made unique within the workspace.'}, 'feedback': {'type': 'object', 'required': ['answerId', 'outcome'], 'properties': {'outcome': {'enum': ['useful', 'dead_end', 'corrected'], 'type': 'string', 'description': 'How the answer worked out.'}, 'answerId': {'type': 'string', 'maxLength': 36, 'minLength': 36, 'description': 'answer_id from a previous ask_codebase response'}, 'correction': {'type': 'string', 'maxLength': 2000, 'description': 'Only when the user corrected the answer'}}, 'description': 'Optional: report how a previous answer worked out; piggybacks on any call.'}}}
diff_impact
Impact of a diff between two indexed revisions of one repo (base..head): changed files + symbols, union blast radius (layers + cross-repo fallout), affected endpoints, test suites, and co-change reminders. Replaces per-symbol relate (kind:blast_radius) loops before merging. Defaults: head = session's effective revision, base = previous indexed. For UNCOMMITTED edits, run ref (op:"index_working_tree"), then call with no shas.
Nur Lesen Idempotent
Eingabeschema
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'base': {'type': 'string', 'pattern': '^[0-9a-fA-F]{7,40}$', 'description': 'Base revision (7-40 hex). Omit for the previous indexed.'}, 'head': {'type': 'string', 'pattern': '^[0-9a-fA-F]{7,40}$', 'description': "Head revision (7-40 hex). Omit for the session's effective revision."}, 'feedback': {'type': 'object', 'required': ['answerId', 'outcome'], 'properties': {'outcome': {'enum': ['useful', 'dead_end', 'corrected'], 'type': 'string', 'description': 'How the answer worked out.'}, 'answerId': {'type': 'string', 'maxLength': 36, 'minLength': 36, 'description': 'answer_id from a previous ask_codebase response'}, 'correction': {'type': 'string', 'maxLength': 2000, 'description': 'Only when the user corrected the answer'}}, 'description': 'Optional: report how a previous answer worked out; piggybacks on any call.'}, 'projectId': {'type': 'string', 'minLength': 1, 'description': 'Project id from init/list_projects. Omit for the active project.'}, 'repository': {'type': 'string', 'minLength': 1, 'description': 'Repository full name, e.g. "owner/repo". Omit when the project has one repository.'}, 'expansionLimit': {'type': 'integer', 'maximum': 100, 'minimum': 1, 'description': 'Cap on impacted nodes (default 25); totals always reported.'}, 'includeCrossRepo': {'type': 'boolean', 'description': 'Include cross-repo fallout (default true).'}}}
estimate_scope
Pre-flight estimate before graph traversal: coarse count of files a task likely touches and whether it spans layers (common/browser/node/electron-main/...) or repositories. Decides single-file edit vs consulting the graph. Heuristic, from symbol-name + text matches.
Nur Lesen Idempotent
Eingabeschema
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['description'], 'properties': {'feedback': {'type': 'object', 'required': ['answerId', 'outcome'], 'properties': {'outcome': {'enum': ['useful', 'dead_end', 'corrected'], 'type': 'string', 'description': 'How the answer worked out.'}, 'answerId': {'type': 'string', 'maxLength': 36, 'minLength': 36, 'description': 'answer_id from a previous ask_codebase response'}, 'correction': {'type': 'string', 'maxLength': 2000, 'description': 'Only when the user corrected the answer'}}, 'description': 'Optional: report how a previous answer worked out; piggybacks on any call.'}, 'projectId': {'type': 'string', 'minLength': 1, 'description': 'Project id from init/list_projects. Omit for the active project.'}, 'description': {'type': 'string', 'maxLength': 2000, 'minLength': 3, 'description': 'Natural-language description of the intended change.'}}}
find_http_route
Resolve an HTTP route by path + optional method to endpoint + handler (filePath + line bounds). Use instead of grep/locate for URL paths: follows framework router metadata (Express, Fastify, Hono, Laravel, FastAPI, etc.) and resolves dynamic segments, prefix groups, and middleware-mounted routers text search misses.
Nur Lesen Idempotent
Eingabeschema
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['path'], 'properties': {'path': {'type': 'string', 'minLength': 1, 'description': 'Route path, e.g. "/api/users/:id". Partial paths match.'}, 'method': {'type': 'string', 'minLength': 1, 'description': 'HTTP method filter, e.g. GET or POST.'}, 'feedback': {'type': 'object', 'required': ['answerId', 'outcome'], 'properties': {'outcome': {'enum': ['useful', 'dead_end', 'corrected'], 'type': 'string', 'description': 'How the answer worked out.'}, 'answerId': {'type': 'string', 'maxLength': 36, 'minLength': 36, 'description': 'answer_id from a previous ask_codebase response'}, 'correction': {'type': 'string', 'maxLength': 2000, 'description': 'Only when the user corrected the answer'}}, 'description': 'Optional: report how a previous answer worked out; piggybacks on any call.'}, 'commitSha': {'type': 'string', 'pattern': '^[0-9a-fA-F]{7,40}$', 'description': 'Pin reads to one indexed revision (7-40 hex). Graph tools error with revision_not_indexed when it is not an indexed revision of the scoped repository, or revision_not_servable when that revision\'s graph was superseded by a later reindex, and echo the revision served back as commitSha; source ops read git objects, so any commit works there. Exception: a kept revision (revisions rows flagged architectureSnapshot) still serves map view:"architecture" as a preserved snapshot.'}, 'projectId': {'type': 'string', 'minLength': 1, 'description': 'Project id from init/list_projects. Omit for the active project.'}, 'repository': {'type': 'string', 'minLength': 1, 'description': 'Repository full name, e.g. "owner/repo". Omit when the project has one repository.'}}}
find_node
Resolve 1-10 symbols to filePath + line bounds + signature. selectors: array keyed by symbol (bare name) / symbolPath / filePath / nodeId; a flat query/name/single field also works. includeSource=true adds the excerpt, includeSummaries=true AI summaries. A node from a SCIP-indexed package also carries scip_package_name (and scip_package_version / scip_manager when known). For a class/interface/struct/protocol it carries a compact heritage field (<=5 ancestors, <=20 descendants, omitted when empty); includeHeritage:false skips it, includeCrossRepo:true walks cross-repo heritage. {resolved:false, candidates} = no confident match.
Nur Lesen Idempotent
Eingabeschema
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['selectors'], 'properties': {'limit': {'type': 'integer', 'default': 5, 'maximum': 20, 'minimum': 1, 'description': 'Max results (default 5, max 20).'}, 'feedback': {'type': 'object', 'required': ['answerId', 'outcome'], 'properties': {'outcome': {'enum': ['useful', 'dead_end', 'corrected'], 'type': 'string', 'description': 'How the answer worked out.'}, 'answerId': {'type': 'string', 'maxLength': 36, 'minLength': 36, 'description': 'answer_id from a previous ask_codebase response'}, 'correction': {'type': 'string', 'maxLength': 2000, 'description': 'Only when the user corrected the answer'}}, 'description': 'Optional: report how a previous answer worked out; piggybacks on any call.'}, 'commitSha': {'type': 'string', 'pattern': '^[0-9a-fA-F]{7,40}$', 'description': 'Pin reads to one indexed revision (7-40 hex). Graph tools error with revision_not_indexed when it is not an indexed revision of the scoped repository, or revision_not_servable when that revision\'s graph was superseded by a later reindex, and echo the revision served back as commitSha; source ops read git objects, so any commit works there. Exception: a kept revision (revisions rows flagged architectureSnapshot) still serves map view:"architecture" as a preserved snapshot.'}, 'projectId': {'type': 'string', 'minLength': 1, 'description': 'Project id from init/list_projects. Omit for the active project.'}, 'selectors': {'type': 'array', 'items': {'type': 'object', 'properties': {'nodeId': {'type': 'string', 'minLength': 1, 'description': 'Graph node id from a prior result.'}, 'symbol': {'type': 'string', 'minLength': 1, 'description': 'Symbol name, e.g. a function or class name.'}, 'filePath': {'type': 'string', 'minLength': 1, 'description': 'Repo-relative file path holding the symbol.'}, 'symbolPath': {'type': 'string', 'minLength': 1, 'description': 'Full symbolPath as find_node/locate returns.'}}}, 'maxItems': 10, 'minItems': 1, 'description': 'Symbols to resolve (1-10), each by nodeId, symbol, symbolPath, or filePath.'}, 'repository': {'type': 'string', 'minLength': 1, 'description': 'Repository full name, e.g. "owner/repo". Omit when the project has one repository.'}, 'sourceMode': {'enum': ['none', 'signature'], 'type': 'string', 'description': 'With includeSource: "signature" returns the declaration only.'}, 'includeSource': {'type': 'boolean', 'default': False, 'description': 'Attach source for resolved nodes.'}, 'expansionLimit': {'type': 'integer', 'default': 15, 'maximum': 100, 'minimum': 1, 'description': 'Cap on expanded related nodes (default 15, max 100).'}, 'includeHeritage': {'type': 'boolean', 'default': True, 'description': 'Default true. Include a compact heritage field for a class/interface/struct/protocol. false skips it on bulk scans.'}, 'includeCommunity': {'type': 'boolean', 'default': False, 'description': "Attach the symbol's Louvain module (community name). Off by default (extra edge lookup)."}, 'includeCrossRepo': {'type': 'boolean', 'default': False, 'description': 'With includeHeritage on, walk cross-repo heritage edges. No-op when includeHeritage is off.'}, 'includeSummaries': {'type': 'boolean', 'default': False, 'description': 'Attach generated summaries when available.'}}}
freshness
Returns lastIndexedSha, lastIndexedAt, and the current remote HEAD sha for a repository: detect index drift from remote. Reports what Symvanta knows, not local git. currentRemoteSha is null when no GitHub credential is configured. Echoes the active ref pin (pinnedBranch, pinnedSha).
Nur Lesen Idempotent
Eingabeschema
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'feedback': {'type': 'object', 'required': ['answerId', 'outcome'], 'properties': {'outcome': {'enum': ['useful', 'dead_end', 'corrected'], 'type': 'string', 'description': 'How the answer worked out.'}, 'answerId': {'type': 'string', 'maxLength': 36, 'minLength': 36, 'description': 'answer_id from a previous ask_codebase response'}, 'correction': {'type': 'string', 'maxLength': 2000, 'description': 'Only when the user corrected the answer'}}, 'description': 'Optional: report how a previous answer worked out; piggybacks on any call.'}, 'projectId': {'type': 'string', 'minLength': 1, 'description': 'Project id from init/list_projects. Omit for the active project.'}, 'repository': {'type': 'string', 'minLength': 1, 'description': 'Repository full name, e.g. "owner/repo". Omit when the project has one repository.'}}}
history
Indexed commit history. Ops: - commits: recent commits (metadata + file list); <=200/call, default 50. With a clone prefer git log. - commit: one commit by sha with its diff summary (added/modified/deleted/renamed); null if outside the indexed window. - recently_changed: files ranked by change frequency in the indexed window ("what's hot").
Nur Lesen Idempotent
Eingabeschema
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['op'], 'properties': {'op': {'enum': ['commits', 'commit', 'recently_changed'], 'type': 'string', 'description': 'commits: recent commits (metadata + file list). commit: one commit in detail. recently_changed: most-changed files over the window.'}, 'sha': {'type': 'string', 'pattern': '^[0-9a-fA-F]{7,64}$', 'description': 'op:commit. The commit to read (7-64 hex).'}, 'path': {'type': 'string', 'description': 'Restrict to commits touching this repo-relative path.'}, 'limit': {'type': 'integer', 'maximum': 200, 'minimum': 1, 'description': 'Max rows (default 50, max 200).'}, 'since': {'type': 'string', 'format': 'date-time', 'pattern': '^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$', 'description': 'ISO datetime lower bound.'}, 'until': {'type': 'string', 'format': 'date-time', 'pattern': '^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$', 'description': 'ISO datetime upper bound.'}, 'author': {'type': 'string', 'description': 'Filter by author name or email substring.'}, 'feedback': {'type': 'object', 'required': ['answerId', 'outcome'], 'properties': {'outcome': {'enum': ['useful', 'dead_end', 'corrected'], 'type': 'string', 'description': 'How the answer worked out.'}, 'answerId': {'type': 'string', 'maxLength': 36, 'minLength': 36, 'description': 'answer_id from a previous ask_codebase response'}, 'correction': {'type': 'string', 'maxLength': 2000, 'description': 'Only when the user corrected the answer'}}, 'description': 'Optional: report how a previous answer worked out; piggybacks on any call.'}, 'projectId': {'type': 'string', 'minLength': 1, 'description': 'Project id from init/list_projects. Omit for the active project.'}, 'repository': {'type': 'string', 'minLength': 1, 'description': 'Repository full name, e.g. "owner/repo". Omit when the project has one repository.'}}}
index_health
Per-project index health. pendingLibraryVersions: cross-repo specifiers still indexing (an empty result may mean "not indexed yet", not "not in code"); call when a query is surprisingly empty. A row with status "skipped" is never going to arrive (a dev or optional dependency, which the catalog does not index) and status "failed" means discovery found no source, so only "indexing" is worth waiting on. architecture: per-repo Louvain module count + modularity Q (low Q = tangled), plus circular-dependency and mutually-recursive-symbol counts (inspect via map view:"architecture"). versionDrift: joined cross-repo SCIP edges whose consumer-pinned package version differs from the sibling's current version (package, pinned vs current, edge count). externalsCoverage: per-repo count of external references joined onto a sibling definition vs left as materialized stubs. unindexableRepositories: repos whose last index produced no graph and left a status (no_default_branch = the remote has no resolvable default branch, e.g. an empty repo; awaiting_upload = an upload-provider repo with no zip yet; remote_head_unresolvable = the remote could not be reached to resolve its head, so this is a network or credential problem, not a repository one), with the worker's log line as indexStatusDetail; explains a silently-empty repo. degradedRepositories: repos that DID index but lost a derived artifact (community_detection_skipped = Louvain clustering did not run, so map view:"architecture" has no modules; raise COMMUNITY_EDGE_CEILING or set COMMUNITY_DETECTION=true, then reindex). Both carry a human-readable reason.
Nur Lesen Idempotent
Eingabeschema
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'feedback': {'type': 'object', 'required': ['answerId', 'outcome'], 'properties': {'outcome': {'enum': ['useful', 'dead_end', 'corrected'], 'type': 'string', 'description': 'How the answer worked out.'}, 'answerId': {'type': 'string', 'maxLength': 36, 'minLength': 36, 'description': 'answer_id from a previous ask_codebase response'}, 'correction': {'type': 'string', 'maxLength': 2000, 'description': 'Only when the user corrected the answer'}}, 'description': 'Optional: report how a previous answer worked out; piggybacks on any call.'}, 'projectId': {'type': 'string', 'minLength': 1, 'description': 'Project id from init/list_projects. Omit for the active project.'}, 'repository': {'type': 'string', 'minLength': 1, 'description': 'Repository full name, e.g. "owner/repo". Omit when the project has one repository.'}}}
init
Call first, with repository:"owner/name" (your checkout's GitHub remote). Binds the session to the project holding that repository and returns it as the active project with its repositories, index health, and a `usage` field (decision matrix + routing). workspace.attached=false means the checkout is NOT indexed: nothing in the answer describes it; attach it (add_repository, create_project) or work without the graph, do not route through the projects listed. Without repository: the pinned project (ref op:"use_project") or the workspace default.
Nur Lesen Idempotent
Eingabeschema
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'feedback': {'type': 'object', 'required': ['answerId', 'outcome'], 'properties': {'outcome': {'enum': ['useful', 'dead_end', 'corrected'], 'type': 'string', 'description': 'How the answer worked out.'}, 'answerId': {'type': 'string', 'maxLength': 36, 'minLength': 36, 'description': 'answer_id from a previous ask_codebase response'}, 'correction': {'type': 'string', 'maxLength': 2000, 'description': 'Only when the user corrected the answer'}}, 'description': 'Optional: report how a previous answer worked out; piggybacks on any call.'}, 'repository': {'type': 'string', 'maxLength': 512, 'minLength': 1, 'description': 'The checkout\'s GitHub remote as "owner/name" (a clone URL is accepted). Binds the session to the project holding it; workspace.attached=false means it is not indexed.'}}}
library
Library catalog lookups. Ops: - packages: list indexed npm packages (specifier, ecosystem, owner/name, indexed-at, sha). Tenant-scoped, no projectId. - version: one package's resolved version for a project (sha, version, dep type, indexed-at, status indexed|indexing|failed|not_found). "indexing" means a job for that revision is in flight, so retrying later converges; "failed" carries a reason and does not change on its own.
Nur Lesen Idempotent
Eingabeschema
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['op'], 'properties': {'op': {'enum': ['packages', 'version'], 'type': 'string', 'description': "packages: list indexed packages. version: resolve one specifier's indexed version."}, 'limit': {'type': 'integer', 'default': 50, 'maximum': 200, 'minimum': 1, 'description': 'op:packages. Max rows (default 50, max 200).'}, 'feedback': {'type': 'object', 'required': ['answerId', 'outcome'], 'properties': {'outcome': {'enum': ['useful', 'dead_end', 'corrected'], 'type': 'string', 'description': 'How the answer worked out.'}, 'answerId': {'type': 'string', 'maxLength': 36, 'minLength': 36, 'description': 'answer_id from a previous ask_codebase response'}, 'correction': {'type': 'string', 'maxLength': 2000, 'description': 'Only when the user corrected the answer'}}, 'description': 'Optional: report how a previous answer worked out; piggybacks on any call.'}, 'projectId': {'type': 'string', 'minLength': 1, 'description': 'Project id from init/list_projects. Omit for the active project.'}, 'specifier': {'type': 'string', 'maxLength': 255, 'minLength': 1, 'description': 'op:version. Package specifier, e.g. "react".'}}}
list_file_symbols
List symbols in one file (name + kind + line bounds). Step 1 of the two-step read: get line bounds, then pass startLine/endLine to source (op:read) for that slice only (~4-15x fewer tokens). For one symbol + signature, use find_node {symbol, filePath}.
Nur Lesen Idempotent
Eingabeschema
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['filePath'], 'properties': {'feedback': {'type': 'object', 'required': ['answerId', 'outcome'], 'properties': {'outcome': {'enum': ['useful', 'dead_end', 'corrected'], 'type': 'string', 'description': 'How the answer worked out.'}, 'answerId': {'type': 'string', 'maxLength': 36, 'minLength': 36, 'description': 'answer_id from a previous ask_codebase response'}, 'correction': {'type': 'string', 'maxLength': 2000, 'description': 'Only when the user corrected the answer'}}, 'description': 'Optional: report how a previous answer worked out; piggybacks on any call.'}, 'filePath': {'type': 'string', 'minLength': 1, 'description': 'Repo-relative file path to list symbols for.'}, 'commitSha': {'type': 'string', 'pattern': '^[0-9a-fA-F]{7,40}$', 'description': 'Pin reads to one indexed revision (7-40 hex). Graph tools error with revision_not_indexed when it is not an indexed revision of the scoped repository, or revision_not_servable when that revision\'s graph was superseded by a later reindex, and echo the revision served back as commitSha; source ops read git objects, so any commit works there. Exception: a kept revision (revisions rows flagged architectureSnapshot) still serves map view:"architecture" as a preserved snapshot.'}, 'projectId': {'type': 'string', 'minLength': 1, 'description': 'Project id from init/list_projects. Omit for the active project.'}, 'repository': {'type': 'string', 'minLength': 1, 'description': 'Repository full name, e.g. "owner/repo". Omit when the project has one repository.'}}}
list_installations
GitHub App installations connected to this workspace and the repositories each can reach (private included). Use before add_repository for a private repository: pass the installation's id as installation_id. pat_configured says whether a workspace PAT exists as the fallback credential. Empty = connect the GitHub App on the dashboard (Project > Repositories). An installation whose GitHub call failed carries error and an empty list.
Nur Lesen Idempotent
Eingabeschema
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'feedback': {'type': 'object', 'required': ['answerId', 'outcome'], 'properties': {'outcome': {'enum': ['useful', 'dead_end', 'corrected'], 'type': 'string', 'description': 'How the answer worked out.'}, 'answerId': {'type': 'string', 'maxLength': 36, 'minLength': 36, 'description': 'answer_id from a previous ask_codebase response'}, 'correction': {'type': 'string', 'maxLength': 2000, 'description': 'Only when the user corrected the answer'}}, 'description': 'Optional: report how a previous answer worked out; piggybacks on any call.'}}}
list_projects
List all projects with indexing summaries. Find a project by name or check which exist.
Nur Lesen Idempotent
Eingabeschema
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'feedback': {'type': 'object', 'required': ['answerId', 'outcome'], 'properties': {'outcome': {'enum': ['useful', 'dead_end', 'corrected'], 'type': 'string', 'description': 'How the answer worked out.'}, 'answerId': {'type': 'string', 'maxLength': 36, 'minLength': 36, 'description': 'answer_id from a previous ask_codebase response'}, 'correction': {'type': 'string', 'maxLength': 2000, 'description': 'Only when the user corrected the answer'}}, 'description': 'Optional: report how a previous answer worked out; piggybacks on any call.'}}}
list_repositories
List repositories in a project. Find repository names to scope a query to one repo.
Nur Lesen Idempotent
Eingabeschema
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'feedback': {'type': 'object', 'required': ['answerId', 'outcome'], 'properties': {'outcome': {'enum': ['useful', 'dead_end', 'corrected'], 'type': 'string', 'description': 'How the answer worked out.'}, 'answerId': {'type': 'string', 'maxLength': 36, 'minLength': 36, 'description': 'answer_id from a previous ask_codebase response'}, 'correction': {'type': 'string', 'maxLength': 2000, 'description': 'Only when the user corrected the answer'}}, 'description': 'Optional: report how a previous answer worked out; piggybacks on any call.'}, 'projectId': {'type': 'string', 'minLength': 1, 'description': 'Project id from init/list_projects. Omit for the active project.'}}}
list_tests_for
Test suites and cases whose suite name matches a symbol name (case-insensitive substring). Call before adding tests to see existing coverage and mirror its shape.
Nur Lesen Idempotent
Eingabeschema
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['selector'], 'properties': {'feedback': {'type': 'object', 'required': ['answerId', 'outcome'], 'properties': {'outcome': {'enum': ['useful', 'dead_end', 'corrected'], 'type': 'string', 'description': 'How the answer worked out.'}, 'answerId': {'type': 'string', 'maxLength': 36, 'minLength': 36, 'description': 'answer_id from a previous ask_codebase response'}, 'correction': {'type': 'string', 'maxLength': 2000, 'description': 'Only when the user corrected the answer'}}, 'description': 'Optional: report how a previous answer worked out; piggybacks on any call.'}, 'selector': {'type': 'string', 'minLength': 1, 'description': 'Symbol name to match against test suite names.'}, 'commitSha': {'type': 'string', 'pattern': '^[0-9a-fA-F]{7,40}$', 'description': 'Pin reads to one indexed revision (7-40 hex). Graph tools error with revision_not_indexed when it is not an indexed revision of the scoped repository, or revision_not_servable when that revision\'s graph was superseded by a later reindex, and echo the revision served back as commitSha; source ops read git objects, so any commit works there. Exception: a kept revision (revisions rows flagged architectureSnapshot) still serves map view:"architecture" as a preserved snapshot.'}, 'projectId': {'type': 'string', 'minLength': 1, 'description': 'Project id from init/list_projects. Omit for the active project.'}, 'repository': {'type': 'string', 'minLength': 1, 'description': 'Repository full name, e.g. "owner/repo". Omit when the project has one repository.'}}}
locate
Search/lookup. Pick a mode, or omit with a bare query to AUTO-ROUTE (text, then semantic on empty; response carries answered_by). Modes: - text (replaces grep): literal identifier/string, one row/occurrence. queries:[...] (<=10 terms) searches several in one call (and implies this mode when mode is omitted). pathsOnly:true = "filePath:lineNumber" only (~5x cheaper). maxPerFile caps rows/file (default 5). Empty carries did_you_mean; do NOT retry reworded, use semantic. - symbol: symbols by name/symbolPath in one repo. kind filters node kind, layer one layer. Tests last unless includeTests:true. - semantic: vector search for symbols similar to a natural-language query (names unknown). - file: fuzzy filename search (basename); filenames only. - config (replaces grep for env/config keys): key/env-var usages with nearest-symbol context; queries:[...] batches several keys. - codebase: cross-repo candidate scan; narrow with repositoryIds.
Nur Lesen Idempotent
Eingabeschema
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'kind': {'enum': ['module', 'class', 'function', 'interface', 'endpoint', 'schema', 'struct', 'enum', 'protocol', 'actor', 'extension', 'initializer', 'property', 'package', 'product', 'target', 'project', 'workspace', 'test_suite', 'test_case', 'test_hook', 'community', 'cycle', 'resource'], 'type': 'string', 'description': 'mode:symbol. Filter by node kind.'}, 'mode': {'enum': ['text', 'symbol', 'semantic', 'file', 'config', 'codebase'], 'type': 'string', 'description': 'Force a mode. Omit + bare query = AUTO-ROUTE (text, then semantic on empty). queries without a mode implies text.'}, 'name': {'type': 'string', 'minLength': 1, 'description': 'mode:file. Filename fragment; defaults to query.'}, 'layer': {'type': 'string', 'maxLength': 32, 'minLength': 1, 'description': 'mode:symbol. Scope to one layer (e.g. browser, node, common, test).'}, 'limit': {'type': 'integer', 'default': 20, 'maximum': 200, 'minimum': 1, 'description': 'Max results. Per-mode caps apply (text 200/20, symbol 20, semantic 5, file 10, config 20/20, codebase 20/10).'}, 'query': {'type': 'string', 'minLength': 1, 'description': 'Search term or NL query. Required for symbol/semantic/codebase; text/config: query or queries; file: query or name.'}, 'queries': {'type': 'array', 'items': {'type': 'string', 'minLength': 1}, 'maxItems': 10, 'minItems': 1, 'description': 'text/config. Up to 10 terms; interleaved, deduped, each tagged matchedQuery. Without an explicit mode, implies mode:text. Accepts a JSON-array string.'}, 'feedback': {'type': 'object', 'required': ['answerId', 'outcome'], 'properties': {'outcome': {'enum': ['useful', 'dead_end', 'corrected'], 'type': 'string', 'description': 'How the answer worked out.'}, 'answerId': {'type': 'string', 'maxLength': 36, 'minLength': 36, 'description': 'answer_id from a previous ask_codebase response'}, 'correction': {'type': 'string', 'maxLength': 2000, 'description': 'Only when the user corrected the answer'}}, 'description': 'Optional: report how a previous answer worked out; piggybacks on any call.'}, 'commitSha': {'type': 'string', 'pattern': '^[0-9a-fA-F]{7,40}$', 'description': 'Pin an indexed revision (text/symbol/semantic/config; ignored by file/codebase).'}, 'pathsOnly': {'type': 'boolean', 'description': 'mode:text. "filePath:lineNumber" only, no snippets (~5x fewer tokens).'}, 'projectId': {'type': 'string', 'minLength': 1, 'description': 'Project id from init/list_projects. Omit for the active project.'}, 'maxPerFile': {'type': 'integer', 'default': 5, 'maximum': 1000, 'minimum': 0, 'description': 'mode:text. Cap occurrences/file (default 5; capped file carries moreInFileTruncated). 0 = uncapped.'}, 'pathPrefix': {'type': 'string', 'minLength': 1, 'description': 'text/symbol/config. Restrict to paths under this prefix.'}, 'repository': {'type': 'string', 'minLength': 1, 'description': 'Single-repo scope (not codebase; that is project-wide, use repositoryIds).'}, 'includeTests': {'type': 'boolean', 'default': False, 'description': 'text/symbol/semantic. Include test files. Default false ranks them last; auto-on for test queries.'}, 'repositoryIds': {'type': 'array', 'items': {'type': 'string', 'minLength': 1, 'description': 'Encoded repository id from list_repositories.'}, 'maxItems': 50, 'minItems': 1, 'description': 'mode:codebase. Narrow to these repository ids; omit to scan all.'}}}
map
Token-efficient repo (or subtree) skeleton: directory tree with each file's classes (methods in parens), functions, and HTTP endpoints, from the graph. Orient before drilling in. Scope with "path", cap with "maxDepth", density:"full" adds properties. view:"architecture" instead returns a module map (Louvain clusters with hubs, paths and cross-module coupling), plus namedModules/totalModules: a module NAME comes from a generated summary and is provisional, its id (the member-set hash in the header) is the stable key, so pin modules by id and re-read names rather than caching them.
Nur Lesen Idempotent
Eingabeschema
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'path': {'type': 'string', 'minLength': 1, 'description': 'Repo-relative subtree (e.g. "src/v1/mcp"). Omit for the whole repo.'}, 'view': {'enum': ['tree', 'architecture'], 'type': 'string', 'description': '"tree" (default): file/symbol skeleton. "architecture": module map with hubs, coupling, cycles. Module names come from generated summaries: cite a module by its id (the member-set hash printed in the header), which is stable across calls and reindexes.'}, 'density': {'enum': ['compact', 'full'], 'type': 'string', 'description': '"compact" (default): classes/methods/functions/endpoints. "full" adds properties.'}, 'feedback': {'type': 'object', 'required': ['answerId', 'outcome'], 'properties': {'outcome': {'enum': ['useful', 'dead_end', 'corrected'], 'type': 'string', 'description': 'How the answer worked out.'}, 'answerId': {'type': 'string', 'maxLength': 36, 'minLength': 36, 'description': 'answer_id from a previous ask_codebase response'}, 'correction': {'type': 'string', 'maxLength': 2000, 'description': 'Only when the user corrected the answer'}}, 'description': 'Optional: report how a previous answer worked out; piggybacks on any call.'}, 'maxDepth': {'type': 'integer', 'maximum': 9007199254740991, 'minimum': 1, 'description': 'Drop files deeper than this many path segments. Omit for no cap.'}, 'commitSha': {'type': 'string', 'pattern': '^[0-9a-fA-F]{7,40}$', 'description': 'Pin reads to one indexed revision (7-40 hex). Graph tools error with revision_not_indexed when it is not an indexed revision of the scoped repository, or revision_not_servable when that revision\'s graph was superseded by a later reindex, and echo the revision served back as commitSha; source ops read git objects, so any commit works there. Exception: a kept revision (revisions rows flagged architectureSnapshot) still serves map view:"architecture" as a preserved snapshot.'}, 'projectId': {'type': 'string', 'minLength': 1, 'description': 'Project id from init/list_projects. Omit for the active project.'}, 'repository': {'type': 'string', 'minLength': 1, 'description': 'Repository full name, e.g. "owner/repo". Omit when the project has one repository.'}}}
quick_lookup
Fast substring lookup of symbol DEFINITIONS by name: rows {name, kind, filePath, startLine, repositoryName} (displayName only when distinct from name), no ranking, no semantic. Cheaper alternative to locate (mode:symbol) for latency-sensitive pre-fetch (grep-augment hook); interactive search should prefer locate/find_node. Reads the latest indexed revision, no ref pin.
Nur Lesen Idempotent
Eingabeschema
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['query'], 'properties': {'limit': {'type': 'integer', 'maximum': 20, 'minimum': 1, 'description': 'Max results (max 20).'}, 'query': {'type': 'string', 'minLength': 1, 'description': 'Substring to match against symbol names (no ranking).'}, 'feedback': {'type': 'object', 'required': ['answerId', 'outcome'], 'properties': {'outcome': {'enum': ['useful', 'dead_end', 'corrected'], 'type': 'string', 'description': 'How the answer worked out.'}, 'answerId': {'type': 'string', 'maxLength': 36, 'minLength': 36, 'description': 'answer_id from a previous ask_codebase response'}, 'correction': {'type': 'string', 'maxLength': 2000, 'description': 'Only when the user corrected the answer'}}, 'description': 'Optional: report how a previous answer worked out; piggybacks on any call.'}, 'projectId': {'type': 'string', 'minLength': 1, 'description': 'Project id from init/list_projects. Omit for the active project.'}, 'repository': {'type': 'string', 'minLength': 1, 'description': 'Repository full name, e.g. "owner/repo". Omit when the project has one repository.'}}}
ref
Session-scoped branch / working-tree overlay / project binding. Ops: - use: pin a repository's reads to a branch (latest indexed revision). Branch must be tracked+indexed (open a PR, or add on the dashboard); else "indexing_in_progress". commitSha overrides. - clear: remove the pin, revert to default. - index_working_tree: overlay UNCOMMITTED edits (changedFiles path+content, optional deletedPaths/baseSha) on a short-lived synthetic revision pinned here; find_node/locate/relate reflect them, source and locate mode:semantic do NOT. Cap 100 files/256KB. - use_project: bind this session to projectId (from init.otherProjects / list_projects / create_project) so calls without projectId resolve there. init with repository:"owner/name" sets the same binding from the checkout's remote. - clear_project: drop the binding, back to the workspace default project.
Idempotent
Eingabeschema
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['op'], 'properties': {'op': {'enum': ['use', 'clear', 'index_working_tree', 'use_project', 'clear_project'], 'type': 'string', 'description': 'use: pin reads to a tracked branch. clear: revert to the default branch. index_working_tree: overlay uncommitted edits on a synthetic revision and pin it. use_project: bind this session to projectId so calls without projectId resolve there. clear_project: revert to the workspace default project.'}, 'branch': {'type': 'string', 'maxLength': 255, 'minLength': 1, 'description': 'op:use. The tracked branch to pin.'}, 'baseSha': {'type': 'string', 'pattern': '^[0-9a-fA-F]{7,40}$', 'description': 'Indexed base your edits sit on. Omit for the default-branch tip.'}, 'feedback': {'type': 'object', 'required': ['answerId', 'outcome'], 'properties': {'outcome': {'enum': ['useful', 'dead_end', 'corrected'], 'type': 'string', 'description': 'How the answer worked out.'}, 'answerId': {'type': 'string', 'maxLength': 36, 'minLength': 36, 'description': 'answer_id from a previous ask_codebase response'}, 'correction': {'type': 'string', 'maxLength': 2000, 'description': 'Only when the user corrected the answer'}}, 'description': 'Optional: report how a previous answer worked out; piggybacks on any call.'}, 'projectId': {'type': 'string', 'minLength': 1, 'description': 'Project id from init/list_projects. Omit for the active project.'}, 'repository': {'type': 'string', 'minLength': 1, 'description': 'Repository full name, e.g. "owner/repo". Omit when the project has one repository.'}, 'changedFiles': {'type': 'array', 'items': {'type': 'object', 'required': ['path', 'content'], 'properties': {'path': {'type': 'string', 'maxLength': 1024, 'minLength': 1, 'description': 'Repo-relative file path.'}, 'content': {'type': 'string', 'maxLength': 262144, 'description': 'Full current file content.'}}}, 'maxItems': 100, 'minItems': 1, 'description': 'Changed/added files with current contents, repo-relative paths.'}, 'deletedPaths': {'type': 'array', 'items': {'type': 'string', 'maxLength': 1024, 'minLength': 1}, 'maxItems': 200, 'description': 'Repo-relative deleted paths.'}}}
reindex_repository
Dispatch a reindex job for an already-attached repository (repositoryId from list_repositories / add_repository). Optional commit_sha pin. force:true re-applies the current parser even when unchanged at HEAD: it bypasses the per-file hash-skip AND re-runs the SCIP indexer subprocesses (no same-sha .scip cache serve), so a parser fix inside a SCIP runner, an external-moniker re-pin, or a toolchain upgrade takes effect without a version bump.
Externer Zugriff
Eingabeschema
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['repositoryId'], 'properties': {'force': {'type': 'boolean', 'description': 'Re-parse every file AND re-run the SCIP indexer subprocesses even if unchanged at HEAD (for a parser fix without a version bump)'}, 'feedback': {'type': 'object', 'required': ['answerId', 'outcome'], 'properties': {'outcome': {'enum': ['useful', 'dead_end', 'corrected'], 'type': 'string', 'description': 'How the answer worked out.'}, 'answerId': {'type': 'string', 'maxLength': 36, 'minLength': 36, 'description': 'answer_id from a previous ask_codebase response'}, 'correction': {'type': 'string', 'maxLength': 2000, 'description': 'Only when the user corrected the answer'}}, 'description': 'Optional: report how a previous answer worked out; piggybacks on any call.'}, 'projectId': {'type': 'string', 'minLength': 1, 'description': 'Project id from init/list_projects. Omit for the active project.'}, 'commit_sha': {'type': 'string', 'pattern': '^[0-9a-fA-F]{7,40}$', 'description': 'Pin to a commit (omit for latest)'}, 'repositoryId': {'type': 'string', 'minLength': 1, 'description': 'Encoded repository ID (from list_repositories/add_repository)'}}}
relate
Graph relationship traversal via one kind (real edges, not text). Kinds (1-10 symbols; heritage/chain one): - callers: direct callers. granularity:'file' (default) one row/file, 'site' one row/caller. - dependencies: outgoing calls/imports. - blast_radius: upstream impact walk (every caller, importer and referencer up to 3 hops, no per-hop sampling) + co-change siblings; risk {level,signals}. includeCrossRepo defaults ON here (off for others). blastRadiusTotalCount is the number of distinct symbols that 3-hop walk reached, not the row count: the blastRadius array is capped by expansionLimit. blastRadiusTruncated:true means the rows are a sample of that total; blastRadiusTotalAtLeast:true means the count stopped at its 10000 bound, so quote it as "N+". The walk stops at 3 hops, so it can miss impact further away; it never overcounts. Never report the number of listed rows as the impact size. - implementers: classes implementing interfaces via heritage edges. - heritage: full hierarchy (ancestors+descendants) of ONE type. maxDepth caps it. - chain: call-chain paths for a node (nodeId OR selectors[0]); chain params tune the walk. - path: shortest connection between selectors[0] (from) and selectors[1] (to). Direction-agnostic hop-labeled path; found:false when none within 6 hops. minimal:true = {id,name,filePath,startLine}-only (~50% cheaper) on callers/dependencies/blast_radius/implementers; granularity on callers/blast_radius. Rows may carry confidence (tiers in init usage); a cross-repo callers/dependencies row joined by a SCIP moniker also carries package (the package name that bridged the repos). 0 results: call locate (mode:text), not Grep; reason:"no_edges_indexed" = no edges.
Nur Lesen Idempotent
Eingabeschema
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'kind': {'enum': ['callers', 'dependencies', 'blast_radius', 'implementers', 'heritage', 'chain', 'path'], 'type': 'string', 'default': 'callers', 'description': 'Relationship to traverse. See the tool description for each kind.'}, 'depth': {'type': 'integer', 'maximum': 6, 'minimum': 1, 'description': 'chain. Chain length.'}, 'limit': {'type': 'integer', 'default': 5, 'maximum': 20, 'minimum': 1, 'description': 'Per-selector candidate cap (not heritage/chain).'}, 'intent': {'type': 'string', 'maxLength': 200, 'minLength': 1, 'description': 'Rerank by trigram similarity (not heritage/chain).'}, 'nodeId': {'type': 'string', 'minLength': 1, 'description': 'Start node for chain (OR selectors[0]).'}, 'minimal': {'type': 'boolean', 'default': False, 'description': '{id,name,filePath,startLine}-only, ~50% cheaper; not heritage/chain.'}, 'feedback': {'type': 'object', 'required': ['answerId', 'outcome'], 'properties': {'outcome': {'enum': ['useful', 'dead_end', 'corrected'], 'type': 'string', 'description': 'How the answer worked out.'}, 'answerId': {'type': 'string', 'maxLength': 36, 'minLength': 36, 'description': 'answer_id from a previous ask_codebase response'}, 'correction': {'type': 'string', 'maxLength': 2000, 'description': 'Only when the user corrected the answer'}}, 'description': 'Optional: report how a previous answer worked out; piggybacks on any call.'}, 'maxDepth': {'type': 'integer', 'maximum': 10, 'minimum': 1, 'description': 'Max depth for heritage; also caps the kind:path walk (clamped to <=6).'}, 'maxPaths': {'type': 'integer', 'maximum': 100, 'minimum': 1, 'description': 'chain. Cap on returned paths.'}, 'commitSha': {'type': 'string', 'pattern': '^[0-9a-fA-F]{7,40}$', 'description': 'Pin reads to one indexed revision (7-40 hex). Graph tools error with revision_not_indexed when it is not an indexed revision of the scoped repository, or revision_not_servable when that revision\'s graph was superseded by a later reindex, and echo the revision served back as commitSha; source ops read git objects, so any commit works there. Exception: a kept revision (revisions rows flagged architectureSnapshot) still serves map view:"architecture" as a preserved snapshot.'}, 'direction': {'enum': ['upstream', 'downstream', 'both'], 'type': 'string', 'default': 'both', 'description': "chain. 'downstream' leaves, 'upstream' entry points, 'both' (default)."}, 'projectId': {'type': 'string', 'minLength': 1, 'description': 'Project id from init/list_projects. Omit for the active project.'}, 'selectors': {'type': 'array', 'items': {'type': 'object', 'properties': {'nodeId': {'type': 'string', 'minLength': 1, 'description': 'Graph node id from a prior result.'}, 'symbol': {'type': 'string', 'minLength': 1, 'description': 'Symbol name, e.g. a function or class name.'}, 'filePath': {'type': 'string', 'minLength': 1, 'description': 'Repo-relative file path holding the symbol.'}, 'symbolPath': {'type': 'string', 'minLength': 1, 'description': 'Full symbolPath as find_node/locate returns.'}}}, 'maxItems': 10, 'minItems': 1, 'description': 'Symbols to traverse from (1-10). heritage uses selectors[0]; chain: OR nodeId.'}, 'edgeFilter': {'enum': ['calls', 'imports', 'calls_imports'], 'type': 'string', 'default': 'calls_imports', 'description': "chain. 'calls' | 'imports' | 'calls_imports' (default)."}, 'repository': {'type': 'string', 'minLength': 1, 'description': 'Repository full name, e.g. "owner/repo". Omit when the project has one repository.'}, 'granularity': {'enum': ['file', 'site'], 'type': 'string', 'default': 'file', 'description': "callers/blast_radius. 'file' one row/file, 'site' one row/node."}, 'expansionLimit': {'type': 'integer', 'default': 15, 'maximum': 100, 'minimum': 1, 'description': 'Caps returned count (not heritage/chain). Default 15.'}, 'landmarkFilter': {'type': 'string', 'maxLength': 200, 'minLength': 1, 'description': 'chain. Keep only paths through a node matching this.'}, 'terminalFilter': {'type': 'string', 'maxLength': 200, 'minLength': 1, 'description': 'chain. Restrict to paths ending at a node matching this.'}, 'includeCrossRepo': {'type': 'boolean', 'description': 'Walk cross-repo edges. Default true for blast_radius, false otherwise.'}, 'staysWithinClass': {'type': 'boolean', 'description': 'chain. Surface intra-class dispatch order.'}, 'pruneSetupMethods': {'type': 'boolean', 'description': 'chain. Drop framework bootstrap steps.'}, 'followPolymorphism': {'type': 'boolean', 'description': 'chain. Walk polymorphic dispatch edges (default false; untraversed hops in polymorphicBranchPoints).'}, 'minimalImplementers': {'type': 'boolean', 'default': False, 'description': 'Alias of minimal for implementers.'}}}
source
Raw file/git access at the indexed commit, for cloud agents with no clone; with a clone prefer your own Read/Grep/git. Ops: - read: content of filePath, whole file or slice startLine..endLine. ifHash (a prior read's hash) returns {unchanged:true}, no content. compact:true strips blank/comment-only lines. - list: files+subdirs at path. grep: ripgrep pattern (glob/pathPrefix). tree: layout from path. stat: size/lines/language/binary for filePath. blame: authorship for filePath. diff: fromSha..toSha. Keys: {op:"read",filePath:"src/a.ts"}, {op:"grep",pattern:"foo"}, {op:"list",path:"src"}. filePath is the file, path the directory. Gated by the Source Access add-on; else source_access_required.
Nur Lesen Idempotent
Eingabeschema
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'op': {'enum': ['read', 'list', 'grep', 'tree', 'stat', 'blame', 'diff'], 'type': 'string', 'description': 'See the tool description for each op. Omitted: inferred from the other args (pattern -> grep, fromSha/toSha -> diff, filePath/path -> read, nothing -> list).'}, 'glob': {'type': 'string', 'description': 'grep: limit to files matching this glob.'}, 'path': {'type': 'string', 'description': 'list/tree/diff: dir path in the repo (default root). On read/stat/blame it is read as filePath, on grep as pathPrefix.'}, 'limit': {'type': 'integer', 'maximum': 500, 'minimum': 1, 'description': 'grep: max matches.'}, 'query': {'type': 'string', 'minLength': 1, 'description': 'grep: alias for pattern.'}, 'toSha': {'type': 'string', 'pattern': '^[0-9a-fA-F]{7,40}$', 'description': 'diff: target commit (required), reachable from the indexed branch.'}, 'ifHash': {'type': 'string', 'minLength': 1, 'description': "read: a prior read's hash; if it still matches, returns {unchanged:true}, no content."}, 'compact': {'type': 'boolean', 'default': False, 'description': 'read: strip blank/comment-only lines (heuristic; content no longer maps 1:1 to lines).'}, 'endLine': {'type': 'integer', 'maximum': 9007199254740991, 'minimum': 1, 'description': 'read/blame: last line, 1-based.'}, 'fromSha': {'type': 'string', 'pattern': '^[0-9a-fA-F]{7,40}$', 'description': 'diff: base commit (required), reachable from the indexed branch.'}, 'pattern': {'type': 'string', 'minLength': 1, 'description': 'grep: ripgrep pattern (required; `query` is accepted as an alias).'}, 'feedback': {'type': 'object', 'required': ['answerId', 'outcome'], 'properties': {'outcome': {'enum': ['useful', 'dead_end', 'corrected'], 'type': 'string', 'description': 'How the answer worked out.'}, 'answerId': {'type': 'string', 'maxLength': 36, 'minLength': 36, 'description': 'answer_id from a previous ask_codebase response'}, 'correction': {'type': 'string', 'maxLength': 2000, 'description': 'Only when the user corrected the answer'}}, 'description': 'Optional: report how a previous answer worked out; piggybacks on any call.'}, 'filePath': {'type': 'string', 'minLength': 1, 'description': 'read/stat/blame: the file to open (required; `path` is accepted as an alias).'}, 'maxDepth': {'type': 'integer', 'maximum': 10, 'minimum': 1, 'description': 'tree: max recursion depth, default 3.'}, 'commitSha': {'type': 'string', 'pattern': '^[0-9a-fA-F]{7,40}$', 'description': 'Pin reads to one indexed revision (7-40 hex). Graph tools error with revision_not_indexed when it is not an indexed revision of the scoped repository, or revision_not_servable when that revision\'s graph was superseded by a later reindex, and echo the revision served back as commitSha; source ops read git objects, so any commit works there. Exception: a kept revision (revisions rows flagged architectureSnapshot) still serves map view:"architecture" as a preserved snapshot.'}, 'projectId': {'type': 'string', 'minLength': 1, 'description': 'Project id from init/list_projects. Omit for the active project.'}, 'startLine': {'type': 'integer', 'maximum': 9007199254740991, 'minimum': 1, 'description': 'read/blame: first line, 1-based.'}, 'pathPrefix': {'type': 'string', 'description': 'grep: limit to files under this prefix.'}, 'repository': {'type': 'string', 'minLength': 1, 'description': 'Repository full name, e.g. "owner/repo". Omit when the project has one repository.'}}}
Hinzugefügt
bundle
17. September 2026 12:37
Hinzugefügt
context
17. September 2026 12:37
Hinzugefügt
reindex_repository
17. September 2026 12:37
Hinzugefügt
list_installations
17. September 2026 12:37
Hinzugefügt
create_project
17. September 2026 12:37
Hinzugefügt
add_repository
17. September 2026 12:37
Hinzugefügt
ask_codebase
17. September 2026 12:37
Hinzugefügt
find_node
17. September 2026 12:37
Hinzugefügt
find_http_route
17. September 2026 12:37
Hinzugefügt
index_health
17. September 2026 12:37
Hinzugefügt
freshness
17. September 2026 12:37
Hinzugefügt
quick_lookup
17. September 2026 12:37
Hinzugefügt
list_tests_for
17. September 2026 12:37
Hinzugefügt
map
17. September 2026 12:37
Hinzugefügt
list_file_symbols
17. September 2026 12:37
Hinzugefügt
list_repositories
17. September 2026 12:37
Hinzugefügt
list_projects
17. September 2026 12:37
Hinzugefügt
estimate_scope
17. September 2026 12:37
Hinzugefügt
diff_impact
17. September 2026 12:37
Hinzugefügt
adr
17. September 2026 12:37
Hinzugefügt
ref
17. September 2026 12:37
Hinzugefügt
library
17. September 2026 12:37
Hinzugefügt
history
17. September 2026 12:37
Hinzugefügt
source
17. September 2026 12:37
Hinzugefügt
relate
17. September 2026 12:37
Hinzugefügt
locate
17. September 2026 12:37
Hinzugefügt
init
17. September 2026 12:37