Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions examples/ui-enabled-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@ impl McpBackend for UiBackend {
.enable_resources()
.enable_logging()
.build(),
server_info: Implementation {
name: "UI-Enabled Example Server".to_string(),
version: "1.0.0".to_string(),
},
server_info: Implementation::new("UI-Enabled Example Server", "1.0.0"),
instructions: Some(
"Example server demonstrating MCP Apps Extension with interactive UIs".to_string(),
),
Expand Down Expand Up @@ -67,7 +64,8 @@ impl McpBackend for UiBackend {
output_schema: None,
annotations: None,
icons: None,
// 🎯 KEY FEATURE: Link this tool to a UI resource
execution: None,
// KEY FEATURE: Link this tool to a UI resource
_meta: Some(ToolMeta::with_ui_resource("ui://greetings/interactive")),
},
Tool {
Expand All @@ -87,6 +85,7 @@ impl McpBackend for UiBackend {
output_schema: None,
annotations: None,
icons: None,
execution: None,
_meta: None, // No UI for this tool
},
],
Expand Down
7 changes: 3 additions & 4 deletions integration-tests/src/auth_server_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,7 @@ impl McpBackend for AuthTestBackend {
sampling: None,
..Default::default()
},
server_info: Implementation {
name: "Auth Test Backend".to_string(),
version: "1.0.0".to_string(),
},
server_info: Implementation::new("Auth Test Backend", "1.0.0"),
instructions: Some("Backend for authentication integration testing".to_string()),
}
}
Expand Down Expand Up @@ -113,6 +110,7 @@ impl McpBackend for AuthTestBackend {
title: None,
annotations: None,
icons: None,
execution: None,
_meta: None,
},
Tool {
Expand All @@ -129,6 +127,7 @@ impl McpBackend for AuthTestBackend {
title: None,
annotations: None,
icons: None,
execution: None,
_meta: None,
},
],
Expand Down
6 changes: 2 additions & 4 deletions integration-tests/src/cli_server_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,7 @@ impl McpBackend for CliTestBackend {
sampling: None,
..Default::default()
},
server_info: Implementation {
name: self.name.clone(),
version: "1.0.0".to_string(),
},
server_info: Implementation::new(self.name.clone(), "1.0.0"),
instructions: Some("CLI integration test backend".to_string()),
}
}
Expand Down Expand Up @@ -108,6 +105,7 @@ impl McpBackend for CliTestBackend {
title: None,
annotations: None,
icons: None,
execution: None,
_meta: None,
})
.collect();
Expand Down
8 changes: 3 additions & 5 deletions integration-tests/src/end_to_end_scenarios.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,10 @@ impl McpBackend for E2ETestBackend {
logging: Some(LoggingCapability {
level: Some("debug".to_string()),
}),
sampling: Some(SamplingCapability {}),
sampling: Some(SamplingCapability::default()),
..Default::default()
},
server_info: Implementation {
name: format!("E2E Test Server: {}", self.name),
version: "1.0.0".to_string(),
},
server_info: Implementation::new(format!("E2E Test Server: {}", self.name), "1.0.0"),
instructions: Some(
"Comprehensive end-to-end test backend with full MCP capabilities".to_string(),
),
Expand Down Expand Up @@ -263,6 +260,7 @@ impl McpBackend for E2ETestBackend {
title: None,
annotations: None,
icons: None,
execution: None,
_meta: None,
})
.collect();
Expand Down
7 changes: 3 additions & 4 deletions integration-tests/src/monitoring_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,7 @@ impl McpBackend for MonitoringTestBackend {
sampling: None,
..Default::default()
},
server_info: Implementation {
name: "Monitoring Test Backend".to_string(),
version: "1.0.0".to_string(),
},
server_info: Implementation::new("Monitoring Test Backend", "1.0.0"),
instructions: Some("Backend for monitoring integration testing".to_string()),
}
}
Expand Down Expand Up @@ -130,6 +127,7 @@ impl McpBackend for MonitoringTestBackend {
title: None,
annotations: None,
icons: None,
execution: None,
_meta: None,
},
Tool {
Expand All @@ -144,6 +142,7 @@ impl McpBackend for MonitoringTestBackend {
title: None,
annotations: None,
icons: None,
execution: None,
_meta: None,
},
],
Expand Down
7 changes: 3 additions & 4 deletions integration-tests/src/transport_server_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,7 @@ impl McpBackend for TransportTestBackend {
sampling: None,
..Default::default()
},
server_info: Implementation {
name: self.server_name.clone(),
version: "1.0.0".to_string(),
},
server_info: Implementation::new(self.server_name.clone(), "1.0.0"),
instructions: Some("Backend for transport integration testing".to_string()),
}
}
Expand Down Expand Up @@ -103,6 +100,7 @@ impl McpBackend for TransportTestBackend {
title: None,
annotations: None,
icons: None,
execution: None,
_meta: None,
},
Tool {
Expand All @@ -117,6 +115,7 @@ impl McpBackend for TransportTestBackend {
title: None,
annotations: None,
icons: None,
execution: None,
_meta: None,
},
],
Expand Down
1 change: 1 addition & 0 deletions mcp-auth/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ base64-url = "3.0"
rand = { workspace = true }
chrono = { workspace = true }
dirs = { workspace = true }
url = { workspace = true }
urlencoding = "2.1"

# HTTP framework for OAuth endpoints
Expand Down
Loading