pai
    Preparing search index...

    Function createMcpServer

    • The same calls as the commands above, as MCP tools. Each tool reads the key (resolveApiKey: PHANTOM_KEY_NAME, then PHANTOM_API_KEY, then the one saved by login) and PHANTOM_BASE_URL when it runs, so the server starts and lists its tools without a key and reports a missing key as a tool error.

      Parameters

      • env: Record<string, string | undefined> = process.env

      Returns McpServer