{
"mcpServers": {
"github": {
"url": "https://api.githubcopilot.com/mcp/",
"oauth": {
"grantType": "device_code",
"clientId": "Ov23liDY0j2riv3dZtVY",
"deviceAuthorizationEndpoint": "https://github.com/login/device/code",
"tokenEndpoint": "https://github.com/login/oauth/access_token",
"scopes": "repo read:org"
}
}
}
}{
"mcpServers": {
"example": {
"url": "https://mcp.example.com/mcp",
"oauth": {
"grantType": "authorization_code",
"issuer": "https://mcp.example.com"
}
}
}
}pub suberror McpError {
Protocol(String)
}pub struct CallToolResult {
content : Array[ContentBlock]
structured_content : Json?
is_error : Bool
} derive(Eq, Debug)type McpClientasync fn McpClient::call_tool(self : McpClient, name~ : String, arguments~ : Json) -> CallToolResultasync fn McpClient::discover(self : McpClient, client_name~ : String, client_version~ : String) -> InitializeResultasync fn McpClient::initialize(self : McpClient, client_name~ : String, client_version~ : String) -> InitializeResult