MAQPNADocs

maqpna mcp serve

Run an MCP server on stdio for coding agents: explain, init, validate, lint and test policies offline

Govern-o json | yaml

Synopsis#

maqpna mcp serve

Description#

From the help of maqpna mcp:

pin prints the observed tool definition hashes as a toolPins block (YAML; -o json for JSON) to paste into a ToolPolicy (default) or an MCPServer (--target mcpserver).

serve runs an MCP server on stdio for coding agents (Claude Code, Cursor, Codex): it exposes explain, init, validate, policy lint and policy test as tools, offline, so an agent can write and check MAQPNA manifests and policies. Add it with

  claude mcp add maqpna -- maqpna mcp serve

Flags#

This command takes no flags of its own.

The global flags (--context, -o, --no-color, ...) work with every command.

What happens when you run it#

  • Prints a table by default; -o json or -o yaml print the data, and --jq EXPR filters the JSON.

Exit codes#

CodeMeaning
0success
1error (the message says what failed, with a hint when there is one)
2usage error: unknown flag, missing argument or bad value; the synopsis is printed
3a check failed, a change is blocked, or a result did not match (tamper, policy mismatch) (not used by this command)

Last updated