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 three groups.

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

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

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, and then run it — all in one session.

Running execution tools

The design, generator, and conformance tools are self-contained. The execution tools are not: they read and write files and call LLM providers. Two conventions apply when running the server in a container:

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.