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
Metadata
Release files for stackbridge 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| stackbridge-0.1.0.tar.gz | 82.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| stackbridge-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 159.2 kB
Release files / stackbridge-0.1.0.tar.gz
| Download URL | stackbridge-0.1.0.tar.gz |
|---|---|
| Size | 82.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8c69f33c69af831043ff6dbe49468495a18fe0ed48e8721b20b3481f56fc877c
|
|
BLAKE2b-256 checksum How to use checksums |
141b497fe57ed6f0b9d6fc90a8b1acb4f6be6fe39bd4767c4c4771bc84d5d297
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Release files / stackbridge-0.1.0-py3-none-any.whl
| Download URL | stackbridge-0.1.0-py3-none-any.whl |
|---|---|
| Size | 77.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
391212d25f78a9f90d755eb23fd62757a3db8e4c72fdb919b11f791c31a17dc9
|
|
BLAKE2b-256 checksum How to use checksums |
d54421ab4bf377efa4894b26849fd2a007747a19bfcba09ecec889049b0387e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|