accueil / serveurs / Dev & Code / com.symvanta/code-graph
com.symvanta/code-graph
serveur MCP (Model Context Protocol) · symvanta-v1 1.0.0
Référencé dans l'annuaire. Seul le pentest comportemental fait foi, et il n'a pas encore été exécuté sur ce serveur.
Est-ce que com.symvanta/code-graph est sûr ?
Au dernier audit MCP Hub, le serveur MCP « com.symvanta/code-graph » est classé « Non encore testé ». Référencé dans l'annuaire. Seul le pentest comportemental fait foi, et il n'a pas encore été exécuté sur ce serveur. Le verdict est réévalué en continu ; consultez la fiche pour l'état à jour.
Méthode : MCP Hub analyse la description de chaque outil (couche 1) et, pour le verdict fort, exécute le serveur dans une micro-VM isolée avec leurres et réseau bloqué (couche 2). On publie des noms et des compteurs, jamais le contenu brut renvoyé par un outil.
Les 27 outils
- add_repository≈ 574 tokens
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.
Paramètres, retour & exemple (6)
Paramètresowner· string · requis
GitHub owner (user or org)feedback· object · optionnel
Optional: report how a previous answer worked out; piggybacks on any call.projectId· string · optionnel
Project id from init/list_projects. Omit for the active project.repo_name· string · requis
Repository namedefault_branch· string · optionnel
Default branch (default main)installation_id· string · optionnel
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.
Exemple d'appel{"name": "add_repository", "arguments": {"owner": "texte", "repo_name": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}]} - adr≈ 744 tokens
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".
Paramètres, retour & exemple (14)
Paramètresid· integer · optionnel
update: record id (from adr list or find_node decisions).op· string · requis · record | list | update
record: create a decision record. list: read records. update: amend or supersede one.limit· integer · optionnel
list: max records (default 20).title· string · optionnel
record: short imperative title, e.g. "No pgvector".status· string · optionnel · proposed | accepted | superseded | deprecated
record/update: lifecycle status.context· string · optionnel
Why (constraints, alternatives rejected).decision· string · optionnel
record: what was decided.feedback· object · optionnel
Optional: report how a previous answer worked out; piggybacks on any call.filePath· string · optionnel
Anchor: repo-relative file path.projectId· string · optionnel
Project id from init/list_projects. Omit for the active project.repository· string · optionnel
Repository full name, e.g. "owner/repo". Omit when the project has one repository.symbolPath· string · optionnel
Anchor: symbolPath as find_node / locate returns.consequences· string · optionnel
Trade-offs accepted.supersededById· integer · optionnel
update: id of the replacement record.
Exemple d'appel{"name": "adr", "arguments": {"op": "record"}}Exemple de retour{"content": [{"type": "text", "text": "…"}]} - ask_codebase≈ 706 tokens
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.
Paramètres, retour & exemple (9)
Paramètreslimit· integer · optionnel
Max candidate symbols fed to synthesis (default 10, max 30).query· string · optionnel
Alias of question.scope· string · optionnel · repo | all
repo (default) = single-repo. all = cross-repo; repositoryIds narrows, omit spans all.feedback· object · optionnel
Optional: report how a previous answer worked out; piggybacks on any call.question· string · optionnel
The behavior question, e.g. "how does X work".commitSha· string · optionnel
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· string · optionnel
Project id from init/list_projects. Omit for the active project.repository· string · optionnel
Repository full name, e.g. "owner/repo". Omit when the project has one repository.repositoryIds· array · optionnel
scope:all only. Restrict to these encoded repository ids.
Exemple d'appel{"name": "ask_codebase", "arguments": {"limit": 1, "query": "texte", "scope": "repo", "feedback": {}, "question": "texte", "commitSha": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}]} - bundle≈ 644 tokens
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}.
Paramètres, retour & exemple (5)
Paramètrescalls· array · requis
Calls to run in parallel; each uses the bundle's project/repository scope unless its args.repository names another one.feedback· object · optionnel
Optional: report how a previous answer worked out; piggybacks on any call.commitSha· string · optionnel
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· string · optionnel
Project id from init/list_projects. Omit for the active project.repository· string · optionnel
Repository full name, e.g. "owner/repo". Omit when the project has one repository.
Exemple d'appel{"name": "bundle", "arguments": {"calls": []}}Exemple de retour{"content": [{"type": "text", "text": "…"}]} - context≈ 544 tokens
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.
Paramètres, retour & exemple (5)
Paramètrestask· string · requis
Natural-language task. Returns ranked files with symbols and matching snippets, no LLM call.feedback· object · optionnel
Optional: report how a previous answer worked out; piggybacks on any call.commitSha· string · optionnel
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· string · optionnel
Project id from init/list_projects. Omit for the active project.repository· string · optionnel
Repository full name, e.g. "owner/repo". Omit when the project has one repository.
Exemple d'appel{"name": "context", "arguments": {"task": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}]} - create_project≈ 328 tokens
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).
Paramètres, retour & exemple (2)
Paramètresname· string · requis
Project name. The slug is derived from it and made unique within the workspace.feedback· object · optionnel
Optional: report how a previous answer worked out; piggybacks on any call.
Exemple d'appel{"name": "create_project", "arguments": {"name": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}]} - diff_impact≈ 514 tokens
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.
Paramètres, retour & exemple (7)
Paramètresbase· string · optionnel
Base revision (7-40 hex). Omit for the previous indexed.head· string · optionnel
Head revision (7-40 hex). Omit for the session's effective revision.feedback· object · optionnel
Optional: report how a previous answer worked out; piggybacks on any call.projectId· string · optionnel
Project id from init/list_projects. Omit for the active project.repository· string · optionnel
Repository full name, e.g. "owner/repo". Omit when the project has one repository.expansionLimit· integer · optionnel
Cap on impacted nodes (default 25); totals always reported.includeCrossRepo· boolean · optionnel
Include cross-repo fallout (default true).
Exemple d'appel{"name": "diff_impact", "arguments": {"base": "texte", "head": "texte", "feedback": {}, "projectId": "texte", "repository": "texte", "expansionLimit": 1}}Exemple de retour{"content": [{"type": "text", "text": "…"}]} - estimate_scope≈ 344 tokens
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.
Paramètres, retour & exemple (3)
Paramètresfeedback· object · optionnel
Optional: report how a previous answer worked out; piggybacks on any call.projectId· string · optionnel
Project id from init/list_projects. Omit for the active project.description· string · requis
Natural-language description of the intended change.
Exemple d'appel{"name": "estimate_scope", "arguments": {"description": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}]} - find_http_route≈ 555 tokens
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.
Paramètres, retour & exemple (6)
Paramètrespath· string · requis
Route path, e.g. "/api/users/:id". Partial paths match.method· string · optionnel
HTTP method filter, e.g. GET or POST.feedback· object · optionnel
Optional: report how a previous answer worked out; piggybacks on any call.commitSha· string · optionnel
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· string · optionnel
Project id from init/list_projects. Omit for the active project.repository· string · optionnel
Repository full name, e.g. "owner/repo". Omit when the project has one repository.
Exemple d'appel{"name": "find_http_route", "arguments": {"path": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}]} - find_node≈ 1032 tokens
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.
Paramètres, retour & exemple (13)
Paramètreslimit· integer · optionnel
Max results (default 5, max 20).feedback· object · optionnel
Optional: report how a previous answer worked out; piggybacks on any call.commitSha· string · optionnel
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· string · optionnel
Project id from init/list_projects. Omit for the active project.selectors· array · requis
Symbols to resolve (1-10), each by nodeId, symbol, symbolPath, or filePath.repository· string · optionnel
Repository full name, e.g. "owner/repo". Omit when the project has one repository.sourceMode· string · optionnel · none | signature
With includeSource: "signature" returns the declaration only.includeSource· boolean · optionnel
Attach source for resolved nodes.expansionLimit· integer · optionnel
Cap on expanded related nodes (default 15, max 100).includeHeritage· boolean · optionnel
Default true. Include a compact heritage field for a class/interface/struct/protocol. false skips it on bulk scans.includeCommunity· boolean · optionnel
Attach the symbol's Louvain module (community name). Off by default (extra edge lookup).includeCrossRepo· boolean · optionnel
With includeHeritage on, walk cross-repo heritage edges. No-op when includeHeritage is off.includeSummaries· boolean · optionnel
Attach generated summaries when available.
Exemple d'appel{"name": "find_node", "arguments": {"selectors": []}}Exemple de retour{"content": [{"type": "text", "text": "…"}]} - freshness≈ 343 tokens
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).
Paramètres, retour & exemple (3)
Paramètresfeedback· object · optionnel
Optional: report how a previous answer worked out; piggybacks on any call.projectId· string · optionnel
Project id from init/list_projects. Omit for the active project.repository· string · optionnel
Repository full name, e.g. "owner/repo". Omit when the project has one repository.
Exemple d'appel{"name": "freshness", "arguments": {"feedback": {}, "projectId": "texte", "repository": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}]} - history≈ 719 tokens
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").
Paramètres, retour & exemple (10)
Paramètresop· string · requis · commits | commit | recently_changed
commits: recent commits (metadata + file list). commit: one commit in detail. recently_changed: most-changed files over the window.sha· string · optionnel
op:commit. The commit to read (7-64 hex).path· string · optionnel
Restrict to commits touching this repo-relative path.limit· integer · optionnel
Max rows (default 50, max 200).since· string · optionnel
ISO datetime lower bound.until· string · optionnel
ISO datetime upper bound.author· string · optionnel
Filter by author name or email substring.feedback· object · optionnel
Optional: report how a previous answer worked out; piggybacks on any call.projectId· string · optionnel
Project id from init/list_projects. Omit for the active project.repository· string · optionnel
Repository full name, e.g. "owner/repo". Omit when the project has one repository.
Exemple d'appel{"name": "history", "arguments": {"op": "commits"}}Exemple de retour{"content": [{"type": "text", "text": "…"}]} - index_health≈ 681 tokens
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.
Paramètres, retour & exemple (3)
Paramètresfeedback· object · optionnel
Optional: report how a previous answer worked out; piggybacks on any call.projectId· string · optionnel
Project id from init/list_projects. Omit for the active project.repository· string · optionnel
Repository full name, e.g. "owner/repo". Omit when the project has one repository.
Exemple d'appel{"name": "index_health", "arguments": {"feedback": {}, "projectId": "texte", "repository": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}]} - init≈ 402 tokens
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.
Paramètres, retour & exemple (2)
Paramètresfeedback· object · optionnel
Optional: report how a previous answer worked out; piggybacks on any call.repository· string · optionnel
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.
Exemple d'appel{"name": "init", "arguments": {"feedback": {}, "repository": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}]} - library≈ 454 tokens
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.
Paramètres, retour & exemple (5)
Paramètresop· string · requis · packages | version
packages: list indexed packages. version: resolve one specifier's indexed version.limit· integer · optionnel
op:packages. Max rows (default 50, max 200).feedback· object · optionnel
Optional: report how a previous answer worked out; piggybacks on any call.projectId· string · optionnel
Project id from init/list_projects. Omit for the active project.specifier· string · optionnel
op:version. Package specifier, e.g. "react".
Exemple d'appel{"name": "library", "arguments": {"op": "packages"}}Exemple de retour{"content": [{"type": "text", "text": "…"}]} - list_file_symbols≈ 513 tokens
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}.
Paramètres, retour & exemple (5)
Paramètresfeedback· object · optionnel
Optional: report how a previous answer worked out; piggybacks on any call.filePath· string · requis
Repo-relative file path to list symbols for.commitSha· string · optionnel
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· string · optionnel
Project id from init/list_projects. Omit for the active project.repository· string · optionnel
Repository full name, e.g. "owner/repo". Omit when the project has one repository.
Exemple d'appel{"name": "list_file_symbols", "arguments": {"filePath": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}]} - list_installations≈ 312 tokens
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.
Paramètres, retour & exemple (1)
Paramètresfeedback· object · optionnel
Optional: report how a previous answer worked out; piggybacks on any call.
Exemple d'appel{"name": "list_installations", "arguments": {"feedback": {}}}Exemple de retour{"content": [{"type": "text", "text": "…"}]} - list_projects≈ 224 tokens
List all projects with indexing summaries. Find a project by name or check which exist.
Paramètres, retour & exemple (1)
Paramètresfeedback· object · optionnel
Optional: report how a previous answer worked out; piggybacks on any call.
Exemple d'appel{"name": "list_projects", "arguments": {"feedback": {}}}Exemple de retour{"content": [{"type": "text", "text": "…"}]} - list_repositories≈ 257 tokens
List repositories in a project. Find repository names to scope a query to one repo.
Paramètres, retour & exemple (2)
Paramètresfeedback· object · optionnel
Optional: report how a previous answer worked out; piggybacks on any call.projectId· string · optionnel
Project id from init/list_projects. Omit for the active project.
Exemple d'appel{"name": "list_repositories", "arguments": {"feedback": {}, "projectId": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}]} - list_tests_for≈ 490 tokens
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.
Paramètres, retour & exemple (5)
Paramètresfeedback· object · optionnel
Optional: report how a previous answer worked out; piggybacks on any call.selector· string · requis
Symbol name to match against test suite names.commitSha· string · optionnel
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· string · optionnel
Project id from init/list_projects. Omit for the active project.repository· string · optionnel
Repository full name, e.g. "owner/repo". Omit when the project has one repository.
Exemple d'appel{"name": "list_tests_for", "arguments": {"selector": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}]} - locate≈ 1146 tokens
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.
Paramètres, retour & exemple (16)
Paramètreskind· string · optionnel · module | class | function | interface | endpoint | schema | struct | enum
mode:symbol. Filter by node kind.mode· string · optionnel · text | symbol | semantic | file | config | codebase
Force a mode. Omit + bare query = AUTO-ROUTE (text, then semantic on empty). queries without a mode implies text.name· string · optionnel
mode:file. Filename fragment; defaults to query.layer· string · optionnel
mode:symbol. Scope to one layer (e.g. browser, node, common, test).limit· integer · optionnel
Max results. Per-mode caps apply (text 200/20, symbol 20, semantic 5, file 10, config 20/20, codebase 20/10).query· string · optionnel
Search term or NL query. Required for symbol/semantic/codebase; text/config: query or queries; file: query or name.queries· array · optionnel
text/config. Up to 10 terms; interleaved, deduped, each tagged matchedQuery. Without an explicit mode, implies mode:text. Accepts a JSON-array string.feedback· object · optionnel
Optional: report how a previous answer worked out; piggybacks on any call.commitSha· string · optionnel
Pin an indexed revision (text/symbol/semantic/config; ignored by file/codebase).pathsOnly· boolean · optionnel
mode:text. "filePath:lineNumber" only, no snippets (~5x fewer tokens).projectId· string · optionnel
Project id from init/list_projects. Omit for the active project.maxPerFile· integer · optionnel
mode:text. Cap occurrences/file (default 5; capped file carries moreInFileTruncated). 0 = uncapped.pathPrefix· string · optionnel
text/symbol/config. Restrict to paths under this prefix.repository· string · optionnel
Single-repo scope (not codebase; that is project-wide, use repositoryIds).includeTests· boolean · optionnel
text/symbol/semantic. Include test files. Default false ranks them last; auto-on for test queries.repositoryIds· array · optionnel
mode:codebase. Narrow to these repository ids; omit to scan all.
Exemple d'appel{"name": "locate", "arguments": {"kind": "module", "mode": "text", "name": "texte", "layer": "texte", "limit": 1, "query": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}]} - map≈ 758 tokens
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.
Paramètres, retour & exemple (8)
Paramètrespath· string · optionnel
Repo-relative subtree (e.g. "src/v1/mcp"). Omit for the whole repo.view· string · optionnel · tree | architecture
"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· string · optionnel · compact | full
"compact" (default): classes/methods/functions/endpoints. "full" adds properties.feedback· object · optionnel
Optional: report how a previous answer worked out; piggybacks on any call.maxDepth· integer · optionnel
Drop files deeper than this many path segments. Omit for no cap.commitSha· string · optionnel
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· string · optionnel
Project id from init/list_projects. Omit for the active project.repository· string · optionnel
Repository full name, e.g. "owner/repo". Omit when the project has one repository.
Exemple d'appel{"name": "map", "arguments": {"path": "texte", "view": "tree", "density": "compact", "feedback": {}, "maxDepth": 1, "commitSha": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}]} - quick_lookup≈ 426 tokens
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.
Paramètres, retour & exemple (5)
Paramètreslimit· integer · optionnel
Max results (max 20).query· string · requis
Substring to match against symbol names (no ranking).feedback· object · optionnel
Optional: report how a previous answer worked out; piggybacks on any call.projectId· string · optionnel
Project id from init/list_projects. Omit for the active project.repository· string · optionnel
Repository full name, e.g. "owner/repo". Omit when the project has one repository.
Exemple d'appel{"name": "quick_lookup", "arguments": {"query": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}]} - ref≈ 814 tokens
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.
Paramètres, retour & exemple (8)
Paramètresop· string · requis · use | clear | index_working_tree | use_project | clear_project
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· string · optionnel
op:use. The tracked branch to pin.baseSha· string · optionnel
Indexed base your edits sit on. Omit for the default-branch tip.feedback· object · optionnel
Optional: report how a previous answer worked out; piggybacks on any call.projectId· string · optionnel
Project id from init/list_projects. Omit for the active project.repository· string · optionnel
Repository full name, e.g. "owner/repo". Omit when the project has one repository.changedFiles· array · optionnel
Changed/added files with current contents, repo-relative paths.deletedPaths· array · optionnel
Repo-relative deleted paths.
Exemple d'appel{"name": "ref", "arguments": {"op": "use"}}Exemple de retour{"content": [{"type": "text", "text": "…"}]} - reindex_repository≈ 462 tokens
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.
Paramètres, retour & exemple (5)
Paramètresforce· boolean · optionnel
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· object · optionnel
Optional: report how a previous answer worked out; piggybacks on any call.projectId· string · optionnel
Project id from init/list_projects. Omit for the active project.commit_sha· string · optionnel
Pin to a commit (omit for latest)repositoryId· string · requis
Encoded repository ID (from list_repositories/add_repository)
Exemple d'appel{"name": "reindex_repository", "arguments": {"repositoryId": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}]} - relate≈ 1674 tokens
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.
Paramètres, retour & exemple (24)
Paramètreskind· string · optionnel · callers | dependencies | blast_radius | implementers | heritage | chain | path
Relationship to traverse. See the tool description for each kind.depth· integer · optionnel
chain. Chain length.limit· integer · optionnel
Per-selector candidate cap (not heritage/chain).intent· string · optionnel
Rerank by trigram similarity (not heritage/chain).nodeId· string · optionnel
Start node for chain (OR selectors[0]).minimal· boolean · optionnel
{id,name,filePath,startLine}-only, ~50% cheaper; not heritage/chain.feedback· object · optionnel
Optional: report how a previous answer worked out; piggybacks on any call.maxDepth· integer · optionnel
Max depth for heritage; also caps the kind:path walk (clamped to <=6).maxPaths· integer · optionnel
chain. Cap on returned paths.commitSha· string · optionnel
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· string · optionnel · upstream | downstream | both
chain. 'downstream' leaves, 'upstream' entry points, 'both' (default).projectId· string · optionnel
Project id from init/list_projects. Omit for the active project.selectors· array · optionnel
Symbols to traverse from (1-10). heritage uses selectors[0]; chain: OR nodeId.edgeFilter· string · optionnel · calls | imports | calls_imports
chain. 'calls' | 'imports' | 'calls_imports' (default).repository· string · optionnel
Repository full name, e.g. "owner/repo". Omit when the project has one repository.granularity· string · optionnel · file | site
callers/blast_radius. 'file' one row/file, 'site' one row/node.expansionLimit· integer · optionnel
Caps returned count (not heritage/chain). Default 15.landmarkFilter· string · optionnel
chain. Keep only paths through a node matching this.terminalFilter· string · optionnel
chain. Restrict to paths ending at a node matching this.includeCrossRepo· boolean · optionnel
Walk cross-repo edges. Default true for blast_radius, false otherwise.staysWithinClass· boolean · optionnel
chain. Surface intra-class dispatch order.pruneSetupMethods· boolean · optionnel
chain. Drop framework bootstrap steps.followPolymorphism· boolean · optionnel
chain. Walk polymorphic dispatch edges (default false; untraversed hops in polymorphicBranchPoints).minimalImplementers· boolean · optionnel
Alias of minimal for implementers.
Exemple d'appel{"name": "relate", "arguments": {"kind": "callers", "depth": 1, "limit": 1, "intent": "texte", "nodeId": "texte", "minimal": true}}Exemple de retour{"content": [{"type": "text", "text": "…"}]} - source≈ 1103 tokens
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.
Paramètres, retour & exemple (19)
Paramètresop· string · optionnel · read | list | grep | tree | stat | blame | diff
See the tool description for each op. Omitted: inferred from the other args (pattern -> grep, fromSha/toSha -> diff, filePath/path -> read, nothing -> list).glob· string · optionnel
grep: limit to files matching this glob.path· string · optionnel
list/tree/diff: dir path in the repo (default root). On read/stat/blame it is read as filePath, on grep as pathPrefix.limit· integer · optionnel
grep: max matches.query· string · optionnel
grep: alias for pattern.toSha· string · optionnel
diff: target commit (required), reachable from the indexed branch.ifHash· string · optionnel
read: a prior read's hash; if it still matches, returns {unchanged:true}, no content.compact· boolean · optionnel
read: strip blank/comment-only lines (heuristic; content no longer maps 1:1 to lines).endLine· integer · optionnel
read/blame: last line, 1-based.fromSha· string · optionnel
diff: base commit (required), reachable from the indexed branch.pattern· string · optionnel
grep: ripgrep pattern (required; `query` is accepted as an alias).feedback· object · optionnel
Optional: report how a previous answer worked out; piggybacks on any call.filePath· string · optionnel
read/stat/blame: the file to open (required; `path` is accepted as an alias).maxDepth· integer · optionnel
tree: max recursion depth, default 3.commitSha· string · optionnel
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· string · optionnel
Project id from init/list_projects. Omit for the active project.startLine· integer · optionnel
read/blame: first line, 1-based.pathPrefix· string · optionnel
grep: limit to files under this prefix.repository· string · optionnel
Repository full name, e.g. "owner/repo". Omit when the project has one repository.
Exemple d'appel{"name": "source", "arguments": {"op": "read", "glob": "texte", "path": "texte", "limit": 1, "query": "texte", "toSha": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}]}
C'est votre serveur ?
Revendiquez-le sur l'espace créateur (preuve GitHub, domaine ou npm) pour afficher le badge « propriétaire vérifié » et lancer un pentest comportemental à la demande afin d'obtenir le badge « Vérifié ».