BlueGit

ict rusty-teams

Files

rusty-teams / crates / app / src / agents / mcp_bridge.rs

mcp_bridge.rs

mcp_bridge.rs 457 B Download Raw
1use gpui_kit::*;
2
3pub fn endpoint(cx: &App) -> Option<agents::McpEndpoint> {
4 crate::agent_api::mcp_endpoint(cx).map(|endpoint| agents::McpEndpoint {
5 url: endpoint.url,
6 token: endpoint.token,
7 })
8}
9
10pub fn chat_allowed(conversation_id: &str, cx: &App) -> bool {
11 crate::agent_api::chat_allowed(conversation_id, cx)
12}
13
14pub fn allow_chat(conversation_id: &str, cx: &mut App) {
15 crate::agent_api::allow_chat(conversation_id, cx);
16}