Function get_github_client_id

Source
pub fn get_github_client_id() -> Result<String, ConfigError>
Expand description

GitHub OAuth configuration values

Examples found in repository?
examples/oauth_standard_mcp_server.rs (line 58)
48fn log_startup_info() {
49    use remote_mcp_kernel::config::{get_server_host, get_server_port, get_server_version, get_github_client_id, get_github_client_secret};
50    
51    println!("🚀 Starting MCP OAuth server with microkernel architecture...");
52    println!("📋 Configuration:");
53    println!("  - Architecture: Microkernel (independent handlers)");
54    println!("  - Server: {}:{}", get_server_host(), get_server_port().unwrap_or(8080));
55    println!("  - Version: {}", get_server_version());
56    println!(
57        "  - GitHub Client ID: {}",
58        if get_github_client_id().is_ok() {
59            "Configured"
60        } else {
61            "Not configured"
62        }
63    );
64    println!(
65        "  - GitHub Client Secret: {}",
66        if get_github_client_secret().is_ok() {
67            "Configured"
68        } else {
69            "Not configured"
70        }
71    );
72    println!("🔧 Handlers:");
73    println!("  - OAuth Provider (authentication & authorization)");
74    println!("  - Streamable HTTP Handler (MCP over HTTP)");
75    println!("  - SSE Handler (MCP over SSE)");
76    println!();
77}