v0.1.1 — BrasilAPI fallback + Official MCP Registry
What changed
Added
- BrasilAPI fallback for
get_orgao— when PNCP returns 502/503/504 or times out, the tool now falls back to BrasilAPI's CNPJ endpoint and mapsrazao_social,nome_fantasia,natureza_juridica,descricao_situacao_cadastral,municipio, andufinto theOrgaoschema. Fallback responses include a_source: "brasilapi-fallback"marker so clients can detect degraded mode. mcpName: "io.github.Licinexus/mcp"inpackage.json— required by the Official MCP Registry for ownership verification. Registration submission follows.
Tests
- 6 new unit tests cover the fallback paths (success, 502, 503, timeout, 404 non-fallback, fallback-also-fails). 44/44 total green.
Context
PNCP detail endpoints showed transient 502/503 errors during the v0.1.0 launch window (~40% failure rate over the previous 10 days). The fallback above keeps the most-used get_orgao tool working through PNCP backend incidents. Tools that have no public alternative still return isError: true with a structured error message instead of crashing.
Install
npx -y @licinexusbr/mcp@0.1.1For Claude Desktop, no config change needed — npx -y @licinexusbr/mcp always picks up the latest published version.
Links
- npm: https://www.npmjs.com/package/@licinexusbr/mcp
- Full diff: v0.1.0...v0.1.1