mcp-bridge
Provides a git_status tool that returns concise Git working tree status within the sandboxed project directory.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-bridgecheck git status and list files in my project"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP-Bridge-Kit
Hardened Model Context Protocol (MCP) developer server and automated JSON-RPC protocol compliance verifier.
The Problem
The Model Context Protocol (MCP) has rapidly emerged as the open industry standard connecting LLMs and agentic assistants (like Claude Desktop, Cursor, and autonomous agent loops) with tools, data sources, and dev environments.
However, building and maintaining custom Python MCP servers surfaces severe friction:
The "stdio Trap": When local desktop hosts launch Python MCP servers over stdio, any stray
print(), package initialization log, or warning output to stdout corrupts JSON-RPC 2.0 framing, crashing the client connection silently.Security Sandboxing Gaps: Custom file tools frequently lack path-traversal guards, exposing local systems to arbitrary path traversal (
../../etc/passwdor../../Windows).Absence of Compliance Tooling: Developers have lacked a fast, automated test harness to verify whether their server correctly implements the MCP handshake (
initialize), error codes (-32601), and schema definitions.
Related MCP server: TunnelGPT MCP Core
The Solution: MCP-Bridge-Kit
MCP-Bridge-Kit delivers a dual-capability toolkit for the MCP ecosystem:
Hardened MCP Developer Server: Pre-configured with essential developer tools (
read_file,write_file,list_directory,get_env,git_status,run_command).Path-Traversal Guardrails: Strict chroot containment blocks any access outside the designated sandbox root directory.
Stdout Channel Shielding: All diagnostics, logs, and warnings are strictly redirected to
sys.stderr, preserving 100% protocol cleanliness on stdout.Automatic Secret Scrubbing: Environment variable inspections automatically mask sensitive tokens (
KEY,SECRET,PASSWORD,TOKEN).Automated Conformance Verifier (
mcp-verify): A standalone CLI harness that launches any target MCP server, executes the complete handshake lifecycle, validates tool schemas, detects stdout pollution, and benchmarks latency.
Architecture Overview
+------------------------+
| Agent Host (Client) |
+-----------+------------+
|
JSON-RPC 2.0 stdio (Clean Stream)
|
v
+------------------------+
| Hardened MCP Server |
| - stderr logging only |
| - JSON-RPC 2.0 router |
+-----------+------------+
|
+-----------------------+-----------------------+
| | |
v v v
+-----------------+ +-----------------+ +-----------------+
| Sandboxed Files | | Masked Env Info | | Command Guard |
| (Path traversal | | (Auto-scrubbed | | (Isolated pipes |
| prevention) | | tokens) | | with timeout) |
+-----------------+ +-----------------+ +-----------------+
***
+------------------------+
| mcp-verify Harness |
| (Tests ANY MCP Server) |
+------------------------+Installation
From Source (Local Development)
git clone https://github.com/Hakantes/mcp-bridge-kit.git
cd mcp-bridge-kit
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install -e .Quick-Start Guide
1. Run the Hardened Server in Claude Desktop / Cursor
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"mcp-bridge": {
"command": "mcp-bridge",
"args": ["serve", "--sandbox", "/path/to/your/project"]
}
}
}2. Verify an MCP Server with mcp-verify
Test any local or third-party MCP server for specification compliance and stdout cleanliness:
mcp-verify --command "python -m mcp_bridge.cli serve"Tools Provided by MCP Server
Tool Name | Parameters | Description |
|
| Safely reads text content within sandbox root |
|
| Safely writes text content within sandbox root |
|
| Lists files and directories within sandbox |
|
| Inspects environment variables with automatic credential masking |
| None | Returns concise git working tree status |
|
| Executes command with strict timeouts and separate stderr |
CLI Reference
Command | Option | Description |
|
| Start MCP stdio server confined to target directory |
|
| Run automated JSON-RPC conformance check against target command |
Testing
Run unit and integration tests using pytest:
pytest -vSecurity and Privacy Notes
Path Escape Confinement: Target paths are resolved to their canonical paths and validated using
Path.is_relative_to(sandbox_root). Any../attempt escaping the root immediately triggers an error without file access.Credential Masking: Environment inspection matches against sensitive keywords and redacts values as
******** [REDACTED SENSITIVE KEY].Subprocess Isolation: Commands run with explicit timeout limits, preventing un-reaped zombie processes.
Known Limitations
Supported transport in v0.1.0 is stdio. Streamable HTTP / Server-Sent Events (SSE) remote transport is scheduled for v0.2.0.
Prompts and Resources capabilities are parsed in initialization but tool execution is the primary vertical slice in v0.1.0.
Contributing and License
Contributions are welcome! Please check CONTRIBUTING.md and SECURITY.md.
Distributed under the MIT License. See LICENSE for details.
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for Superserve sandboxes: create, exec, and manage Firecracker microVMs
MCP server for mandates, delegation, policy-gated execution, credential grants, and audit.
Read and write shared BitsWeave context, projects, tasks, and work sessions through MCP.
Security & DLP proxy for MCP: tool-poisoning scans, PII redaction on tool args/results. Beta.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceProvides a deterministic set of 40 cross-platform command tools as an MCP server, replacing unsafe raw shell calls with structured JSON inputs and outputs for file system, process, network, and git operations.3 npmApache 2.0
- AlicenseNot gradedqualityCmaintenanceIt enables MCP integrations to safely access a chosen project folder with path-boundary enforcement, read and search files, and perform confirmed writes over a bounded local Unix-socket transport.3MIT
- FlicenseNot gradedqualityCmaintenanceEnables secure discovery and invocation of sandboxed filesystem, repository inspection, and utility tools through a unified MCP client with schema validation, timeouts, and execution traces.-
- AlicenseNot gradedqualityCmaintenanceProvides an MCP stdio interface for AI agents to propose tool calls that are validated against task policy, held for human approval when required, executed in a sandboxed Linux environment, and recorded in an audit log.MIT