
Security News
RubyGems Adds Cooldown Feature to Bundler for Newly Published Gems
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.
@codespar/sdk
Advanced tools
Commerce SDK for AI agents — sessions, managed auth, Complete Loop orchestration for Latin American APIs
Commerce SDK for AI agents — sessions, managed auth, Complete Loop orchestration for Latin American commercial APIs.
npm install @codespar/sdk
import { CodeSpar } from "@codespar/sdk";
const cs = new CodeSpar({ apiKey: "ak_..." });
const session = await cs.create("user_123", {
preset: "brazilian",
manageConnections: { waitForConnections: true },
});
// Natural language
const result = await session.send("Charge R$150 via Pix and issue the NF-e");
// Direct tool execution
const charge = await session.execute("ZOOP_CREATE_CHARGE", {
amount: 150.0,
payment_type: "pix",
});
// Complete Loop
const loop = await session.loop({
steps: [
{ server: "mcp-zoop", tool: "ZOOP_CREATE_CHARGE", params: { amount: 150, payment_type: "pix" } },
{ server: "mcp-nuvem-fiscal", tool: "NUVEMFISCAL_EMITIR_NFE", params: (prev) => ({ chargeId: prev[0].data }) },
{ server: "mcp-melhor-envio", tool: "MELHORENVIO_GENERATE_LABEL", params: {} },
{ server: "mcp-z-api", tool: "ZAPI_SEND_MESSAGE", params: { text: "Your order is on the way!" } },
],
onStepComplete: (step, result) => console.log(`✓ ${step.tool}`),
retryPolicy: { maxRetries: 3, backoff: "exponential" },
});
new CodeSpar(config)| Option | Type | Default | Description |
|---|---|---|---|
apiKey | string | CODESPAR_API_KEY env | Your API key |
baseUrl | string | https://api.codespar.dev | API base URL |
managed | boolean | true | Enable managed billing/logging |
cs.create(userId, config)| Option | Type | Description |
|---|---|---|
servers | string[] | MCP servers to connect |
preset | string | "brazilian", "mexican", "argentinian", "colombian", "all" |
manageConnections.waitForConnections | boolean | Block until all servers connected |
| Method | Description |
|---|---|
session.tools() | Get all available tools |
session.findTools(intent) | Search tools by description |
session.execute(tool, params) | Execute a specific tool |
session.send(message) | Send natural language message |
session.loop(config) | Run Complete Loop workflow |
session.authorize(serverId) | Start OAuth flow for a server |
session.connections() | List connected servers |
session.mcp | MCP transport URL and headers |
session.close() | Close session |
MIT — codespar.dev
FAQs
Commerce SDK for AI agents — sessions, managed auth, Complete Loop orchestration for Latin American APIs
The npm package @codespar/sdk receives a total of 115 weekly downloads. As such, @codespar/sdk popularity was classified as not popular.
We found that @codespar/sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.