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

Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
18
-72.73%
Maintainers
1
Weekly downloads
 
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_..." });
const session = await cs.create("user_123", { preset: "brazilian" });
const tools = getTools(session);

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

License

MIT — codespar.dev

Keywords

codespar

FAQs

Package last updated on 16 Apr 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