fix: add WithHttpTransport() for HTTP mode and add k8s manifests

HTTP transport mode was missing the required WithHttpTransport() call,
causing MapMcp() to fail. Also adds Kubernetes manifests for deployment.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Barry Walker
2026-01-13 17:17:02 -05:00
parent 2b7d9eaa95
commit eed1e4535c
6 changed files with 105 additions and 1 deletions
+2 -1
View File
@@ -38,6 +38,7 @@ else
builder.Services
.AddMcpServer()
.WithHttpTransport()
.WithToolsFromAssembly();
var app = builder.Build();
@@ -45,7 +46,7 @@ else
var port = app.Configuration.GetValue<int?>("Mcp:Port")
?? (Environment.GetEnvironmentVariable("MCP_PORT") is string portStr && int.TryParse(portStr, out var p) ? p : 5000);
app.MapMcp("/mcp");
app.MapMcp();
app.Logger.LogInformation("PaperlessMCP server starting on port {Port}", port);
app.Logger.LogInformation("MCP endpoint available at: http://localhost:{Port}/mcp", port);