[Sprint 01] feat: Implement MCP Streamable HTTP protocol endpoints #24

Closed
opened 2026-02-03 22:50:57 +00:00 by lmiranda · 1 comment
Owner

Implement MCP protocol endpoints with JSON-RPC 2.0 message handling.

Dependencies

Tasks

  • Implement HEAD /mcp endpoint (protocol version)
  • Implement POST /mcp endpoint (JSON-RPC handler)
  • Implement MCP methods:
    • initialize - client initialization
    • tools/list - list available tools with filtering
    • tools/call - execute tool via dispatcher
  • Add JSON-RPC 2.0 error handling
  • Add request/response validation
  • Test MCP endpoint responds correctly

Acceptance Criteria

  • MCP endpoints exist: POST /mcp, HEAD /mcp
  • HEAD returns X-MCP-Version header
  • POST handles JSON-RPC 2.0 messages
  • All MCP methods implemented: initialize, tools/list, tools/call
  • JSON-RPC error codes returned correctly
  • Tool filtering integrated with tools/list
  • Tool dispatcher integrated with tools/call

Implementation Reference

See docs/sprint-proposals/sprint-01-implementation-guide.md - Phase 4, Issue #8 (Part 2)

Estimated Time: 2-3 hours

Implement MCP protocol endpoints with JSON-RPC 2.0 message handling. ## Dependencies - Blocked by: #23 ## Tasks - [ ] Implement HEAD /mcp endpoint (protocol version) - [ ] Implement POST /mcp endpoint (JSON-RPC handler) - [ ] Implement MCP methods: - `initialize` - client initialization - `tools/list` - list available tools with filtering - `tools/call` - execute tool via dispatcher - [ ] Add JSON-RPC 2.0 error handling - [ ] Add request/response validation - [ ] Test MCP endpoint responds correctly ## Acceptance Criteria - MCP endpoints exist: `POST /mcp`, `HEAD /mcp` - HEAD returns X-MCP-Version header - POST handles JSON-RPC 2.0 messages - All MCP methods implemented: initialize, tools/list, tools/call - JSON-RPC error codes returned correctly - Tool filtering integrated with tools/list - Tool dispatcher integrated with tools/call ## Implementation Reference See `docs/sprint-proposals/sprint-01-implementation-guide.md` - Phase 4, Issue #8 (Part 2) **Estimated Time:** 2-3 hours
lmiranda added this to the Sprint 01: Core Architecture Correction milestone 2026-02-03 22:50:57 +00:00
lmiranda added the Type/FeatureComponent/CoreSize/MPriority/Critical labels 2026-02-03 22:50:57 +00:00
Author
Owner

Completed and merged in commit 9fea068 (Merge feat/24: Implement MCP Streamable HTTP protocol endpoints)

Completed and merged in commit 9fea068 (Merge feat/24: Implement MCP Streamable HTTP protocol endpoints)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: personal-projects/gitea-mcp-remote#24