Move MCP into Deckle.API, available at /mcp#71
Merged
Conversation
Eliminates the standalone Deckle.MCP service and its separate deployment
slot. MCP tools (ProjectTools, ComponentTools, DataSourceTools, FileTools)
now live in Deckle.API/McpTools/ and are served at /mcp with API key auth.
- Add ModelContextProtocol.AspNetCore to Deckle.API
- Add ApiKey auth scheme alongside existing cookie/Google OAuth
- Register "ApiKey" policy so /mcp uses API key auth exclusively,
leaving all other endpoints on the cookie path unchanged
- Wire up AddDeckleMcpTools() in Program.cs
- Map app.MapMcp("/mcp").RequireAuthorization("ApiKey")
- Remove Deckle.MCP and Deckle.MCP.Tests projects from solution
- Migrate all MCP tests into Deckle.API.Tests (Auth/ and McpTools/)
- Add InternalsVisibleTo(Deckle.API.Tests) for McpErrors access
- Remove mcp service from AppHost, docker-compose, and CI pipeline
https://claude.ai/code/session_014GTFHNaGGbSEWU8RUbP5nk
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Eliminates the standalone Deckle.MCP service and its separate deployment
slot. MCP tools (ProjectTools, ComponentTools, DataSourceTools, FileTools)
now live in Deckle.API/McpTools/ and are served at /mcp with API key auth.
leaving all other endpoints on the cookie path unchanged
https://claude.ai/code/session_014GTFHNaGGbSEWU8RUbP5nk