Skip to content

MCP

The MCP server offers every Command and query an agent may call as a tool, generated from the same registry as the REST API and the CLI. Each call goes through the same executor, so the Freigaberichtlinie, the rights of the key and the refusals are the same as over REST.

Local, over stdio. An MCP client starts decuma mcp with DECUMA_URL and DECUMA_API_KEY in its environment:

{ "mcpServers": { "decuma": { "command": "decuma", "args": ["mcp"],
"env": { "DECUMA_URL": "https://decuma.example.com", "DECUMA_API_KEY": "<API-Schlüssel>" } } } }

Remote, over Streamable HTTP. With DECUMA_MCP=an (or oauth) the server answers at <DECUMA_PUBLIC_URL>/mcp. A client sends Authorization: Bearer <API-Schlüssel>; with DECUMA_MCP=oauth an AI app only needs the address, and the person signs in, picks one Mandant and confirms what the app may do. Details: Self-hosting: remote MCP.

The key is created by a person with the second factor, for one Mandant, with the Freigabeklassen the agent needs; every write of the agent is logged with the key as actor.

  • A tool’s name is the Command with _ for . (buchung_record); its title is the Command (buchung.record).
  • Arguments: payload; a Command also requires rationale (stored in the Command-Log), and takes dry_run and origin.
  • readOnlyHint marks queries; _meta.approval_class names the Freigabeklasse a Command needs.
  • Commands only a person may do (the Freigabe of a Meldung) are not offered, and a call that needs the second factor answers needs_human.
  • /mcp?areas=belege,bank lists a smaller set (areas: core, belege, bank, books, reports, assets, sales, filings, year_end, payroll, company, administration); it changes the list, not the rights.

Every tool with its payload fields: MCP tools.