Skip to content

MCP tools

comindly serve speaks MCP over stdio and forwards to the /mcp of the profile in use: the local engine, or a team server. A team server also serves the tools over HTTP at /mcp for agents that connect to it directly (Self-hosting); the local engine serves /mcp too, with its local token as the bearer. Results are markdown by default, with structured JSON attached (the team setting format=json for JSON only). How to register the server with an agent: Getting started; what to ask: Using comindly with agents.

Over HTTP, an agent works with the role of the person whose token it uses. A viewer's agent can call every reading tool, but remember, review and opening, posting to or closing a discussion are refused; a member's or an admin's agent can also record, review and post.

Wherever a tool takes focus, it accepts a symbol name (susar_due), a qualified method (RandomisationClient.randomise), a file path, or an id returned by find or search. Optional parameters are marked with ?.

Finding code

Tool Parameters Returns
search query, limit? (12) Graph-aware hybrid search over names, code and summaries (BM25, vectors, centrality)
find query, limit? (20) Symbols whose name or path contains query, with ids for the other tools
repos Indexed repositories, their sizes and internal package dependencies
suggest about?, limit? (40) Questions the index can answer, optionally about one keyword or symbol

Understanding a symbol

Tool Parameters Returns
zoom focus Callers, callees, importers, members, contract roles, and the constraints and dead ends recorded about it
thread focus, depth? (4) Forward call trace: what it calls, transitively
flow focus, depth? (4) A pre-generated walkthrough of an entry point (when built with flows) plus its live call trace
context_pack focus, token_budget? (1500) The smallest set of symbols to read before changing it, within the token budget

Impact and safety

Tool Parameters Returns
ripple focus, depth? (4) Blast radius: everything that depends on it, across repositories and contracts, by repository
contracts kind? (http, sqs, sns, s3, table), query?, dangling? Routes, queues, topics, buckets and tables with providers and consumers; dangling lists the ones missing a side
preflight files?, symbols? For planned edits: recorded constraints and dead ends, contracts other services use, blast radius, files that usually change together, failing checks

Team knowledge

Tool Parameters Returns
guide focus? Measured conventions and change recipes for a repository (from a repo, file or symbol), the org baseline, and the team's own conventions
why focus Recorded decisions, failed attempts, constraints and gotchas about it, with who, when, status and trust
remember kind, on, title, body?, evidence?, trigger?, fields? Records a decision, attempt (evidence required), constraint, gotcha, intent or question, anchored to the symbols in on
review id, action, reason? confirm, archive (no longer applies), invalidate (was wrong), supersede or dispute a record; retiring one a person wrote or confirmed only flags it for a person
discussion action (open, post, read, list, close), id?, repo?, ticket?, branch?, title?, body?, kind?, evidence?, on?, query?, closed? Working notes on a task or pull request, kept apart from the ledger: open one for a repository and a ticket or branch (or get the one already open), post a plan, decision, change, question or concern, read one by id, list them (open ones; closed: true includes closed ones), close one by hand with an optional body saying why. why and preflight list the open discussions on the code they cover. Indexing closes a discussion when its request merges or closes, or after a quiet period

Records written through MCP name the agent (from the MCP client, or COMINDLY_AGENT) and the person it works for (config author_name, else git user.name; on a team server, the member whose token the agent uses). Deleting records is not available over MCP.

Discussion posts are not reviewed. Whoever reads them, they are shown as quoted, attributed working notes, never as the team's decisions; what later changes must follow still goes to the ledger with remember. See Discussions.