Skip to content

Authenticated MCP route + read resources + llms.txt #18

@CuriouslyCory

Description

@CuriouslyCory

Parent

PRD #2

What to build

An MCP server, co-located as a route handler speaking Streamable HTTP, lets an authenticated agent read the architecture. The handler resolves a bearer token to an Actor (rejecting missing / revoked / expired tokens — no anonymous access) and exposes read resources that return the deterministic markdown for a project, a subtree, and a cheap index. A discovery llms.txt documents the endpoint, auth, and resource catalog.

Acceptance criteria

  • An MCP route handler speaks Streamable HTTP and resolves a bearer token to an Actor
  • Unauthenticated, revoked, or expired requests are rejected; there is no anonymous access
  • An Actor can only read its owner's projects (no resource accepts a user id)
  • Read resources return markdown for project, subtree, and index via the existing serializer
  • An llms.txt is served describing the endpoint, auth, and resources
  • Read authorization is tested; an MCP Inspector round-trip reads a project as markdown

Blocked by

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agentFully specified, ready for an agent to implement AFK

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions