McpServerRequest
AgentPrism.AspNetCore.dllRequest to create/update an MCP server.
public sealed record McpServerRequest : IEquatable<McpServerRequest>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”There is no secret field. The authentication header’s
value is not sent; only the name of the configuration key
(AuthorizationConfigurationKey) the value is to be read from
is sent. The value is resolved through IConfiguration at runtime and
is never written to the database.
Constructors
Section titled “Constructors”McpServerRequest()
Section titled “ McpServerRequest()”public McpServerRequest()Properties
Section titled “Properties”AuthorizationConfigurationKey
Section titled “ AuthorizationConfigurationKey”Configuration key the Authorization header’s value is read from.
Example: AgentPrism:McpSecrets:GithubToken.
public string? AuthorizationConfigurationKey { get; init; }Property Value
Section titled “Property Value”Description
Section titled “ Description”Description.
public string? Description { get; init; }Property Value
Section titled “Property Value”Enabled
Section titled “ Enabled”Whether the server is enabled.
public bool Enabled { get; init; }Property Value
Section titled “Property Value”Endpoint
Section titled “ Endpoint”Server address. Only http and https are accepted.
public required string Endpoint { get; init; }Property Value
Section titled “Property Value”Headers
Section titled “ Headers”Extra request headers. Must not carry secrets — these values are stored as-is and appear in the listing endpoint.
public IReadOnlyDictionary<string, string>? Headers { get; init; }Property Value
Section titled “Property Value”IReadOnlyDictionary<string, string>?
OAuthAuthorizationMode
Section titled “ OAuthAuthorizationMode”OAuth authorization flow.
[JsonPropertyName("oauthAuthorizationMode")]public McpOAuthAuthorizationMode OAuthAuthorizationMode { get; init; }Property Value
Section titled “Property Value”OAuthClientId
Section titled “ OAuthClientId”OAuth client identifier.
[JsonPropertyName("oauthClientId")]public string? OAuthClientId { get; init; }Property Value
Section titled “Property Value”OAuthClientSecretConfigurationKey
Section titled “ OAuthClientSecretConfigurationKey”Configuration key the OAuth client secret’s value is read from. The value itself is not sent; only the key’s name is.
[JsonPropertyName("oauthClientSecretConfigurationKey")]public string? OAuthClientSecretConfigurationKey { get; init; }Property Value
Section titled “Property Value”OAuthEnabled
Section titled “ OAuthEnabled”Whether OAuth authentication is enabled. While on,
AuthorizationConfigurationKey must be empty.
[JsonPropertyName("oauthEnabled")]public bool OAuthEnabled { get; init; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”[JsonPropertyName] is given deliberately — same reason as
McpServerDefinition.OAuthEnabled: the camelCase policy
produces an unexpected result for a name like “OAuth” that starts with
two capital letters.
OAuthScopes
Section titled “ OAuthScopes”Space-separated list of OAuth scopes.
[JsonPropertyName("oauthScopes")]public string? OAuthScopes { get; init; }Property Value
Section titled “Property Value”RequiresApproval
Section titled “ RequiresApproval”Whether this server’s tools require approval. Default true.
public bool RequiresApproval { get; init; }Property Value
Section titled “Property Value”Transport
Section titled “ Transport”Transport mode.
public McpTransportMode Transport { get; init; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Equals(object?)
Section titled “ Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object?
Returns
Section titled “Returns”Equals(McpServerRequest?)
Section titled “ Equals(McpServerRequest?)”public bool Equals(McpServerRequest? other)Parameters
Section titled “Parameters”other McpServerRequest?
Returns
Section titled “Returns”GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(McpServerRequest?, McpServerRequest?)
Section titled “ operator ==(McpServerRequest?, McpServerRequest?)”public static bool operator ==(McpServerRequest? left, McpServerRequest? right)Parameters
Section titled “Parameters”left McpServerRequest?
right McpServerRequest?
Returns
Section titled “Returns”operator !=(McpServerRequest?, McpServerRequest?)
Section titled “ operator !=(McpServerRequest?, McpServerRequest?)”public static bool operator !=(McpServerRequest? left, McpServerRequest? right)Parameters
Section titled “Parameters”left McpServerRequest?
right McpServerRequest?