maqpna mcp serve
Run an MCP server on stdio for coding agents: explain, init, validate, lint and test policies offline
Synopsis#
maqpna mcp serveDescription#
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 jsonor-o yamlprint the data, and--jq EXPRfilters the JSON.
Exit codes#
| Code | Meaning |
|---|---|
0 | success |
1 | error (the message says what failed, with a hint when there is one) |
2 | usage error: unknown flag, missing argument or bad value; the synopsis is printed |
3 | a check failed, a change is blocked, or a result did not match (tamper, policy mismatch) (not used by this command) |
Related commands#
Last updated