Add read-only MCP server with token access
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b8328f6998
commit
49a8fa1154
34 files changed
+1625
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user