mcp

v0.2.1
@pramaan/mcp Checked 3 days ago Published 1 month ago

Pramaan MCP server: list, describe and run capabilities from any MCP client.

The MCP server lets clients discover, quote and run Pramaan capabilities and missions. Start with PRAMAAN_API_KEY set and run npx @pramaan/mcp. The Pramaan CLI writes full results to disk with -o and supports compact --json output. Use npx @pramaan/cli --help to see its commands. Approval-required runs need the person to type yes in their own terminal; MCP can ask through a supporting client. Tools return one compact JSON text block. Object results also include the same object in structuredContent, even for tools without an output schema.

Summary extracted from the README.

Pramaan MCP

The MCP server lets clients discover, quote and run Pramaan capabilities and missions. Start with PRAMAAN_API_KEY set and run npx @pramaan/mcp.

CLI for large results

The Pramaan CLI writes full results to disk with -o <file> and supports compact --json output. Use npx @pramaan/cli --help to see its commands. Approval-required runs need the person to type yes in their own terminal; MCP can ask through a supporting client.

Results and local files

Tools return one compact JSON text block. Object results also include the same object in structuredContent, even for tools without an output schema. Prices and balances use dollar objects, for example "priceMax": { "value": 0.002, "currency": "USD" }; MCP omits the corresponding Micro fields. HTTP and SDK prices remain in micro-USD. A capability's own request, example and result fields keep their names.

Errors set isError: true and return { "error": { "code": "invalid_request", "message": "..." }, "hints": { "next": "..." } }. error.retryable appears only when true; error.effect appears only for a non-none effect. error.request_id, error.slot (the connection to make) and error.reason appear when the API sent them.

describe_capability and describe_outcome default to input schemas, example (when present), price, approval and connection requirements, needsIdempotencyKey, and a next-step hint. Pass detail: "full" for all metadata, including result schemas, effect class and mission steps. Quote exact inputs before running; a missing connection produces can_run: false and connection needs naming its slot.

With the local install (npx @pramaan/mcp), run_capability, run_outcome, get_job and wait_job accept save_to: "results/report.json". Relative paths start in the current working directory; parent directories are created and an existing file is replaced. The full JSON is saved and the tool returns a short receipt with savedTo, UTF-8 bytes, status, and existing reference or summary fields. Approval is still required where applicable. The hosted server refuses save_to before running the tool.