release: get_api_key MCP tool (#576)
Merged
SW
6mo ago+128+128+012345678901234567890123456789-0-0-0123456789
Promotes #576 from `test` to `main`.
Included
- #576 โ feat(mcp): add `get_api_key` tool. Returns the bearer token the caller authenticated this MCP connection with so an LLM can use it for direct HTTP requests to api.recoupable.com.
Validated end-to-end against the preview deployment with Cowork (MCP `tools/list` shows `get_api_key`; `tools/call` returns the expected payload; the returned value works as an `x-api-key` against `/api/accounts/id`).
๐ค Generated with Claude Code
Summary by cubic
Add get_api_key MCP tool that returns the API key used to authenticate the MCP session, enabling direct HTTP calls to api.recoupable.com via x-api-key or Bearer. Registers the tool and adds tests covering registration, success, and missing/empty auth cases.