Skip to content

Repository files navigation

MyContextProtocol

Stygian-style monorepo for MyContextProtocol: a hosted MCP gateway that ingests SKILL.md files from Git repositories, compiles them into policy-aware MCP capabilities, and exposes them through stable audited endpoints.

Layout

.
├── apps/
│   └── web/                         # Next.js 16 / Bun dashboard
├── packages/
│   ├── mycontext-api-contract/      # Backend API contract docs
│   └── mycontext-web-client/        # Shared frontend/API-facing TypeScript types
├── services/
│   └── mcp-gateway/                 # Swift / Vapor MCP gateway
├── docs/
│   ├── architecture/
│   └── test-plans/
├── scripts/                         # Local CI and deploy entrypoints
├── package.json                     # Bun workspaces + Turbo
└── turbo.json

The backend also consumes the external Swift package mcp-server-kit for reusable MCP protocol primitives. During local two-repo development this is wired as a sibling checkout; publish and pin that package before relying on GitHub Actions or Railway remote builds.

Local Development

# Install all Bun workspace dependencies
bun install

# Backend (port 8080 by default)
cd services/mcp-gateway
cp .env.example .env
swift run App

# Frontend (port 3000 by default)
cd ../../apps/web
cp .env.example .env
bun dev

Set the frontend NEXT_PUBLIC_API_URL to the backend origin, usually http://localhost:8080.

CI / CD

GitHub Actions is the source of truth for CI. The single workflow at .github/workflows/ci.yml calls local scripts so checks can be reproduced outside Actions:

bash scripts/ci.sh

The workflow runs the Bun/Turbo workspace checks and the Swift tests/builds for services/mcp-gateway. Railway's GitHub integration deploys dev to Development and main to Production once those checks pass.

Deployment

  • Development: Railway hosts Web, Gateway, and Postgres. Configuration lives under railway/; see docs/runbooks/supabase-to-railway-dev.md.
  • Production: Railway hosts Web, Gateway, and Postgres in an isolated production environment. See railway/README.md and docs/runbooks/supabase-to-railway-production.md.
  • Retired infrastructure: the previous Fly gateway, Supabase database, and Vercel frontend were permanently removed after the Railway cutover was verified. They are not rollback targets.
  • Optional self-hosting: services/mcp-gateway/docker-compose.yml remains as a Portainer/Compose reference.

History

The backend retains the original repo history. The frontend was merged in via git subtree from Stygian-Tech/my-context-protocol-frontend@dev; that repo is archival after cutover.

License

This repository is released under the MIT License.

About

Take a repository of SKILL.md files and turn it into a functional MCP endpoint with support for webhooks and custom domains

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages