Change MCP SDK to rmcp #422
Closed
Annotations
10 errors
|
rig-core/src/tool.rs#L330
error[E0428]: the name `McpTool` is defined multiple times
--> rig-core/src/tool.rs:330:1
|
189 | pub struct McpTool<T: mcp_core::transport::Transport> {
| ----------------------------------------------------- previous definition of the type `McpTool` here
...
330 | pub struct McpTool {
| ^^^^^^^^^^^^^^^^^^ `McpTool` redefined here
|
= note: `McpTool` must be defined only once in the type namespace of this module
|
|
rig-core/src/tool.rs#L370
error[E0428]: the name `McpToolError` is defined multiple times
--> rig-core/src/tool.rs:370:1
|
232 | pub struct McpToolError(String);
| -------------------------------- previous definition of the type `McpToolError` here
...
370 | pub struct McpToolError(String);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `McpToolError` redefined here
|
= note: `McpToolError` must be defined only once in the type namespace of this module
|
|
rig-core/src/tool.rs#L336
error[E0107]: missing generics for struct `tool::McpTool`
--> rig-core/src/tool.rs:336:6
|
336 | impl McpTool {
| ^^^^^^^ expected 1 generic argument
|
note: struct defined here, with 1 generic parameter: `T`
--> rig-core/src/tool.rs:189:12
|
189 | pub struct McpTool<T: mcp_core::transport::Transport> {
| ^^^^^^^ -
help: add missing generic argument
|
336 | impl McpTool<T> {
| +++
|
|
rig-core/src/tool.rs#L380
error[E0107]: missing generics for struct `tool::McpTool`
--> rig-core/src/tool.rs:380:18
|
380 | impl ToolDyn for McpTool {
| ^^^^^^^ expected 1 generic argument
|
note: struct defined here, with 1 generic parameter: `T`
--> rig-core/src/tool.rs:189:12
|
189 | pub struct McpTool<T: mcp_core::transport::Transport> {
| ^^^^^^^ -
help: add missing generic argument
|
380 | impl ToolDyn for McpTool<T> {
| +++
|
|
rig-core/src/tool.rs#L373
error[E0119]: conflicting implementations of trait `std::convert::From<tool::McpToolError>` for type `tool::ToolError`
--> rig-core/src/tool.rs:373:1
|
235 | impl From<McpToolError> for ToolError {
| ------------------------------------- first implementation here
...
373 | impl From<McpToolError> for ToolError {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `tool::ToolError`
|
|
rig-core/src/tool.rs#L368
error[E0119]: conflicting implementations of trait `std::fmt::Debug` for type `tool::McpToolError`
--> rig-core/src/tool.rs:368:10
|
230 | #[derive(Debug, thiserror::Error)]
| ----- first implementation here
...
368 | #[derive(Debug, thiserror::Error)]
| ^^^^^ conflicting implementation for `tool::McpToolError`
|
|
rig-core/src/tool.rs#L368
error[E0119]: conflicting implementations of trait `std::error::Error` for type `tool::McpToolError`
--> rig-core/src/tool.rs:368:17
|
230 | #[derive(Debug, thiserror::Error)]
| ---------------- first implementation here
...
368 | #[derive(Debug, thiserror::Error)]
| ^^^^^^^^^^^^^^^^ conflicting implementation for `tool::McpToolError`
|
= note: this error originates in the derive macro `thiserror::Error` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
rig-core/src/tool.rs#L368
error[E0119]: conflicting implementations of trait `std::fmt::Display` for type `tool::McpToolError`
--> rig-core/src/tool.rs:368:17
|
230 | #[derive(Debug, thiserror::Error)]
| ---------------- first implementation here
...
368 | #[derive(Debug, thiserror::Error)]
| ^^^^^^^^^^^^^^^^ conflicting implementation for `tool::McpToolError`
|
= note: this error originates in the derive macro `thiserror::Error` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
rig-core/src/tool.rs#L199
error[E0592]: duplicate definitions with name `from_mcp_server`
--> rig-core/src/tool.rs:199:5
|
199 | / pub fn from_mcp_server(
200 | | definition: mcp_core::types::Tool,
201 | | client: mcp_core::client::Client<T>,
202 | | ) -> Self {
| |_____________^ duplicate definitions for `from_mcp_server`
...
337 | / pub fn from_mcp_server(
338 | | definition: rmcp::model::Tool,
339 | | client: rmcp::service::ServerSink,
340 | | ) -> Self {
| |_____________- other definition for `from_mcp_server`
|
|
rig-core/src/tool.rs#L341
error[E0308]: mismatched types
--> rig-core/src/tool.rs:341:16
|
341 | Self { definition, client }
| ^^^^^^^^^^ expected `mcp_core::types::Tool`, found `rmcp::model::Tool`
|
= note: `rmcp::model::Tool` and `mcp_core::types::Tool` have similar names, but are actually distinct types
note: `rmcp::model::Tool` is defined in crate `rmcp`
--> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rmcp-0.1.5/src/model/tool.rs:13:1
|
13 | pub struct Tool {
| ^^^^^^^^^^^^^^^
note: `mcp_core::types::Tool` is defined in crate `mcp_core`
--> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/mcp-core-0.1.50/src/types.rs:161:1
|
161 | pub struct Tool {
| ^^^^^^^^^^^^^^^
|
The logs for this run have expired and are no longer available.
Loading