MCP Server


The optional MCP server exposes prismAId’s tools to agents over stdio, so an assistant can help a user design, validate, run, and check a systematic review through the same primitives the library and CLI use.

The server supports three usage patterns:

Available tools

The tools fall into four groups.

Design and setup — offline, no API keys, safe on drafts:

Local review planning — read-only, no API keys or model calls:

Protocol conformance — symbolic check against the latest shapes RevAIse publishes; needs network, but no API keys or file access (see Protocol Conformance):

RevAIse records — build and check a review record by hand (see RevAIse Integration); no API keys or file access, and the last two fetch the released data model live (network):

Execution — read and write files, use the network, and read LLM API keys from the environment:

Agents discover tool schemas via tools/list and call them with tools/call. The generator tools accept the same structured parameters as prismAId’s Go configuration generators, so an agent can author a configuration field by field, validate it, inspect an enabled chunking plan, and then run it — all in one session.

For a chunked prismaid_review run, the result includes the normal output path, the chunking-report path, and successful/failed manuscript counts. A partial run returns both this result and an error object after writing the normal results file and <results_file_name>.chunking-report.json; agents should read the sidecar to identify failed documents, coercions, and conflict resolutions.

Running execution tools

The design, generator, and conformance tools are self-contained. prismaid_plan_review_chunking is read-only but needs access to the configured input files. The execution tools also read and write files and call LLM providers. Two conventions apply when running the server in a container:

Because of these constraints, a practical pattern is to use the MCP server to design, validate, and check (the offline design, RevAIse-record, and conformance tools need none of this setup) and to run the execution tools with the native binary or a language package on the host, where local files and services are directly available. Configuration authored through the MCP server runs unchanged there.

Use from Go source

Use this when you want a local binary built directly from the project source (see also the Go Package installation page).

go install github.com/open-and-sustainable/prismaid/cmd/prismaid-mcp@latest
prismaid-mcp

Use from the GHCR container image

Use this when you want to run the MCP server without a local Go toolchain.

docker pull ghcr.io/open-and-sustainable/prismaid-mcp:0.15.0
docker run --rm -i \
  -v "$PWD":/work -e OPENAI_API_KEY \
  ghcr.io/open-and-sustainable/prismaid-mcp:0.15.0

Replace 0.15.0 with the released version you want to run. The bind-mount and environment flags are only needed for the execution tools.

Use from the MCP Registry

Use this when your agent platform supports MCP Registry server discovery and installation.

The prismAId MCP server is published by GitHub Actions on pushed version tags such as v0.15.0, using GitHub OIDC authentication and the registry publisher CLI. The registry entry points to the published OCI package, so agents resolve a versioned package rather than a repository source tree.

Registry references:

Example requests

Example tools/list request:

{ "jsonrpc": "2.0", "id": 1, "method": "tools/list" }

Example tools/call request (validate a review configuration):

{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "prismaid_validate_config",
    "arguments": {
      "config_type": "review",
      "toml": "[project]\nname = \"demo\"\n..."
    }
  }
}

In all cases, clients interact with the server through standard MCP tools/list and tools/call requests.