BondMCP Platform - Enabled Routers Documentation
October 3, 2025 · View on GitHub
Phase 2.3: Router Activation
Date: September 30, 2025
Status: In Progress
Overview
This document tracks the activation of routers from the app/api/ directory into the main application.
Current State (Before Phase 2.3)
Routers Enabled in main.py:
- MCP Router (
/mcp) - MCP protocol endpoints - Health Router V2 (
/v2) - Advanced health endpoints
Total Endpoints Before: ~20
Available Routers in app/api/
| Router File | Status | Prefix | Dependencies | Notes |
|---|---|---|---|---|
| admin.py | ✅ Ready | /admin | None | Mock admin endpoints |
| api_keys.py | ✅ Ready | /api-keys | Stripe, Auth | Requires subscription |
| appointments.py | ✅ Ready | /appointments | None | Mock appointment mgmt |
| billing.py | ✅ Ready | /billing | Stripe, Auth | Payment processing |
| digital_programs.py | ✅ Ready | /digital-programs | None | Digital health programs |
| lab_reference.py | ✅ Ready | /reference | None | Lab reference values |
| medical_records.py | ✅ Ready | /medical-records | None | Record management |
| patients.py | ✅ Ready | /patients | None | Patient CRUD |
| prescriptions.py | ✅ Ready | /prescriptions | None | Rx management |
| system.py | ✅ Ready | /system | None | System health & status |
| vendors.py | ✅ Ready | /vendors | None | Vendor integrations |
| auth.py | ⚠️ Review | /auth | Database | May conflict with main.py auth |
| health.py | ⚠️ Review | /health | AI Service | May conflict with main.py |
| health_simple.py | ⚠️ Review | /health-simple | None | Simple health endpoints |
| auth_broken.py | ❌ Skip | - | - | Marked as broken |
Router Readiness Assessment
✅ Safe to Enable (11 routers)
These routers have no external dependencies or conflicts:
-
admin.py - Admin dashboard endpoints
- Endpoints: 3
- Auth: Required
- Dependencies: None
-
api_keys.py - API key management
- Endpoints: 4
- Auth: Required
- Dependencies: Stripe (optional), get_current_user
-
appointments.py - Appointment scheduling
- Endpoints: 6
- Auth: Should add
- Dependencies: None
-
billing.py - Stripe billing integration
- Endpoints: 7
- Auth: Required
- Dependencies: Stripe API, get_current_user
-
digital_programs.py - Digital health programs
- Endpoints: 3
- Auth: Should add
- Dependencies: None
-
lab_reference.py - Lab reference data
- Endpoints: 2
- Auth: Optional
- Dependencies: None
-
medical_records.py - Medical record CRUD
- Endpoints: 5
- Auth: Required
- Dependencies: None
-
patients.py - Patient management
- Endpoints: 4
- Auth: Required
- Dependencies: None
-
prescriptions.py - Prescription management
- Endpoints: 5
- Auth: Required
- Dependencies: None
-
system.py - System health & monitoring
- Endpoints: 2+
- Auth: Not required
- Dependencies: None
-
vendors.py - Vendor integration
- Endpoints: 3
- Auth: Should add
- Dependencies: None
⚠️ Needs Review (3 routers)
- auth.py - May have advanced auth features that conflict with main.py
- health.py - May overlap with existing /health endpoints in main.py
- health_simple.py - May overlap with existing health endpoints
❌ Skip (1 router)
- auth_broken.py - Explicitly marked as broken
Activation Plan
Phase 1: Enable Core Business Logic (Priority 1)
- ✅ billing.py
- ✅ api_keys.py
- ✅ patients.py
- ✅ prescriptions.py
- ✅ medical_records.py
- ✅ appointments.py
Phase 2: Enable Supporting Features (Priority 2)
- ✅ admin.py
- ✅ system.py
- ✅ digital_programs.py
- ✅ lab_reference.py
- ✅ vendors.py
Phase 3: Review and Resolve Conflicts (Priority 3)
- ⚠️ auth.py - Check for unique endpoints
- ⚠️ health.py - Check for conflicts
- ⚠️ health_simple.py - Check for conflicts
Endpoint Count Projection
- Before: ~20 endpoints
- After Phase 1: ~50 endpoints
- After Phase 2: ~67+ endpoints
- After Phase 3: ~75+ endpoints (if no conflicts)
Implementation Steps
- ✅ Audit all routers
- ⏳ Import and enable safe routers
- ⏳ Add authentication where missing
- ⏳ Test all endpoints
- ⏳ Update MCP configuration
- ⏳ Generate integration tests
- ⏳ Update API documentation
Testing Strategy
For each enabled router:
- Verify endpoint accessibility
- Test authentication/authorization
- Validate response schemas
- Check error handling
- Confirm no conflicts with existing endpoints
Next Steps
- Enable Phase 1 routers (core business logic)
- Run integration tests
- Update MCP configuration
- Enable Phase 2 routers
- Review Phase 3 routers for conflicts
- Final testing and documentation update
Last Updated: September 30, 2025