Files
PhilandClaude Opus 5.5 84411a16d9 feat: MCP server for AI clients (v2.15.0, ADR-075)
Add an MCP server at SITE_URL/mcp so AI assistants (claude.ai connectors,
Claude Code) can search, read and write notes.

- starpunk/mcp_server: official MCP SDK 2.3, stateless Streamable HTTP with
  JSON responses, served by uvicorn as a sidecar from the same image.
  Ten tools; writes go through the Micropub handlers.
- IndieAuth: RFC 8707 resource indicators bound to codes and tokens
  (migration 022), client ID metadata document + public client metadata,
  draft in scopes_supported, default MCP scopes, consent screen note.
- BACKGROUND_WORKERS_ENABLED flag so the sidecar runs no workers.
- Docs: ADR-075, architecture/mcp.md and updates; CHANGELOG.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 16:36:58 -07:00

14 lines
381 B
Python

"""
ASGI entry point for the MCP sidecar (v2.15.0, ADR-075)
uvicorn starpunk.mcp_server.app:app --host 0.0.0.0 --port 8001
Run it with BACKGROUND_WORKERS_ENABLED=false and the same environment and
data volume as the main app. Route /mcp and
/.well-known/oauth-protected-resource/mcp to it.
"""
from starpunk.mcp_server.server import create_asgi_app
app = create_asgi_app()