Get the auth entry for a given MCP server name.
(mcp_name: &str)
| 82 | |
| 83 | /// Get the auth entry for a given MCP server name. |
| 84 | pub async fn get(mcp_name: &str) -> Option<AuthEntry> { |
| 85 | let data = read_all().await; |
| 86 | data.get(mcp_name).cloned() |
| 87 | } |
| 88 | |
| 89 | /// Get the auth entry only if it was stored for the same `server_url`. |
| 90 | pub async fn get_for_url(mcp_name: &str, server_url: &str) -> Option<AuthEntry> { |
no test coverage detected