Skip to content

REST API, part 5: MCP server (Phase 4) #492

Open

Description

@caseysoftware

Intent: agents can work with web2project through MCP with the same permissions as the user they act for.

Depends on: #491 (OAuth for remote clients); the stdio transport only needs #489. Decide first: #485, #486.

Steps

  • mcp/sdk (pinned ~0.9, experimental until 1.0) behind src/Mcp.
  • Curated tools calling the services in-process: search, get_project_summary, list_my_tasks, get_task, create_task, update_task, log_time, list_recent_changes, post_forum_message, with readOnlyHint/destructiveHint annotations. Write tools need the write scope; no delete tool in the first release.
  • Resources w2p://projects/{id}, w2p://tasks/{id}; prompts for project status and overdue work.
  • stdio transport (bin/w2p-mcp, personal token) and Streamable HTTP at /mcp.
  • MCP authorization (revision 2026-07-28): Protected Resource Metadata at /.well-known/oauth-protected-resource, WWW-Authenticate with resource_metadata, audience-bound tokens, insufficient_scope responses; client registration per How do MCP clients register: Client ID Metadata Documents or pre-registration? #485.

Goal: a standard MCP client works over both transports, and the ACL contract fixtures give the same results through MCP as through the REST API.

Spec: REST API and MCP server proposal (#471), section 10.

Activity

  1. added
    api
    on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    api

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions