agentic-openapi-parser
    Preparing search index...

    Class McpToolAdapter

    Registers parsed OpenAPI tools onto an MCP server. Unlike the other adapters, MCP's unit of consumption is "register tools onto a server instance", not a flat list of tool objects — so this class doesn't implement IAiAdapter/extend BaseAiAdapter.

    Transport (stdio, HTTP, ...) and server.connect(transport) are left to the caller, matching this library's existing "bring your own X" scope boundary (e.g. it also doesn't perform OAuth2 grant flows, just injects an already-valid token).

    Index
    • Convenience: builds a fresh McpServer, registers all tools on it, and returns it (unconnected).

      Parameters

      • serverInfo: {}

      Returns McpServer

    • Registers every parsed tool onto an existing McpServer instance. Does not connect a transport.

      Parameters

      • server: McpServer

      Returns void