New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

claudine

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

claudine

MCP server for delegating tasks to Claude Code

Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Claudine - MCP Server for Claude Code Task Delegation

npm version License Node CI MCP

Claudine is an MCP (Model Context Protocol) server that enables Claude Code to delegate tasks to background Claude Code instances, allowing for parallel task execution without context switching.

Features

  • DelegateTask: Spawn background Claude Code instances with specific prompts
  • TaskStatus: Check the status of running or completed tasks
  • TaskLogs: Retrieve execution logs from delegated tasks
  • CancelTask: Cancel running tasks with optional reason
  • Auto-permissions: Uses --dangerously-skip-permissions flag for autonomous file operations

Quick Start

Prerequisites

  • Node.js 20.0.0+
  • npm 10.0.0+
  • Claude Code CLI installed (claude command available)

Installation

npm install -g claudine

Option 2: Install from source

# Clone the repository
git clone https://github.com/dean0x/claudine.git
cd claudine

# Install dependencies
npm install

# Build the project
npm run build

Configuration

Quick Setup

Get the configuration for your platform:

claudine mcp config

For Claude Code

Add to .mcp.json in your project root:

{
  "mcpServers": {
    "claudine": {
      "command": "npx",
      "args": ["-y", "claudine", "mcp", "start"],
      "env": {}
    }
  }
}

For Claude Desktop

Add to your Claude Desktop configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "claudine": {
      "command": "npx",
      "args": ["-y", "claudine", "mcp", "start"],
      "env": {}
    }
  }
}

For Global Installation

If you installed Claudine globally with npm install -g claudine:

{
  "mcpServers": {
    "claudine": {
      "command": "claudine",
      "args": ["mcp", "start"],
      "env": {}
    }
  }
}

After adding the configuration, restart Claude Code or Claude Desktop to connect to Claudine.

Usage

CLI Commands

# Start the MCP server manually
claudine mcp start

# Test the server in mock mode
claudine mcp test

# Show MCP configuration
claudine mcp config

# Show help
claudine help

MCP Tools in Claude Code

Once configured, you can use Claudine's tools in Claude Code:

Delegate a Task

Use DelegateTask to run: "Create a Python script that analyzes CSV data"

Check Task Status

Use TaskStatus to check the current task

Get Task Logs

Use TaskLogs with taskId: <task-id-here>

Cancel a Task

Use CancelTask with taskId: <task-id-here> and reason: "Taking too long"

Development

Available Scripts

# Development mode (with auto-reload)
npm run dev

# Build TypeScript
npm run build

# Run built server
npm start

# Type checking
npm run typecheck

# Run tests
npm test

# Clean build artifacts
npm run clean

Testing

For testing without Claude CLI installed, use mock mode:

# Test with mock processes
npm run test:mock

# Test cancellation
npm run test:cancel

# Run comprehensive tests
npm run test:comprehensive

# Validate entire setup
npm run validate

Project Structure

claudine/
├── src/
│   ├── index.ts        # Entry point
│   ├── server.ts       # MCP server implementation
│   └── types.ts        # TypeScript type definitions
├── dist/               # Compiled JavaScript
├── tests/
│   ├── unit/           # Unit tests
│   └── manual/         # Manual test scripts
├── scripts/
│   ├── install.sh      # Installation script
│   └── validate.sh     # Validation script
├── examples/           # Usage examples
├── docs/               # Documentation
├── logs/               # Execution logs
└── README.md

Architecture

Claudine implements the MCP protocol to communicate with Claude Code:

  • MCP Server: Handles JSON-RPC requests from Claude Code
  • Process Manager: Spawns and manages background Claude Code instances
  • Output Capture: Buffers and stores process output (10MB limit)
  • Task Registry: Tracks task state and history (last 10 tasks)

Task Lifecycle

  • Queued: Task created but not started (future feature)
  • Running: Claude Code process actively executing
  • Completed: Task finished successfully (exit code 0)
  • Failed: Task failed with error
  • Cancelled: Task manually cancelled by user

Limitations (MVP)

  • One task at a time (no queue or concurrency yet)
  • Tasks don't persist across server restarts
  • 30-minute timeout per task
  • 10MB output buffer limit per task
  • No git worktree isolation

Troubleshooting

Claude CLI not found

Ensure claude CLI is in your PATH:

which claude

Server won't start

Check logs in stderr and verify Node.js version:

node --version  # Should be v20.0.0+

Tasks fail immediately

Enable mock mode for testing:

MOCK_MODE=true npm run dev

Roadmap

  • Phase 1: MVP (Current)
  • Phase 2: Task queue and concurrency
  • Phase 3: Priority levels and dependencies
  • Phase 4: Persistence and recovery
  • Phase 5: Advanced orchestration

Contributing

Contributions are welcome! Please read our contributing guidelines before submitting PRs.

License

MIT License - see LICENSE file for details

Support

Acknowledgments

Built with the Model Context Protocol SDK

Keywords

mcp

FAQs

Package last updated on 18 Aug 2025

Related posts