Forge
csharp3407750f
1namespace AgentForge.Mcp;
2
3public sealed class ForgeMcpSettings
4{
5 public const string DefaultBaseUrl = "http://127.0.0.1:8770";
6
7 public required Uri BaseUri { get; init; }
8
9 public string? ApiToken { get; init; }
10
11 public string? Actor { get; init; }
12
13 /// <summary>Advertise MCP tools/listChanged and emit notifications when host capabilities change.</summary>
14 public bool ToolsListChanged { get; init; }
15
16 /// <summary>Poll GET /api/v1/capabilities; 0 = disabled.</summary>
17 public int CapabilitiesPollSeconds { get; init; }
18
19 /// <summary>Rewrite Cursor mcps/user-forge/tools/*.json on each tools/list (IDE cache workaround).</summary>
20 public bool SyncCursorToolDescriptors { get; init; }
21
22 /// <summary>Target directory for <see cref="SyncCursorToolDescriptors"/> (also FORGE_CURSOR_TOOLS_DIR).</summary>
23 public string? CursorToolDescriptorsDir { get; init; }
24}
25
View only · write via MCP/CIDE