cascade-mcp, the MCP server
This page is the package's README with each tool's row read from the server's own tool definitions. The package is
packages/mcp.
An MCP server on stdio over a folder of Cascade pods, for Claude Desktop, VS Code or
any MCP client to start. It offers the tools of cascade-runtime/tools: those that read, to every client, and
those that propose a write (propose_entry, propose_judgment, propose_retraction) only to a client that declares at
initialisation that it can show the person a question (MCP elicitation). Each call to one of those asks the person, and writes
only if they say yes to that call: a no, a dismissed question or no answer writes nothing. A write the person said yes to
records that a model proposed it and that the person said yes. It never opens an encrypted pod.
Install it with the cascade-runtime tarball of the same build, both in one npm install
(cascade-mcp names the runtime by that build's version, which no registry holds), then run
it in that folder:
npm install <cascade-runtime tarball> <cascade-mcp tarball>
npx --no-install cascade-mcp --pods <folder>
--no-install keeps npx from fetching whatever npm's registry calls cascade-mcp.
<folder> holds the pods, one folder each, as an app keeps them (pods/ in a starter app). The reference tables the
folder holds (.tables/) are used as they are; --check-tables checks their feeds for newer tables, a network call,
when the first pod opens, and turns on reference_table_checks.
Each tool answers in one block of JSON text. A call whose input the rules refuse fails with an error that says why,
and any other failure with a fixed message and the reason in the server's log. A proposal the pod's rules refuse is an
answer, not an error: { written: false, refused }, with the reason.
propose_entry
Proposes adding an entry to a pod: one or more records the person has told you of, as Turtle. Each draft is <urn:cascade:output-0>, <urn:cascade:output-1> and so on, typed with its class (for example cascade:ProblemOrDiagnosis or cascade:AllergyOrIntolerance), and has a version <urn:cascade:output-0-version> that is a prov:specializationOf it and states what is entered (cascade:conditionName, cascade:clinicalStatus, cascade:allergenName and so on) and cascade:patient, the person the pod is about. It asks the person, through the client, to say yes to this one call, and writes nothing without it: the answer is { written: true, id }, or { written: false, said } when they said no, dismissed the question or left it unanswered, or { written: false, refused } when the pod's rules refuse it. The pod records that you proposed it and that the person said yes, so give no author, session or time.
- Offered to
- only a client that declares it can show the person a question; it needs the person's yes to each call, and a no, a dismissed question or no answer writes nothing
- Inputs
pod string, required: The pod's name, one of those list_pods gives.
turtle string, required: The entry's drafts and their versions, as Turtle with its prefixes declared.
Every row names the entry it is about, so an answer can cite it.
A hosted client sends what the tools return to its provider
A pod made from a person's own records is theirs to
decide about: use a model that runs on their machine, or leave that pod out.
Claude Desktop. Open Settings, Developer, Edit Config, and add the server to claude_desktop_config.json, with the
absolute paths of the folder cascade-mcp is installed in and of the pods (forward slashes work on Windows too), then
quit Claude Desktop and start it again:
{
"mcpServers": {
"cascade": {
"command": "node",
"args": [
"C:/path/to/installed/node_modules/cascade-mcp/dist/src/cli.js",
"--pods",
"C:/path/to/pods"
]
}
}
}