
peon mcp
一个模块化的MCP服务器,用于提供AI增强型工作空间。
Repository Info
About This Server
一个模块化的MCP服务器,用于提供AI增强型工作空间。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Peon MCP
Peon-MCP is a modular MCP (Model Context Protocol) server that can be used to expose an AI-enhanced workspace.
Features
- Modular plugin architecture
- Process management for long-running operations
- Configuration via JSON files and environment variables
- Multiple transport options (SSE and stdio)
- Built-in plugins for:
- Claude AI - Start and manage Claude AI sessions
- Git - Execute git operations with template support
- NPM - Execute npm commands with security controls
Installation
# Clone the repository
git clone https://github.com/yourusername/peon-mcp.git
cd peon-mcp
# Install dependencies
npm install
# Build the project
npm run build
Configuration
Configure the server using config.json in the project root or environment variables.
Environment Variables
PORT: Server port (default: 3000)HOST: Server host (default: localhost)MAX_PROCESSES: Maximum number of processes (default: 10)CLAUDE_API_KEY: API key for Claude AICLAUDE_MODEL: Model to use for Claude AI (default: claude-3-sonnet-20240229)CONFIG_PATH: Custom path to config file (default: ./config.json)
Usage
# Development mode
npm run dev
# Production mode
npm run build
npm start
# Run with SSE transport (default)
npm start
# Run with stdio transport
npm start -- --stdio
# Or use the run script
./run.sh # Build and run in production mode
./run.sh --dev # Run in development mode
./run.sh --no-build # Run without building
./run.sh --stdio # Run with stdio transport
Transport Options
Peon-MCP supports two transport types:
- SSE (Server-Sent Events) - Default transport that creates an HTTP server with an SSE endpoint.
- stdio - Standard I/O transport for use in environments where a server cannot be established.
Select the transport type by using the --stdio flag when starting the server.
Available Tools
Claude Code Plugin
claude_start_session: Start a new Claude AI sessionclaude_stop_session: Stop a running Claude AI sessionclaude_list_sessions: List all running Claude AI sessionsclaude_send_prompt: Send a prompt to a Claude AI session
Git Plugin
git_execute: Execute a git commandgit_create_branch: Create a new git branch with optional templategit_commit: Commit changes with a messagegit_push: Push changes to remote repository
NPM Plugin
npm_execute: Execute an npm commandnpm_install: Install npm packagesnpm_run: Run an npm scriptnpm_list_running: List running npm processesnpm_stop_process: Stop a running npm process
Creating New Plugins
- Create a new directory for your plugin in
src/plugins/ - Create a plugin class that extends
BasePlugin - Add configuration schema in
src/types/config.types.ts - Register your plugin in the PluginManager
License
ISC
Quick Start
Clone the repository
git clone https://github.com/mebusmein/peon-mcpInstall dependencies
cd peon-mcp
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.