mesh-mcp
Zero-config polyglot API contract blast-radius engine for AI coding assistants (GitHub Copilot, Cursor, Claude Desktop, Antigravity).
When an engineer refactors or removes a schema property in one microservice, AI assistants are traditionally blind to the other repositories across the company. mesh-mcp solves polyrepo blindness by building a unified Common Dependency Graph across local folders and remote GitHub repositories—with zero configuration files required.
⚡ Key Capabilities
- Zero-Config by Default (No
mesh.yamlRequired): Automatically discovers sibling microservice repositories in parent directories (../), monorepo subfolders (services/*,packages/*,apps/*), anddocker-compose.yml. - 4-Language Polyglot AST Analysis: Statically inspects Python, Java (Spring Boot / Records), TypeScript, and JavaScript code using Tree-Sitter.
- Cross-Language Symbol Normalization: Automatically correlates
tax_amount(OpenAPI/Python) withgetTaxAmount()/taxAmount()(Java) andtaxAmount/["tax_amount"](TypeScript/JS). - Multi-Hop Transitive Reachability: Traces direct (Hop 1) and transitive (Hop 2+) cascading breakages across services.
- Dual-Mode Local + Remote Scanning: Index both local workspaces and remote GitHub repositories (with built-in OAuth 2.0 Device Flow).
- AWS Serverless Cloud Ready: Deploy as a hosted, scale-to-zero remote HTTP MCP server on AWS Lambda Function URLs with zero idle cost.
🌐 Polyglot Support Across 4 Languages
| Language | Analyzed Elements | What mesh-mcp Detects |
|---|---|---|
🐍 Python (.py) |
Pydantic models, dataclasses, route decorators, httpx, requests |
Typed model accesses (order.tax_amount), imports, HTTP calls |
☕ Java (.java) |
Spring Boot @RestController, Java Records, DTOs, Lombok, RestTemplate |
Accessor calls (order.getTaxAmount(), order.taxAmount()), endpoints |
🔷 TypeScript (.ts, .tsx) |
Interfaces, type aliases, typed parameters, axios, fetch |
Member accesses (order.taxAmount), subscript keys (order["tax_amount"]) |
🟨 JavaScript (.js, .jsx) |
Objects, function parameters, React components, Node.js calls | Property accesses (order.tax_amount, order.taxAmount), fetch calls |
📦 Installation
pip install mesh-mcp
For AWS Serverless deployment capabilities:
pip install "mesh-mcp[aws]"
🚀 Quickstart: Zero-Config Setup
You do not need to create any configuration files.
1. In VS Code (GitHub Copilot)
Add to .vscode/mcp.json in your project:
{
"mcpServers": {
"mesh-mcp": {
"command": "mesh-mcp"
}
}
}
2. In Cursor IDE
Go to Settings → Features → MCP → Add New MCP Server:
- Name:
mesh-mcp - Type:
command - Command:
mesh-mcp
3. Ask Your AI Assistant!
Open chat in Copilot or Cursor and ask naturally:
"What breaks across our microservices if I delete
tax_amountfrom the Order schema?"
Copilot invokes mesh-mcp, which inspects your local and sibling services and returns verified AST line-by-line evidence!
💬 Conversational Management (No YAML Needed)
You can manage your microservice mesh directly through conversation with Copilot/Cursor:
-
Link an external repository:
"Link
../billing-serviceas a consumer"
(or"Link https://github.com/my-org/payment-service")
→ Callslink_repository(path_or_url)and remembers it in your global user cache. -
Auto-scan neighboring services:
"Auto-discover all microservices in my workspace"
→ Callsauto_discover_services()and links all detected sibling projects.
⚙️ Optional: Custom mesh.yaml Manifest
If you prefer an explicit configuration file in your repository, you can optionally create mesh.yaml:
version: "1"
workspace:
name: "ecommerce-mesh"
repositories:
# Local producer service
- name: "order-service"
type: "local"
path: "./services/order_service"
role: "producer"
# Local Java consumer service
- name: "billing-service"
type: "local"
path: "../billing_service"
role: "consumer"
# Remote TypeScript consumer on GitHub
- name: "checkout-frontend"
type: "github"
owner: "MyOrg"
repo: "checkout-frontend"
branch: "main"
role: "consumer"
🛠️ Available MCP Tools
| Tool | Parameters | Description |
|---|---|---|
check_blast_radius |
schema_name, change_description |
Core Tool: Direct and multi-hop impact analysis across Python, Java, TS, and JS services. |
find_consumers |
schema_name |
Finds all source files referencing a schema or field across all 4 languages. |
list_contracts |
none | Lists all detected OpenAPI contracts, schemas, and endpoints. |
trace_contract |
contract_name |
Traces a contract definition location and known consumer call-sites. |
auto_discover_services |
none | Zero-Config: Automatically scans sibling folders (../) and monorepos. |
link_repository |
path_or_url, role |
Links a local directory or GitHub URL directly through chat. |
refresh_mesh |
none | Re-indexes the graph and pulls latest remote commits. |
check_auth_status |
none | Checks GitHub OAuth status. |
auth_github |
none | Initiates OAuth 2.0 Device Flow (browser verification code). |
☁️ Remote Cloud Hosting on AWS Lambda
You can host mesh-mcp in the cloud so your entire team can connect over HTTP without cloning other repos:
- Configure AWS credentials (
aws configure). - Run the deployment script:
python deploy_aws.py - Use the generated HTTPS Function URL in your editor:
{ "mcpServers": { "mesh-mcp-cloud": { "url": "https://<your-lambda-id>.lambda-url.us-east-1.on.aws/", "type": "http" } } }
🧪 Testing
pytest tests/unit
73 unit and integration tests passing across Python, Java, and TypeScript/JS analyzers.
📄 License
MIT © Nagachaitanya
Metadata
Release files for mesh-mcp 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mesh_mcp-0.3.1.tar.gz | 72.3 kB | Without provenance | Details for mesh_mcp-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mesh_mcp-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for mesh_mcp-0.3.1-py3-none-any.whl |
Total release size: 127.2 kB
Release files / mesh_mcp-0.3.1.tar.gz
| Download URL | mesh_mcp-0.3.1.tar.gz |
|---|---|
| Size | 72.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
46eef960e02d823edabd0b0ef7592a6aac911e42f37dd339a92557e3ebe959dc
|
|
BLAKE2b-256 checksum How to use checksums |
f3af36d73fa607e60098a3737960c08739b93c485c6314bb4a509041b916a621
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Release files / mesh_mcp-0.3.1-py3-none-any.whl
| Download URL | mesh_mcp-0.3.1-py3-none-any.whl |
|---|---|
| Size | 54.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d9ad975974dfebd2c4c781ba1a2bf50653a1380170a50cf09ec9203622fec5df
|
|
BLAKE2b-256 checksum How to use checksums |
115f21cf3d03a8595372a1991a2ee6f3d3c1e299c33813861736ee0c42878792
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Security for mesh-mcp 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.