MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / default

Method default

crates/opencode-mcp/src/protocol.rs:85–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83
84impl Default for InitializeParams {
85 fn default() -> Self {
86 Self {
87 protocol_version: "2024-11-05".to_string(),
88 capabilities: ClientCapabilities {
89 tools: Some(ToolsCapability {
90 list_changed: Some(true),
91 }),
92 },
93 client_info: ClientInfo {
94 name: "opencode".to_string(),
95 version: env!("CARGO_PKG_VERSION").to_string(),
96 },
97 }
98 }
99}
100
101#[derive(Debug, Clone, Serialize, Deserialize)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected