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

@codespar/mcp

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/mcp

MCP transport for CodeSpar — connect Claude Desktop, Cursor, VS Code to CodeSpar sessions

Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
16
-77.46%
Maintainers
1
Weekly downloads
 
Created
Source

@codespar/mcp

MCP transport for CodeSpar — connect Claude Desktop, Cursor, VS Code, and other MCP clients to CodeSpar sessions.

Install

npm install @codespar/mcp @codespar/sdk

Usage

import { CodeSpar } from "@codespar/sdk";
import { getMcpConfig, getClaudeDesktopConfig } from "@codespar/mcp";

const cs = new CodeSpar({ apiKey: "ak_..." });
const session = await cs.create("user_123", { preset: "brazilian" });

// Get MCP URL and headers for any client
const { url, headers } = getMcpConfig(session);

// Get Claude Desktop config JSON
const config = getClaudeDesktopConfig(session);

API

FunctionSignatureDescription
getMcpConfig(session: Session) => McpConfigGet the MCP transport URL and headers for any MCP-compatible client
getClaudeDesktopConfig(session: Session, serverName?: string) => { mcpServers: ... }Generate Claude Desktop configuration (for claude_desktop_config.json)
getCursorConfig(session: Session) => { url: string; headers: Record<string, string> }Generate Cursor / VS Code MCP configuration

McpConfig

PropertyTypeDescription
urlstringMCP transport URL
headersRecord<string, string>Auth headers for the transport

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