Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@codespar/claude

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codespar/claude

Claude Agent SDK adapter for CodeSpar — convert MCP tools to Claude tool format

latest
Source
npmnpm
Version
0.4.0
Version published
Maintainers
1
Created
Source

@codespar/claude

Claude Agent SDK adapter for CodeSpar — convert session tools to Anthropic Claude tool format.

Install

npm install @codespar/claude @codespar/sdk

Usage

import { CodeSpar } from "@codespar/sdk";
import { getTools } from "@codespar/claude";

const cs = new CodeSpar({ apiKey: "ak_..." });
// Optionally pin to a project: new CodeSpar({ apiKey: "ak_...", projectId: "prj_..." })
const session = await cs.create("user_123", { preset: "brazilian" });
const tools = getTools(session);

The session itself also exposes the F3.M2 router wrappers — session.discover(query), session.connectionWizard({...}), session.paymentStatus(toolCallId) — for tool search, connect deep-links, and async settlement correlation.

API

FunctionSignatureDescription
getTools(session: Session) => ClaudeToolWithExecute[]Convert all session tools to Claude format with execute handlers
toClaudeTool(tool: Tool, session: Session) => ClaudeToolWithExecuteConvert a single tool to Claude format with execute handler
getToolDefinitions(session: Session) => ClaudeTool[]Get tools as plain Claude API format (without execute, for manual handling)

ClaudeTool

PropertyTypeDescription
namestringTool slug identifier
descriptionstringTool description
input_schemaRecord<string, unknown>JSON Schema for tool input

ClaudeToolWithExecute

Extends ClaudeTool with:

PropertyTypeDescription
execute(input) => Promise<unknown>Executes the tool via the session

Need more?

Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.

License

MIT — codespar.dev

Keywords

codespar

FAQs

Package last updated on 05 May 2026

Did you know?

Socket

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.

Install

Related posts