McpServerStore
class McpServerStore(context: Context, secrets: SecretStore = SecretStore(context), clientCapabilities: JsonObject = JsonObject(emptyMap()))(source)
Saved remote MCP servers. Configs live in SharedPreferences; bearer tokens, OAuth registrations and tokens are encrypted in secrets. Clients are cached per server so the negotiated protocol era and session are reused.
Parameters
clientCapabilities
declared by every client, e.g. dev.ai.elements.core.mcp.McpApps.CLIENT_CAPABILITIES when the app renders MCP Apps (ai-elements-mcp-apps).
Constructors
Link copied to clipboard
constructor(context: Context, secrets: SecretStore = SecretStore(context), clientCapabilities: JsonObject = JsonObject(emptyMap()))
Functions
Link copied to clipboard
Link copied to clipboard
OAuth client registration from dev.ai.elements.core.mcp.McpOAuth.discover.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The enabled servers as a capability for a turn.
Link copied to clipboard