@suluk/mcp - v0.1.2
    Preparing search index...

    Interface McpOp

    @suluk/mcp — project ONE OpenAPI v4 document into a Model Context Protocol server. The same contract that drives the API, SDK, docs, admin, and panel now drives an agent-callable surface: every operation becomes an MCP tool (read-only by default; mutations opt-in via include:"all"), served over the Streamable-HTTP JSON-RPC transport as a Hono-mountable app. No hand-written tool schemas, no config drift — the contract is the single source. Pure projection (toolsFrom) + pure protocol (handleRpc) are independently testable; mcpApp wires transport. CANDIDATE tooling — NOT official OAS.

    interface McpOp {
        name: string;
        method: string;
        path: string;
        pathParams: string[];
        queryParams: string[];
        hasBody: boolean;
        readOnly: boolean;
    }
    Index

    Properties

    name: string

    Tool name (sanitized to MCP rules) — also how the executor finds the operation.

    method: string
    path: string

    Path template with a leading slash, e.g. /product/{id}.

    pathParams: string[]

    Path-template variable names, in template order — all required.

    queryParams: string[]

    Query parameter names.

    hasBody: boolean

    Whether this op carries a request body (the tool exposes it under body).

    readOnly: boolean

    GET/HEAD — safe, side-effect-free. The default projection only exposes these.