Socket
Book a DemoInstallSign in
Socket

@minkeymouse/communication-server-mcp

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

@minkeymouse/communication-server-mcp

Email-like messaging for AI agents across different projects

2.0.0
latest
Source
npmnpm
Version published
Weekly downloads
3
-95.89%
Maintainers
1
Weekly downloads
 
Created
Source

Communication Server MCP

Email-like messaging for AI agents across different projects

A stable, production-ready MCP server that provides asynchronous communication between AI agents working in different project directories. Now truly portable - can be installed and used from anywhere via npm or Smithery.

🚀 Quick Start

# Clone and setup automatically
git clone <repository-url>
cd communication-server-mcp
npm run setup

This will:

  • Build the project
  • Update configuration with correct local paths
  • Configure Cursor automatically
  • Provide next steps

Option 2: Manual Installation

# Install dependencies and build
npm install
npm run build

# Run postinstall to update paths
npm run postinstall

# Copy configuration to Cursor
cp mcp_example.json ~/.cursor/mcp.json

Option 3: Smithery Integration

# Install via Smithery CLI
npx @smithery/cli install communication-server-mcp

# Or run directly with Smithery
npx @smithery/cli run communication-server-mcp --key YOUR_API_KEY --profile YOUR_PROFILE

🔧 MCP Configuration

The setup process automatically creates three configurations:

  • communication-server: Use via npx (recommended for production)
  • communication-server-dev: Use local build (for development)
  • communication-server-smithery: Use via Smithery (for distribution)

How Path Resolution Works

The template configuration uses placeholders that are automatically resolved during installation:

{
  "communication-server-dev": {
    "command": "node",
    "args": ["{{LOCAL_DIST_PATH}}"]  // Automatically replaced with actual path
  }
}

The postinstall script automatically:

  • Detects the installation directory
  • Replaces {{LOCAL_DIST_PATH}} with the correct path
  • Works on any system, any directory

Manual Configuration

If you prefer manual setup, copy mcp_example.json to ~/.cursor/mcp.json and choose your preferred configuration:

{
  "mcpServers": {
    "communication-server": {
      "command": "npx",
      "args": ["communication-server-mcp@latest"],
      "transport": "stdio",
      "terminate_on_close": true
    }
  }
}

🛠️ Available Tools

ToolDescription
create_agentCreate or retrieve an agent for a project
sendSend messages to other project agents
replyReply to existing messages
check_mailboxView recent messages
label_messagesChange message states
list_messagesGet message summaries
query_messagesSearch messages
get_server_healthCheck server status
get_unread_countGet unread statistics
view_conversation_logView conversation history
get_conversation_statsGet conversation statistics

📁 Project Structure

communication-server/
├── package.json              # NPM package configuration
├── smithery.yaml            # Smithery deployment configuration
├── tsconfig.json            # TypeScript configuration
├── scripts/                 # Setup and installation scripts
│   ├── postinstall.js       # Auto-updates local paths
│   └── setup.js            # Complete setup automation
├── src/                     # Source code
│   ├── index.ts            # Main entry point
│   ├── server.ts           # MCP server implementation
│   ├── database.ts         # Database manager
│   └── models.ts           # TypeScript models
├── dist/                   # Compiled JavaScript (generated)
├── mcp_example.json        # MCP configuration templates
└── README.md               # This file

🔄 Usage Examples

From Any Project Directory

// Create an agent for the current project
await create_agent({ path: "/current/project/path" });

// Send a message to another project
await send({
  to_path: "/other/project/path",
  title: "API Integration Request",
  content: "Can you help integrate the new endpoints?"
});

// Check mailbox
await check_mailbox({ limit: 10 });

Command Line

# Start the server locally
npx communication-server-mcp

# Or if installed globally
communication-server-mcp

# Start with Smithery
npx @smithery/cli run communication-server-mcp

📊 Data Storage

  • Location: ~/.communication-server/data/
  • Database: communication.db (SQLite with WAL mode)
  • Logs: logs/server.log
  • Backups: backups/

