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>
This commit is contained in:
PhilandClaude Opus 5.5 committed 2026-11-11 16:36:58 -07:00
1 parent 4ed2033cf9
commit 84411a16d9
27 files changed
+1248 -45

No files matched your search

+2 -2
View File
@@ -5,7 +5,7 @@
{% block admin_content %}
<div class="tokens-admin">
<h2>Connected Apps</h2>
<p>Micropub apps you have approved. Revoke any you no longer use.</p>
<p>Micropub apps and AI assistants (MCP) you have approved. Revoke any you no longer use.</p>
{% if tokens %}
<div class="table-scroll">
@@ -23,7 +23,7 @@
<tbody>
{% for t in tokens %}
<tr>
<td>{{ t.client_id }}</td>
<td>{{ t.client_id }}{% if t.resource %} <small>(MCP)</small>{% endif %}</td>
<td>{{ t.scope }}</td>
<td>{{ t.created_at }}</td>
<td>{{ t.last_used_at or "never" }}</td>