How itsjustayush/stoneway-mcp works
StoneWay provides a persistent builder profile and scratchpad that people edit in a dashboard and AI agents read or update through MCP or REST. Cloud requests authenticate with a builder key, operate on profile data, and can synchronize GitHub project and language details; agents can alternatively use local files. The graph includes documented capabilities such as public profiles, bio generation, notes, activity, and encrypted configuration. Some subsystem links are README-level; unsampled implementation details are not inferred.
Main entry points: api Web API routes · storage.py Storage backends · stoneway.ts Profile data · mcp-http-handler.ts MCP HTTP handler
Components 21
Dashboard and API
- Dashboard
apps/web/src/app/app/editor/page.tsx - Web API routes
apps/web/src/app/api - MCP HTTP handler
apps/web/src/lib/mcp-http-handler.ts - Public profiles
apps/web/src/app/profile/[username]/page.tsx
Agent access
- Python MCP server
stoneway_mcp/server.py - Node MCP server
apps/mcp-server/src/index.ts - Storage backends
stoneway_mcp/storage.py - Cloud API client
stoneway_mcp/client.py
Profile lifecycle
- Profile schemas
stoneway_mcp/models.py - Reconciliation
stoneway_mcp/reconciliation.py - Bio generation
stoneway_mcp/bio_generator.py
Persistence and security
- Profile data
packages/database/src/schema/stoneway.ts - Identity and sessions
packages/database/src/schema/auth.ts - Database client
packages/database/src/client.ts - Encrypted config
packages/database/src/crypto.ts - Audit events
apps/web/src/lib/audit.ts - Neon PostgreSQL
External integrations
- GitHub connector
apps/web/src/lib/connectors/github.ts - GitHub
Other components
- Builder
- AI agent
Connections 25
- Builder → Dashboard: edits profile
README.md - Dashboard → Web API routes: saves profile
- Builder → Web API routes: manages key
apps/web/src/app/api/user/key/route.ts - Web API routes → Identity and sessions: checks session
apps/web/src/app/api/user/key/route.ts - Web API routes → Profile data: reads and writes
apps/web/src/app/api/user/key/route.ts - Web API routes → Encrypted config: encrypts config
apps/web/src/app/api/user/key/route.ts - Web API routes → Audit events: records events
apps/web/src/app/api/user/key/route.ts - AI agent → Python MCP server: uses MCP
README.md - AI agent → Node MCP server: uses MCP
README.md - Python MCP server → Storage backends: dispatches tools
stoneway_mcp/server.py - Storage backends → Cloud API client: calls cloud API
stoneway_mcp/storage.py - Storage backends → Reconciliation: reconciles updates
stoneway_mcp/storage.py - Storage backends → Profile schemas: validates profile
stoneway_mcp/storage.py - Storage backends → Bio generation: generates bio
stoneway_mcp/storage.py - Cloud API client → Web API routes: sends REST requests
README.md - MCP HTTP handler → Profile data: accesses profile
apps/web/src/lib/mcp-http-handler.ts - MCP HTTP handler → Profile schemas: uses shared schemas
apps/web/src/lib/mcp-http-handler.ts - Web API routes → Profile data: reads and writes
apps/web/src/app/api/v1/sync/route.ts - Web API routes → GitHub connector: triggers sync
apps/web/src/app/api/v1/sync/route.ts - GitHub connector → GitHub: fetches repository data
- Web API routes → Reconciliation: merges sync data
apps/web/src/app/api/v1/sync/route.ts - Web API routes → Audit events: records sync events
apps/web/src/app/api/v1/sync/route.ts - Builder → Public profiles: views profile
README.md - Profile data → Database client: configured in
- Database client → Neon PostgreSQL: queries database