@squawk
    Preparing search index...

    Function createSquawkMcpServer

    • Creates an MCP server preloaded with every squawk aviation tool module.

      Tool registration triggers eager construction of the shared resolver singletons in ./resolvers.js for every domain except the ICAO aircraft registry, which loads on first lookup. Live weather fetch tools issue outbound HTTPS requests to the Aviation Weather Center text API only when invoked.

      import { createSquawkMcpServer } from '@squawk/mcp';
      import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';

      const server = createSquawkMcpServer();
      await server.connect(new StdioServerTransport());

      Returns McpServer

      A fully configured MCP server instance. Connect it to a transport (typically StdioServerTransport for CLI use) via server.connect(transport) to begin handling protocol messages.