.NET API
IMcpServerStore
Tracon.Abstractions.dllThe store for registered MCP servers.
public interface IMcpServerStoreRemarks
Section titled “Remarks”DI lifetime — singleton. Registered as a singleton with
TryAdd; a consumer’s own registration wins. An implementation must
be safe under concurrent calls and must not capture or depend on a
scoped service.
Methods
Section titled “Methods”DeleteAsync(string, string, CancellationToken)
Section titled “ DeleteAsync(string, string, CancellationToken)”Deletes a server.
ValueTask<bool> DeleteAsync(string tenantId, string name, CancellationToken cancellationToken = default)Parameters
Section titled “Parameters”tenantId string
The tenant identifier.
name string
The server name.
cancellationToken CancellationToken
The cancellation token.
Returns
Section titled “Returns”true if the record was deleted.
GetAsync(string, string, CancellationToken)
Section titled “ GetAsync(string, string, CancellationToken)”Fetches a server by name.
ValueTask<McpServerDefinition?> GetAsync(string tenantId, string name, CancellationToken cancellationToken = default)Parameters
Section titled “Parameters”tenantId string
The tenant identifier.
name string
The server name.
cancellationToken CancellationToken
The cancellation token.
Returns
Section titled “Returns”ValueTask<McpServerDefinition?>
The server; null if none exists.
ListAsync(string, CancellationToken)
Section titled “ ListAsync(string, CancellationToken)”Lists a tenant’s servers, ordered by name.
ValueTask<IReadOnlyList<McpServerDefinition>> ListAsync(string tenantId, CancellationToken cancellationToken = default)Parameters
Section titled “Parameters”tenantId string
The tenant identifier.
cancellationToken CancellationToken
The cancellation token.
Returns
Section titled “Returns”ValueTask<IReadOnlyList<McpServerDefinition>>
The servers.
SaveAsync(McpServerDefinition, CancellationToken)
Section titled “ SaveAsync(McpServerDefinition, CancellationToken)”Adds or updates a server. The key is the (tenant, name) pair.
ValueTask<McpServerDefinition> SaveAsync(McpServerDefinition server, CancellationToken cancellationToken = default)Parameters
Section titled “Parameters”server McpServerDefinition
The server to write.
cancellationToken CancellationToken
The cancellation token.
Returns
Section titled “Returns”ValueTask<McpServerDefinition>
The persisted record.