Adds the GoAnyAPI tools plugin: its live MCP catalog (35 tools plus catalog and call_dynamic) behind OAuth or an API key. Reviewed at 02f69af53. Maintainer fixes in 19808db: offline loading, a cached failed read, isError propagation, one User-Agent. Run at this head: bun scripts/check.mjs ok; packages/goanyapi bun test 8 pass. The author ran a real sign-in through magpie on macOS: an OAuth sign-in, a tool call from Codex, a refresh after expiry, and an error path.
2.6 KiB
GoAnyAPI for Magpie
Official website: goanyapi.com
GoAnyAPI's complete, publicly advertised read-only MCP API catalog as Magpie tools. No API selection list is maintained in this plugin. It supports OAuth login through GoAnyAPI's remote MCP server and API-key login through its REST API.
Install
Use Plugins → Discover → Tools for agents or:
magpie plugin add @magpie-community/tools-goanyapi
Sign in with GoAnyAPI → Sign in (OAuth, recommended):
magpie plugin login goanyapi oauth
Alternatively choose GoAnyAPI API key or use magpie plugin login goanyapi api. Existing API keys can also be supplied with GOANYAPI_API_KEY in the Magpie gateway process or through the apiKey plugin option. OAuth credentials are kept in Magpie's sign-in storage, and requests use the remote https://mcp.goanyapi.com/mcp server; no privileged backend secret is distributed.
Connecting to agents
Magpie exposes plugin tools at its local Streamable HTTP endpoint http://127.0.0.1:3425/mcp/magpie/tools. Add this endpoint to your agent's MCP configuration using the URL shown in Magpie's Plugins page. Installing the plugin alone does not modify an agent's configuration.
All current read-only API definitions come from the public https://api.goanyapi.com/api/v1/mcp/catalog JSON Schema directory, with GoAnyAPI's built-in catalog as a failover. New published APIs do not require a new PR or changes to this package. Magpie captures the named tool set when its plugin host loads; restart/reload the plugin to show newly added tools as individual names. The permanent catalog and call_dynamic tools read the live catalog at invocation time, allowing access to a newly published API without updating the plugin itself.
Authentication and credits
- OAuth: browser consent and OAuth 2.1/PKCE through GoAnyAPI's authorization server. API calls are sent to the remote MCP server, which validates the user's token.
- API key: REST requests to GoAnyAPI API endpoints using the user's API key, no backend-only secrets.
- API calls may consume GoAnyAPI account credits. Tool discovery reads the public catalog and is free.
- Never put API keys, access tokens, refresh tokens, or server-only secrets into public source or issues.
Development
node --check packages/goanyapi/index.mjs
bun scripts/check.mjs
bun test
Tests are in packages/goanyapi/tests. Authentication tests use stubs, not live user credentials.
Source of truth: GoAnyAPI MCP. Magpie community repository: magpie-community/plugins.