npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

parallel-code-mcp-server

v2.3.3

Published

MCP server for enabling collaborative AI coding with conflict prevention

Readme

Parallel Code MCP Server

A Model Context Protocol server that enables collaborative AI coding with conflict prevention. This server allows multiple AI assistants to coordinate their work, share messages, and manage file locks to prevent editing conflicts.

Features

  • 🔒 File Locking - Prevent multiple agents from editing the same file simultaneously
  • 📢 Message Broadcasting - Coordinate between AI agents with real-time messaging
  • 📊 Collaboration Status - Track active locks and system state
  • 🎯 Work Announcements - Announce planned work to coordinate with other agents
  • ⚡ Real-time Coordination - Built on the Model Context Protocol for seamless integration

Security Warning

This server can access and lock files in your project directory. Ensure you trust the AI agents that will be using this server, as they can potentially lock important files and affect your development workflow.

Installation

Using npm (recommended)

npm install -g parallel-code-mcp-server

Using npx

npx parallel-code-mcp-server

Usage

With 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": {
    "parallel-code": {
      "command": "parallel-code-mcp-server"
    }
  }
}

Alternative if PATH issues occur:

{
  "mcpServers": {
    "parallel-code": {
      "command": "npx",
      "args": ["parallel-code-mcp-server"]
    }
  }
}

With Cursor AI

  1. Go to Cursor Settings → Extensions → MCP
  2. Add new MCP server
  3. Server name: parallel-code
  4. Command: parallel-code-mcp-server
  5. Enable the server

Note: If you get "0 tools" or red status, ensure your Node.js PATH is available to Cursor:

  • Restart Cursor completely after installation
  • If still not working, try using the full path: npx parallel-code-mcp-server

Available Tools

broadcast_message

Send a message to coordinate with other AI agents.

{
  message: string,           // Required: Message content
  type?: string,            // Optional: broadcast, update, announcement, status
  file?: string             // Optional: Related file path
}

lock_file

Lock a file to prevent editing conflicts.

{
  file: string,             // Required: File path to lock
  reason?: string           // Optional: Reason for locking
}

unlock_file

Release a file lock.

{
  file: string              // Required: File path to unlock
}

announce_work

Announce your planned work to other agents.

{
  action: string,           // Required: Description of work
  files?: string[],         // Optional: List of files you'll work on
  estimated_time?: string   // Optional: Time estimate
}

get_collaboration_status

Get current collaboration state.

{} // No parameters required

Example Usage

// Announce your work
await mcp.call('announce_work', {
  action: 'Implementing user authentication system',
  files: ['src/auth.ts', 'src/user.ts'],
  estimated_time: '30 minutes'
});

// Lock a file before editing
await mcp.call('lock_file', {
  file: 'src/auth.ts',
  reason: 'Adding login validation'
});

// Broadcast a status update
await mcp.call('broadcast_message', {
  message: 'Authentication system is ready for testing',
  type: 'announcement',
  file: 'src/auth.ts'
});

// Unlock when done
await mcp.call('unlock_file', {
  file: 'src/auth.ts'
});

Development

# Clone the repository
git clone https://github.com/okwareddevnest/parallel-code.git
cd parallel-code

# Install dependencies
npm install

# Build the project
npm run build

# Run in development mode
npm run dev

# Run tests
npm test

State Management

The server maintains collaboration state in mcp-collaboration-state.json in your working directory. This file tracks:

  • Active file locks
  • Connected agents
  • Last activity timestamp

License

Licensed under the AGPL-3.0 License. See LICENSE file for details.

Contributing

We encourage contributions to help expand and improve the server. Please feel free to submit issues, feature requests, and pull requests.