Class BowireMcpAdapterOptions
- Namespace
- Kuestenlogik.Bowire.Protocol.Mcp
- Assembly
- Kuestenlogik.Bowire.Protocol.Mcp.dll
Adapter-only configuration for
MapBowireMcpAdapter. Independent of
Kuestenlogik.Bowire.Mcp.BowireMcpOptions so the two
endpoints (full-server vs adapter) can be tuned without
interfering with each other — see #287.
public sealed class BowireMcpAdapterOptions
- Inheritance
-
BowireMcpAdapterOptions
- Inherited Members
Remarks
Resolved via the standard IOptions<T> pipeline so
hosts can bind it from appsettings.json
(Bowire:McpAdapter:* by convention) or wire it inline:
builder.Services.AddBowireMcpAdapter(opts =>
{
opts.UpstreamServerUrl = "http://workstation.local:5005";
opts.RequestTimeout = TimeSpan.FromSeconds(30);
opts.BearerToken = builder.Configuration["MyApp:McpAdapterToken"];
});
All properties have safe defaults. The legacy
AddBowireMcpAdapter(string? serverUrl) overload writes the
URL into this options block too, so old call-sites continue to
resolve the same value via UpstreamServerUrl.
Constructors
BowireMcpAdapterOptions()
public BowireMcpAdapterOptions()
Properties
BearerToken
Optional bearer token the adapter forwards to the upstream host on every discovery / invoke call. Set when the upstream requires authentication (Bowire auth gate, gateway token, service-to-service JWT). Leave null for open dev workbenches.
public string? BearerToken { get; set; }
Property Value
Remarks
Stored in plaintext on the options instance for simplicity —
inject from a secret store on the binding side
(builder.Configuration["…"] against a binding to Azure
Key Vault / AWS Secrets Manager) rather than committing the
literal value.
RequestTimeout
Maximum time the adapter waits for a single upstream discovery or invoke call before giving up. Default 30 s. Tighten in container hosts where a hung upstream would otherwise stall the adapter's HTTP transport thread.
public TimeSpan RequestTimeout { get; set; }
Property Value
UpstreamServerUrl
URL of the upstream Bowire workbench / API host the adapter
discovers + invokes against. Defaults to http://localhost
— the legacy WithMcpAdapter() behaviour before the
official-SDK migration.
public string UpstreamServerUrl { get; set; }