AI tools
incentru mcp serves the connections this node keeps (incentru connection) to AI tools
over the Model Context Protocol, on stdin and stdout. The AI tool starts it. Any MCP client works,
with any model. incentru setup lists the tools, and incentru setup <id> prints the configuration
for one (and an add command, where the tool has one):
| Tool | Command | Where it goes |
|---|---|---|
| Cursor | incentru setup cursor |
~/.cursor/mcp.json; --project: .cursor/mcp.json |
| Claude Code | incentru setup claude-code |
claude mcp add --scope user … (user scope); --project: .mcp.json |
| Claude Desktop | incentru setup claude-desktop |
claude_desktop_config.json |
| VS Code | incentru setup vscode |
code --add-mcp … (user profile); --project: .vscode/mcp.json |
| Codex | incentru setup codex |
~/.codex/config.toml |
| Gemini CLI | incentru setup gemini |
~/.gemini/settings.json; --project: .gemini/settings.json |
| LM Studio | incentru setup lm-studio |
~/.lmstudio/mcp.json |
| Any other MCP client | incentru setup generic |
the generic mcpServers JSON, to paste |
With --write, incentru setup <id> adds the server to the tool’s file (user scope by default;
--project for the project’s file; --file PATH to choose one). It keeps the other servers and keys
(JSON keys come out sorted), copies the old file to <file>.bak, and refuses a file with comments:
it prints the snippet to paste instead. A file that is the tool’s own user store (Claude Code’s
~/.claude.json, VS Code’s user profile) is never written; it prints the tool’s add command.
--command sets the binary’s path (default: its absolute path), and --state-dir and --locks-file
are passed on to the server.
incentru instructions prints a short guide for an AI tool’s rules file: use incentru’s MCP server,
call connections and discover first, pass placeholders such as [name 2] back unchanged, use
dry_run before a change, and respect the locks. incentru instructions --write puts it in
AGENTS.md, or in --file F (CLAUDE.md, GEMINI.md, .cursor/rules/incentru.mdc,
.github/copilot-instructions.md), between <!-- incentru:start --> and <!-- incentru:end -->
markers, and replaces it there next time.
Local models
Section titled “Local models”Any MCP-capable chat app that runs a local model works the same way. For LM Studio, run
incentru setup lm-studio. A model served by Ollama or a similar runtime works through any
MCP-capable client: run incentru setup generic and add what it prints to that client. Prefer models
that support tool calling.
Tools and masking
Section titled “Tools and masking”The tools are connections,
test_connection, discover, search, show_user (see Reveals in the Client page), one per action
and, once set up, the organisation’s workflow tools (see The organisation’s workflows). An action that only reads (read_only in
its manifest) is read_<connection>__<action> and carries MCP’s read-only hint; every other action is
<connection>__<action> and is marked destructive, so the client asks before it writes; dry_run checks
a write without sending it. An HTTP connection’s request comes as two tools: read_<connection>__request
takes GET and HEAD, <connection>__request takes POST, PUT, PATCH and DELETE. To let reads run without
asking, allow connections, test_connection, discover, search, show_user, workflows, run_result and every tool whose name starts with
read_; incentru setup <tool> prints how, and writes the rules for Claude Code, including show_user. With the read_only
lock on, write actions are not offered at all.
A connection can describe what its system offers, its endpoints, objects and fields, so the model does
not have to guess them: incentru connection set <name> --description TEXT (or --description-file PATH, or --openapi PATH for a summary of an OpenAPI or Swagger document). The description goes to the
model as written, in the connection’s tools and as about in connections, so it must not hold data or
secrets.
A result that hid values carries a link to that call in the Client, where the person sees it with the
real values; the AI tool is told to offer the link, and to use show_user for a plan it writes with
placeholders. The model never gets a value. no_reveal switches this off.
Everything runs as connection test does: under the owner’s locks, with secrets opened by the node’s
local key only. Results are masked on the node (see Masking) before the client sees them, and lists
longer than --rows (default 20) are sent compact. The client passes placeholders such as [email 1]
back unchanged and the node fills in the real values, on the connection each value came from or
on one a flow allows (see Where a placeholder fills in); placeholders
last for one session. A node on its own uses its own masking settings; an enrolled one uses what
InCentru Cloud last sent, and the least masking allowed holds either way. Run it as the user who owns the
state directory, or pass --state-dir.
The organisation’s workflows
Section titled “The organisation’s workflows”With the node enrolled in InCentru Cloud and a person’s API token set up, the server also offers workflows (the
organisation’s workflows that person may run, with their inputs), run_workflow and run_result. Set
them in the Client’s InCentru Cloud screen (Workflows from your AI tool), or on a server:
incentru settings workflows --token-stdin < token.txt # enrolled: its InCentru Cloudincentru settings workflows --url https://cp.example.com/api --token-stdinincentru settings workflows --offCreate the token on the console’s Tokens page; it is encrypted under the node’s local key, never shown
again, and runs start as its person; it goes only to the address it was set for, so a new address
needs the token again. Leaving the organisation forgets it. An address other than InCentru Cloud
this node enrolled with is kept to the egress locks, as an action is. run_workflow
checks the inputs against the workflow’s and, when the organisation encrypts run inputs, encrypts them to
its intake node (incentru-seal:v1:run-inputs), so InCentru Cloud never sees them in clear. A
node pinned to the administrators’ keys encrypts only to an intake node an administrator admitted, and
otherwise turns the call down and sends nothing (see the
security model); on an unpinned node
InCentru Cloud names that node and its key, and the answer says so. When the organisation does not
encrypt run inputs, they go in clear, as from the console, and the answer says so. A workflow without inputs needs no intake
node. A workflow input takes only values the user gives: a workflow runs
elsewhere in the organisation, not on the connection a value came from, so a call whose inputs hold a
placeholder such as [email 1] is turned down and the node fills nothing in. It waits up to
wait_seconds (default 30, at most 120); run_result reads a run later. The run’s output and errors
are encrypted under the org key: the running node (incentru up, through its control socket) opens only
the values the answer shows, and they are masked before the client sees them. Without a running node
that holds the org key, the answer is the status only. run_workflow is marked destructive, and the
read_only lock leaves it out.