New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@bootstrapp/claude

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bootstrapp/claude

Claude Code SDK integration for Bootstrapp

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

@bootstrapp/claude

Claude Code SDK integration for Bootstrapp applications. Provides a bridge server for connecting Claude agents to your Bootstrapp projects with MCP (Model Context Protocol) tool support.

Installation

npm install @bootstrapp/claude

Features

  • Bridge server for Claude Agent SDK integration
  • MCP tool discovery and management
  • Session-based conversations with streaming responses
  • Permission management for tool execution
  • Question/answer flow for interactive agents

CLI Usage

Start the Bridge Server

bootstrapp claude:bridge [options]

Options:

OptionDescriptionDefault
--port <number>Port to listen on8765
--host <string>Host to bind tolocalhost
--model <string>Default Claude modelclaude-sonnet-4-5-20250929
--project <path>Project directoryCurrent directory
--dev-port <number>Dev server port for MCP tools1315

Example:

bootstrapp claude:bridge --port 8080 --model claude-sonnet-4-5-20250929

API Reference

Provider (@bootstrapp/claude/provider)

The provider adapts messages for Claude Agent SDK:

import { claudeAgentProvider } from "@bootstrapp/claude/provider";

// Provider interface
const provider = {
  type: "claude-code",
  adaptMessages: (messages) => string,
  adaptTools: (tools) => tools,
  adaptResponse: (res) => res,
  streamAPI: async function* ({ provider, model, messages }) { ... },
  processStream: async function* (stream) { ... },
};

Transport (@bootstrapp/claude/transport)

The transport plugin creates HTTP connections to the bridge server:

import claudeTransport from "@bootstrapp/claude/transport";

// Initialize with a host that has a transports registry
claudeTransport.initialize(host);

// Create a transport instance
const transport = await host.transports.get("claude-code").createTransport({
  baseUrl: "http://localhost:8765"
});

// Use the transport
const session = await transport.createSession({ model: "claude-sonnet-4-5-20250929" });
await transport.send(session.sessionId, "Hello!");

for await (const message of transport.receive(session.sessionId)) {
  console.log(message);
}

await transport.close(session.sessionId);

Transport Methods

MethodDescription
createSession(options)Create a new conversation session
send(sessionId, message)Send a message to the session
receive(sessionId)Async generator yielding responses
close(sessionId)Close and cleanup a session
resumeSession(sessionId, options)Resume an existing session
health()Check bridge server health

Bridge Server HTTP API

Endpoints

MethodPathDescription
POST/sessionCreate new session
POST/sendSend message to session
GET/receive/:sessionIdSSE stream for responses
DELETE/session/:sessionIdClose session
GET/healthHealth check
POST/permissionApprove/deny tool permissions
POST/questionAnswer agent questions
GET/mcp/toolsList available MCP tools
GET/mcp/resourcesList MCP resources
POST/mcp/configConfigure tool availability

SSE Events

The /receive/:sessionId endpoint streams the following events:

  • assistant - Text content from Claude
  • tool_use - Tool execution requests
  • tool_result - Tool execution results
  • permission_request - Tool permission requests
  • question_request - Agent questions
  • done - Conversation turn complete
  • error - Error occurred

Project Configuration

Configure the bridge in your project's package.json:

{
  "settings": {
    "agent": {
      "port": 8765,
      "hostname": "localhost",
      "model": "claude-sonnet-4-5-20250929"
    }
  }
}

Requirements

  • Node.js >= 18.0.0
  • @anthropic-ai/claude-agent-sdk (peer dependency, auto-installed by CLI)
  • @bootstrapp/mcp for MCP tool support

License

AGPL-3.0

Keywords

claude

FAQs

Package last updated on 24 Jan 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