Add read-only MCP server with token access
Build and deploy / build (push) Successful in 1m31s
Build and deploy / deploy (push) Successful in 20s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
TomandClaude Opus 5.5 committed 2026-11-15 13:34:16 +01:00
1 parent b8328f6998
commit 49a8fa1154
34 files changed
+1625

No files matched your search

+4
View File
@@ -6,6 +6,7 @@ using Flypaper.Web;
using Flypaper.Web.Auth;
using Flypaper.Web.Components;
using Flypaper.Web.Health;
using Flypaper.Web.Mcp;
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.DataProtection;
@@ -32,6 +33,8 @@ if (builder.Configuration["Flypaper:DataProtection:KeysPath"] is { Length: > 0 }
dataProtection.PersistKeysToFileSystem(new DirectoryInfo(keysPath));
}
builder.Services.AddFlypaperMcp(builder.Configuration);
builder.Services.Configure<AdminOptions>(builder.Configuration.GetSection(AdminOptions.SectionName));
builder.Services.AddSingleton<AdminAuthenticator>();
builder.Services
@@ -69,6 +72,7 @@ app.UseAntiforgery();
app.MapStaticAssets().AllowAnonymous();
app.MapAuthEndpoints();
app.MapHealthEndpoint();
app.MapFlypaperMcp();
app.MapRazorComponents<App>();
await app.RunAsync();