Skip to main content

StackBridge MCP

A local Model Context Protocol (MCP) server that traces full-stack dependencies across Next.js (TypeScript) fetch calls, FastAPI (Python) route handlers, and SQLAlchemy models with compiler-verified breakage detection.

Features

  • TypeScript AST Parser: Extracts route endpoints, parameters, and payloads from Next.js / React components using tree-sitter.
  • FastAPI Route Parser: Extracts route paths, HTTP methods, and parameter schemas from Python route definitions.
  • SQLAlchemy Model Parser: Maps ORM models and relationships to route handlers and DB queries.
  • Dependency Graph: Constructs cross-stack dependency graphs using networkx.
  • MCP Server: Exposes tools and resources for AI assistants to inspect full-stack relationships and detect breaking changes across frontend and backend boundaries.

Setup & Installation

# Create and activate virtual environment
python -m venv .venv
.\.venv\Scripts\activate

# Install dependencies
pip install -e ".[dev]"

Testing & Validation

# Run the mock MCP client verification test
python scripts/test_mcp_client.py

# Run the complete test suite
pytest -v

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stackbridge-0.1.0.tar.gz (82.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stackbridge-0.1.0-py3-none-any.whl (77.1 kB view details)

Uploaded Python 3

File details

Details for the file stackbridge-0.1.0.tar.gz.

File metadata

  • Download URL: stackbridge-0.1.0.tar.gz
  • Upload date:
  • Size: 82.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.10

File hashes

Hashes for stackbridge-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8c69f33c69af831043ff6dbe49468495a18fe0ed48e8721b20b3481f56fc877c
MD5 9c35211ee384121e5e2b877e587e617b
BLAKE2b-256 141b497fe57ed6f0b9d6fc90a8b1acb4f6be6fe39bd4767c4c4771bc84d5d297

See more details on using hashes here.

File details

Details for the file stackbridge-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: stackbridge-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 77.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.10

File hashes

Hashes for stackbridge-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 391212d25f78a9f90d755eb23fd62757a3db8e4c72fdb919b11f791c31a17dc9
MD5 846ead670439e4dbcd60ac8782918898
BLAKE2b-256 d54421ab4bf377efa4894b26849fd2a007747a19bfcba09ecec889049b0387e5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page