This ensures the server works from any directory without hardcoded paths.

🏗️ Architecture

Portable Design Principles

  • Automatic Path Resolution: Postinstall script updates local paths automatically
  • Template-Based Configuration: Uses placeholders that resolve during installation
  • NPM-based: Installable via npm for maximum portability
  • Smithery-ready: Full integration with Smithery CLI and registry
  • No Hardcoded Paths: Uses os.homedir() and relative paths
  • Self-Discovery: Automatically finds project directories
  • Portable Data: Stores data in user's home directory
  • System Integration: Available as system-wide command

Technology Stack

  • TypeScript: Type-safe development
  • Node.js: Cross-platform runtime
  • better-sqlite3: High-performance SQLite
  • @modelcontextprotocol/sdk: Official MCP SDK
  • Smithery CLI: Deployment and registry integration

🔧 Development

Building from Source

# Clone the repository
git clone <repository-url>
cd communication-server

# Install dependencies
npm install

# Build the project
npm run build

# Run in development mode
npm run dev

# Test the server
npm test

Smithery Development

# Start Smithery development mode
npm run smithery:dev

# Deploy to Smithery
npm run smithery:deploy

Adding New Tools

  • Add to server.ts: Define the tool function
  • Register with MCP: Use the request handler
  • Automatic discovery: Tools are available immediately

🚀 Deployment

Local Development

npm install -g .
communication-server-mcp

Global Installation

npm install -g communication-server-mcp
communication-server-mcp
# No installation required - uses npx
npx communication-server-mcp

Smithery Deployment

# Deploy to Smithery registry
npm run smithery:deploy

# Run via Smithery CLI
npx @smithery/cli run communication-server-mcp

Docker Deployment

# The server is now portable - no Docker-specific configuration needed
FROM node:18-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
CMD ["node", "dist/index.js"]

🔒 Security

  • No hardcoded secrets - uses environment variables
  • Isolated data storage - per-user directories
  • MCP security model - standard protocol security
  • No network exposure - stdio transport only
  • Smithery authentication - secure API key management

📈 Performance

  • Connection pooling - efficient database connections
  • Request tracking - performance monitoring
  • Automatic cleanup - maintenance scheduling
  • WAL mode - concurrent database access

🆘 Troubleshooting

Server Not Found

# Ensure it's available via npx
npx communication-server-mcp

# Or install globally
npm install -g communication-server-mcp

# Check Smithery installation
npx @smithery/cli list

MCP Tools Not Available

  • Restart Cursor after configuration changes
  • Check ~/.cursor/mcp.json exists
  • Verify server is running: npx communication-server-mcp
  • Ensure all logs go to stderr (not stdout)

Data Issues

  • Check ~/.communication-server/data/ exists
  • Verify permissions on data directory
  • Check logs: ~/.communication-server/data/logs/server.log

Smithery Issues

  • Verify API key and profile are correct
  • Check Smithery CLI is up to date: npm update -g @smithery/cli
  • Ensure server is deployed: npm run smithery:deploy

Setup Issues

  • Run npm run setup to automatically configure everything
  • Ensure you have Node.js 18+ installed
  • Check that the build completed successfully

🔄 Migration from Previous Versions

If you were using the old Python-based approach:

  • Uninstall old version: pip uninstall communication-server
  • Install new version: npm install -g communication-server-mcp
  • Run setup: npm run setup
  • Test tools: Verify they work from any directory

The new npm version is more portable, maintainable, and follows MCP best practices.

📦 Publishing

To publish updates to npm:

# Build the project
npm run build

# Publish to npm
npm publish

To deploy to Smithery:

# Deploy to Smithery registry
npm run smithery:deploy

🤝 Contributing

  • Fork the repository
  • Create a feature branch
  • Make your changes
  • Add tests if applicable
  • Submit a pull request

The Communication Server is now truly portable - install it anywhere, use it from any project, and deploy via Smithery!

Keywords

mcp

FAQs

Package last updated on 24 Aug 2025

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.