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 🙏

© 2026 – Pkg Stats / Ryan Hefner

ai-operation-mcp

v1.2.3

Published

MCP server for local file editing with HTTP backend

Readme

ai-operation-mcp

AI Operation MCP - A Model Context Protocol (MCP) server for local file editing operations.

Features

  • Read Files: Read entire files, specific line ranges, or search for patterns
  • Edit Files: Replace text with exact string matching
  • Multiple Encodings: Support for UTF-8, GBK, UTF-16LE, UTF-16BE
  • Health Check: Monitor backend API service status

Prerequisites

  • Node.js 18.0.0 or higher
  • Python 3.10+ (for the backend HTTP server)
  • Rust toolchain (for the file-edit-api service)

Installation

npm install -g ai-operation-mcp

Usage

This package acts as a bridge between MCP clients and a local HTTP server that provides file editing capabilities.

1. Start the Backend Services

First, you need to start the backend HTTP server. You can either:

Option A: Use the launcher (Windows)

D:\rust\mcp-launcher-final.exe

Option B: Manual start

cd /path/to/file-edit-mcp
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
pip install -r requirements.txt
python server.py

The HTTP server should be running on http://127.0.0.1:8082.

2. Configure Your MCP Client

Add this to your MCP client configuration:

{
  "mcpServers": {
    "file-edit": {
      "command": "npx",
      "args": [
        "-y",
        "file-edit-mcp-server"
      ]
    }
  }
}

3. Verify

The tool provides three main functions:

  • read_file: Read file content with flexible modes (full, range, search)
  • edit_file: Edit files by replacing text strings
  • health_check: Check if the backend API service is running

Architecture

MCP Client
    ↓ (stdio)
npx file-edit-mcp-server (Node.js proxy)
    ↓ (HTTP)
Python HTTP Server (port 8082)
    ↓ (HTTP)
Rust file-edit-api (port 8081)
    ↓
Local File System

Configuration

The tool connects to http://127.0.0.1:8082 by default. Make sure the backend HTTP server is running on this address.

Troubleshooting

"MCP HTTP server is not running"

This error means the backend HTTP server is not accessible. Make sure:

  1. The HTTP server is running
  2. It's listening on http://127.0.0.1:8082
  3. No firewall is blocking the connection

Check server status

curl http://127.0.0.1:8082/health

Should return:

{"status": "healthy", "service": "file-edit-mcp", "version": "1.2.0"}

Development

To set up for development:

git clone <repository>
cd file-edit-mcp-npm
npm install
npm link

License

MIT

Author

w.

Version

1.2.0