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>
14 lines
540 B
Python
14 lines
540 B
Python
"""
|
|
MCP server for StarPunk (v2.15.0, ADR-075)
|
|
|
|
AI clients (claude.ai connectors, Claude Code, ...) read and write notes
|
|
through the Model Context Protocol at SITE_URL/mcp. It runs as a sidecar
|
|
process (uvicorn, the official MCP Python SDK) next to the Flask app and
|
|
calls the same service functions. StarPunk's own IndieAuth server issues the
|
|
tokens; this server only checks them (an OAuth resource server).
|
|
"""
|
|
|
|
from starpunk.mcp_server.server import create_asgi_app, create_mcp_server
|
|
|
|
__all__ = ["create_asgi_app", "create_mcp_server"]
|