MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / mcp_routes

Function mcp_routes

crates/opencode-server/src/routes.rs:2485–2495  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2483}
2484
2485fn mcp_routes() -> Router<Arc<ServerState>> {
2486 Router::new()
2487 .route("/", get(get_mcp_status).post(add_mcp_server))
2488 .route("/{name}/auth", post(start_mcp_auth).delete(remove_mcp_auth))
2489 .route("/{name}/auth/callback", post(mcp_auth_callback))
2490 .route("/{name}/auth/authenticate", post(mcp_authenticate))
2491 .route("/{name}/connect", post(connect_mcp))
2492 .route("/{name}/disconnect", post(disconnect_mcp))
2493 .route("/{name}/logs", get(get_mcp_logs))
2494 .route("/{name}/restart", post(restart_mcp))
2495}
2496
2497#[derive(Debug, Serialize)]
2498pub struct McpStatusInfo {

Callers 1

routerFunction · 0.85

Calls 3

newFunction · 0.85
getFunction · 0.50
deleteMethod · 0.45

Tested by

no test coverage detected