feat: prompt resources, proxy transport fix, enriched descriptions #36

Merged
michal merged 1 commits from feat/prompt-resources-and-proxy-transport into main 2026-02-24 14:53:25 +00:00
Owner

Summary

  • Phase 1: Fix MCP proxy to support SSE and STDIO transports (extracted from HealthProbeRunner into reusable transport clients)
  • Phase 2: Enrich tool descriptions with server context ([Server Description] tool description)
  • Phase 3: Add prompts and promptrequests as RBAC resources + ServiceAccount subject type
  • Phase 4: Prisma schema for Prompt, PromptRequest models + Project.prompt field
  • Phase 5: Project prompt/instructions in MCP initialize response
  • Phase 6: Full Prompt backend (repositories, service, routes, validation)
  • Phase 7: MCP integration (propose_prompt tool, prompt resources in resources/list)
  • Phase 8: CLI commands (create prompt, get prompts/promptrequests, approve promptrequest)
  • Phase 9: Service Account wiring (X-Service-Account header from mcplocal)

Test plan

  • 487 mcpd tests passing (including 24 new prompt service tests)
  • 164 mcplocal tests passing (including 12 new router prompt tests)
  • 305 CLI tests passing
  • E2E: deploy, create prompt, propose via MCP, approve, verify resources/list

🤖 Generated with Claude Code

## Summary - **Phase 1**: Fix MCP proxy to support SSE and STDIO transports (extracted from HealthProbeRunner into reusable transport clients) - **Phase 2**: Enrich tool descriptions with server context (`[Server Description] tool description`) - **Phase 3**: Add `prompts` and `promptrequests` as RBAC resources + `ServiceAccount` subject type - **Phase 4**: Prisma schema for Prompt, PromptRequest models + Project.prompt field - **Phase 5**: Project prompt/instructions in MCP initialize response - **Phase 6**: Full Prompt backend (repositories, service, routes, validation) - **Phase 7**: MCP integration (propose_prompt tool, prompt resources in resources/list) - **Phase 8**: CLI commands (create prompt, get prompts/promptrequests, approve promptrequest) - **Phase 9**: Service Account wiring (X-Service-Account header from mcplocal) ## Test plan - [x] 487 mcpd tests passing (including 24 new prompt service tests) - [x] 164 mcplocal tests passing (including 12 new router prompt tests) - [x] 305 CLI tests passing - [ ] E2E: deploy, create prompt, propose via MCP, approve, verify resources/list 🤖 Generated with [Claude Code](https://claude.com/claude-code)
michal added 1 commit 2026-02-24 14:53:18 +00:00
feat: add prompt resources, fix MCP proxy transport, enrich tool descriptions
Some checks failed
CI / lint (pull_request) Has been cancelled
CI / typecheck (pull_request) Has been cancelled
CI / test (pull_request) Has been cancelled
CI / build (pull_request) Has been cancelled
CI / package (pull_request) Has been cancelled
079c7b3dfa
- Fix MCP proxy to support SSE and STDIO transports (not just HTTP POST)
- Enrich tool descriptions with server context for LLM clarity
- Add Prompt and PromptRequest resources with two-resource RBAC model
- Add propose_prompt MCP tool for LLM to create pending prompt requests
- Add prompt resources visible in MCP resources/list (approved + session's pending)
- Add project-level prompt/instructions in MCP initialize response
- Add ServiceAccount subject type for RBAC (SA identity from X-Service-Account header)
- Add CLI commands: create prompt, get prompts/promptrequests, approve promptrequest
- Add prompts to apply config schema
- 956 tests passing across all packages

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
michal merged commit 06230ec034 into main 2026-02-24 14:53:24 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: michal/mcpctl#36