Changelog
Release history for the CodeSpar SDK, adapters, and MCP servers.
Changelog
May 2026
v0.9.0 — meta-tool router build-out + SSE streaming 2026-05-04
@codespar/sdk@0.9.0 + @codespar/types@0.7.0 + @codespar/api-types@0.4.0 + codespar (PyPI) 0.9.0 — meta-tool router shipped end-to-end. Eight new typed Session wrappers; two new auth types; SSE streaming for async settlement + verification.
Meta-tool typed wrappers — eight new methods on Session (TypeScript + Python parity, snake_case in Python):
session.discover(query)— semantic + lexical tool search across the catalog (pgvector + pg_trgm). Composio-analog.session.connectionWizard(serverId)— connection wizard backend; agents discover what's connected and initiate flows.session.charge(args)— typed wrapper forcodespar_charge(inbound, buyer pays merchant). Distinct from outboundpay.session.ship(args)— typed wrapper forcodespar_ship(Melhor Envio rails: domestic-label / domestic-quote / domestic-track).session.paymentStatus(toolCallId)— polling endpoint for async settlement ofcharge/pay.session.paymentStatusStream(toolCallId, { onUpdate?, signal? })— Server-Sent Events variant. Heartbeats every 15s; auto-closes 5s after terminal state.session.verificationStatus(toolCallId)— polling endpoint for async KYC settlement (codespar_kyc). Statuses: approved / rejected / review / expired / pending.session.verificationStatusStream(toolCallId, { onUpdate?, signal? })— SSE variant.
The polling siblings (paymentStatus, verificationStatus) stay live for backward compat — additive change only.
Meta-tool catalog grew from 5 → 53 routing rails across 9 meta-tools:
codespar_pay— outbound transferscodespar_charge(NEW) — inbound charges (Pix BRL: Asaas / Mercado Pago / iugu / Stone; card USD: Stripe)codespar_invoice— fiscal invoices. Default rail NFS-e (services); passrail: "nfe"for products via NFe.io. Alsonfcifor CFDI MX (Facturapi) + Factura AR (AFIP).codespar_notify— messaging (whatsapp via Z-API / Twilio, sms via Twilio, email via SendGrid)codespar_ship(NEW) — shipping (Melhor Envio with 3 rails)codespar_crypto_pay(NEW) — crypto payments via Coinbase Commerce + Bitsocodespar_kyc(NEW) — KYC via Persona / Sift / Konduto / Truoracodespar_discover(NEW) — tool search meta-toolcodespar_manage_connections(NEW) — connection wizard backend
Two new auth types — total 6 supported (api_key, path_secret, oauth, cert, hmac_signed, none):
cert— mTLS with X.509 client certificate, for BR open-banking corporate APIs (Banco do Brasil pilot; Itaú, Santander, Bradesco, Caixa next batch).hmac_signed— per-request signature (timestamp + method + path + body) with shared key + secret pair. For Foxbit and crypto exchanges following that pattern.
Catalog scale (as of release):
- 109+ MCP servers published on npm
- 2,200+ individual tools
- 53 routing rails in
META_TOOL_CATALOG - 6 LATAM countries covered: BR, MX, AR, CO, CL, PE
- 9 verticals: payments, banking, crypto, communication, ecommerce, erp, fiscal, fraud, identity
@codespar/api-types@0.4.0 — added cert + hmac_signed to the auth_type enum (AuthTypeSchema) and cert to AuthSchemaFieldKindSchema. Web dashboard's Provider Connect modal now renders cert (file-upload) and hmac_signed (KEY/SECRET) flows directly.
@codespar/types@0.7.0 — new wire-contract types: DiscoverResult, ConnectionWizardResult, PaymentStatusResult, PaymentStatusStreamOptions, VerificationStatusResult, VerificationStatusStreamOptions, ChargeArgs / ChargeResult, ShipArgs / ShipResult.
Adapter peerDeps — framework adapters (@codespar/claude, @codespar/openai, @codespar/vercel, @codespar/mcp, @codespar/langchain, @codespar/google-genai, @codespar/mastra, @codespar/crewai, @codespar/autogen, @codespar/llama-index, @codespar/letta, @codespar/camel) remain on 0.3.0. They consume only the SessionBase surface; the new methods land additively on Session.
See the SDK reference for the full method-by-method shape and Auth concepts for the new auth types.
April 2026
v0.3.0 — API canonicalization + 2-level tenancy 2026-04-19
@codespar/sdk@0.3.0 — Breaking alignment with the canonical wire contract.
codespar.create(userId, config)replacescodespar.sessions.create(config).userIdis now a required first positional argument; credentials, audit logs, and billing scope to it.session.execute(toolName, params)replacessession.execute({ name, arguments }). Two positional arguments instead of a single object.session.send(message)andsession.sendStream(message)take a natural-language string and run a Claude tool-use loop on the backend, returningSendResult/StreamEvent. The previous framing as fire-and-forget / streaming variants ofexecuteis removed.session.mcpis a property{ url, headers }instead of a method call.- 2-level tenancy (Org → Project) shipped end-to-end:
projectIdonSessionConfig,x-codespar-projectheader support, Zod schema validation on client (/^prj_[A-Za-z0-9]{16}$/). - Python package
codespar@0.1.1+on PyPI with matching surface (sync + async).
See Sessions and the SDK Reference for the full canonical shape.
v0.2.0 — SDK + 12 Adapters 2026-04-16
@codespar/sdk@0.2.0 — Major alignment with the api.codespar.dev backend contract.
session.execute()now returnstool_call_idandcalled_atfor auditsession.loop()— Complete Loop orchestration with step callbacks and retry policiessession.send()/session.sendStream()— natural language tool executionSessionConfig.preset— connect all servers for a country in one lineSessionConfig.manageConnections— block until servers are connected
12 Provider Adapters — all published at v0.2.0:
| Package | Framework |
|---|---|
@codespar/claude | Anthropic Claude |
@codespar/openai | OpenAI GPT |
@codespar/vercel | Vercel AI SDK |
@codespar/langchain | LangChain.js |
@codespar/google-genai | Google Gemini |
@codespar/mastra | Mastra |
@codespar/crewai | CrewAI |
@codespar/autogen | Microsoft AutoGen |
@codespar/llama-index | LlamaIndex.TS |
@codespar/letta | Letta (MemGPT) |
@codespar/camel | CAMEL-AI |
@codespar/mcp | MCP (Claude Desktop, Cursor) |
57 MCP Servers — all published on npm under @codespar/mcp-*:
- 14 payments, 5 fiscal, 5 logistics, 5 messaging, 8 banking
- 8 ERP, 3 e-commerce, 4 crypto, 1 public data, 4 agentic protocols
- Coverage: Brazil (35+), Mexico (5), Argentina (5), Colombia (4)
Documentation 2026-04-17
- 12 provider docs pages with full agent loop examples
- 4 cookbooks: Pix Payment Agent, E-Commerce Checkout, Multi-Provider, Streaming Chat
- "How CodeSpar Works" architecture explainer
- Servers & Toolkits catalog (57 servers)
- Expanded API Reference: Sessions, Tools, Connections, Servers
- MCP Generator guide
- Debugging & observability guide
- Build Your Own Server guide
llms.txtandllms-full.txtfor AI assistant context- Fumadocs callouts fix (46 callouts migrated to
<Callout>components) - Theme toggle (light/dark/system), GitHub link, Discord link, Dashboard CTA
- Fraunces display font for toolkits pages
March 2026
v0.1.0 — Initial Release 2026-03-31
@codespar/sdk@0.1.0— initial SDK with session management@codespar/claude,@codespar/openai,@codespar/vercel,@codespar/mcp— first 4 adapters- 20 MCP servers (Brazil-focused)
- Basic docs: intro, quickstart, 4 provider pages, concepts, API reference
Last updated on
SDK v0.3 → v0.9
Upgrading from @codespar/sdk@0.3.0 to 0.9.0. Additive release — eight new typed wrappers, two new auth types, async settlement and verification correlation, SSE streaming. No breaking changes to the 0.3 surface.
Glossary
Definitions for key terms and concepts used throughout the CodeSpar documentation.