Skip to content

Cannot compile, "struct Parameters is private" error #49

@flesheatinggames

Description

@flesheatinggames
  1. Cloned latest version of the repo
  2. Ran cargo install --path .
  3. Got error:
Compiling surrealmcp v0.4.0 (/Users/traviswilliams/.claude/mcp/surrealmcp)
error[E0603]: struct `Parameters` is private
  --> src/tools/mod.rs:7:28
   |
 7 |     handler::server::tool::Parameters,
   |                            ^^^^^^^^^^ private struct
   |
note: the struct `Parameters` is defined here
  --> /Users/traviswilliams/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rmcp-0.6.4/src/handler/server/tool.rs:17:5
   |
17 |     handler::server::wrapper::Parameters,
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: import `Parameters` directly
   |
 7 -     handler::server::tool::Parameters,
 7 +     rmcp::handler::server::wrapper::parameters::Parameters,
   |

error[E0063]: missing field `title` in initializer of `PromptArgument`
  --> src/prompts/mod.rs:40:13
   |
40 |             PromptArgument {
   |             ^^^^^^^^^^^^^^ missing `title`

error[E0063]: missing field `title` in initializer of `PromptArgument`
  --> src/prompts/mod.rs:47:13
   |
47 |             PromptArgument {
   |             ^^^^^^^^^^^^^^ missing `title`

error[E0063]: missing field `title` in initializer of `PromptArgument`
  --> src/prompts/mod.rs:52:13
   |
52 |             PromptArgument {
   |             ^^^^^^^^^^^^^^ missing `title`

error[E0063]: missing field `title` in initializer of `PromptArgument`
   --> src/prompts/mod.rs:117:13
    |
117 |             PromptArgument {
    |             ^^^^^^^^^^^^^^ missing `title`

error[E0063]: missing field `title` in initializer of `PromptArgument`
   --> src/prompts/mod.rs:122:13
    |
122 |             PromptArgument {
    |             ^^^^^^^^^^^^^^ missing `title`

error[E0063]: missing field `title` in initializer of `PromptArgument`
   --> src/prompts/mod.rs:127:13
    |
127 |             PromptArgument {
    |             ^^^^^^^^^^^^^^ missing `title`

error[E0063]: missing field `title` in initializer of `PromptArgument`
   --> src/prompts/mod.rs:186:13
    |
186 |             PromptArgument {
    |             ^^^^^^^^^^^^^^ missing `title`

error[E0063]: missing field `title` in initializer of `PromptArgument`
   --> src/prompts/mod.rs:193:13
    |
193 |             PromptArgument {
    |             ^^^^^^^^^^^^^^ missing `title`

error[E0063]: missing fields `icons` and `title` in initializer of `rmcp::model::Prompt`
   --> src/prompts/mod.rs:283:26
    |
283 |         .map(|generator| Prompt {
    |                          ^^^^^^ missing `icons` and `title`

error[E0063]: missing fields `icons` and `title` in initializer of `RawResource`
  --> src/resources/mod.rs:23:19
   |
23 |         let raw = RawResource {
   |                   ^^^^^^^^^^^ missing `icons` and `title`

error[E0277]: the trait bound `(Tool, fn(&..., ...) -> ... {...::query}): IntoToolRoute<..., _>` is not satisfied
   --> src/tools/mod.rs:234:1
    |
234 | #[tool_router]
    | ^^^^^^^^^^^^^^ the trait `IntoToolRoute<SurrealService, _>` is not implemented for `(Tool, fn(&SurrealService, {type error}) -> Pin<...> {...::query})`
    |
    = help: the trait `IntoToolRoute<S, A>` is implemented for `(T, C)`
note: required by a bound in `ToolRouter::<S>::with_route`
   --> /Users/traviswilliams/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rmcp-0.6.4/src/handler/server/router/tool.rs:215:12
    |
213 |     pub fn with_route<R, A>(mut self, route: R) -> Self
    |            ---------- required by a bound in this associated function
214 |     where
215 |         R: IntoToolRoute<S, A>,
    |            ^^^^^^^^^^^^^^^^^^^ required by this bound in `ToolRouter::<S>::with_route`
    = note: the full name for the type has been written to '/Users/traviswilliams/.claude/mcp/surrealmcp/target/release/deps/surrealmcp-d6f0daee80a7cd7f.long-type-4729379090356017841.txt'
    = note: consider using `--verbose` to print the full type name to the console
    = note: this error originates in the attribute macro `tool_router` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `(Tool, fn(&..., ...) -> ... {...::select}): IntoToolRoute<..., _>` is not satisfied
   --> src/tools/mod.rs:234:1
    |
234 | #[tool_router]
    | ^^^^^^^^^^^^^^ the trait `IntoToolRoute<SurrealService, _>` is not implemented for `(Tool, fn(&SurrealService, {type error}) -> Pin<...> {...::select})`
    |
    = help: the trait `IntoToolRoute<S, A>` is implemented for `(T, C)`
note: required by a bound in `ToolRouter::<S>::with_route`
   --> /Users/traviswilliams/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rmcp-0.6.4/src/handler/server/router/tool.rs:215:12
    |
213 |     pub fn with_route<R, A>(mut self, route: R) -> Self
    |            ---------- required by a bound in this associated function
214 |     where
215 |         R: IntoToolRoute<S, A>,
    |            ^^^^^^^^^^^^^^^^^^^ required by this bound in `ToolRouter::<S>::with_route`
    = note: the full name for the type has been written to '/Users/traviswilliams/.claude/mcp/surrealmcp/target/release/deps/surrealmcp-d6f0daee80a7cd7f.long-type-17560755700087537002.txt'
    = note: consider using `--verbose` to print the full type name to the console
    = note: this error originates in the attribute macro `tool_router` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `(Tool, fn(&..., ...) -> ... {...::insert}): IntoToolRoute<..., _>` is not satisfied
   --> src/tools/mod.rs:234:1
    |
234 | #[tool_router]
    | ^^^^^^^^^^^^^^ the trait `IntoToolRoute<SurrealService, _>` is not implemented for `(Tool, fn(&SurrealService, {type error}) -> Pin<...> {...::insert})`
    |
    = help: the trait `IntoToolRoute<S, A>` is implemented for `(T, C)`
note: required by a bound in `ToolRouter::<S>::with_route`
   --> /Users/traviswilliams/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rmcp-0.6.4/src/handler/server/router/tool.rs:215:12
    |
213 |     pub fn with_route<R, A>(mut self, route: R) -> Self
    |            ---------- required by a bound in this associated function
214 |     where
215 |         R: IntoToolRoute<S, A>,
    |            ^^^^^^^^^^^^^^^^^^^ required by this bound in `ToolRouter::<S>::with_route`
    = note: the full name for the type has been written to '/Users/traviswilliams/.claude/mcp/surrealmcp/target/release/deps/surrealmcp-d6f0daee80a7cd7f.long-type-7020323841169923016.txt'
    = note: consider using `--verbose` to print the full type name to the console
    = note: this error originates in the attribute macro `tool_router` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `(Tool, fn(&..., ...) -> ... {...::create}): IntoToolRoute<..., _>` is not satisfied
   --> src/tools/mod.rs:234:1
    |
234 | #[tool_router]
    | ^^^^^^^^^^^^^^ the trait `IntoToolRoute<SurrealService, _>` is not implemented for `(Tool, fn(&SurrealService, {type error}) -> Pin<...> {...::create})`
    |
    = help: the trait `IntoToolRoute<S, A>` is implemented for `(T, C)`
note: required by a bound in `ToolRouter::<S>::with_route`
   --> /Users/traviswilliams/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rmcp-0.6.4/src/handler/server/router/tool.rs:215:12
    |
213 |     pub fn with_route<R, A>(mut self, route: R) -> Self
    |            ---------- required by a bound in this associated function
214 |     where
215 |         R: IntoToolRoute<S, A>,
    |            ^^^^^^^^^^^^^^^^^^^ required by this bound in `ToolRouter::<S>::with_route`
    = note: the full name for the type has been written to '/Users/traviswilliams/.claude/mcp/surrealmcp/target/release/deps/surrealmcp-d6f0daee80a7cd7f.long-type-10095608683008379051.txt'
    = note: consider using `--verbose` to print the full type name to the console
    = note: this error originates in the attribute macro `tool_router` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `(Tool, fn(&..., ...) -> ... {...::upsert}): IntoToolRoute<..., _>` is not satisfied
   --> src/tools/mod.rs:234:1
    |
234 | #[tool_router]
    | ^^^^^^^^^^^^^^ the trait `IntoToolRoute<SurrealService, _>` is not implemented for `(Tool, fn(&SurrealService, {type error}) -> Pin<...> {...::upsert})`
    |
    = help: the trait `IntoToolRoute<S, A>` is implemented for `(T, C)`
note: required by a bound in `ToolRouter::<S>::with_route`
   --> /Users/traviswilliams/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rmcp-0.6.4/src/handler/server/router/tool.rs:215:12
    |
213 |     pub fn with_route<R, A>(mut self, route: R) -> Self
    |            ---------- required by a bound in this associated function
214 |     where
215 |         R: IntoToolRoute<S, A>,
    |            ^^^^^^^^^^^^^^^^^^^ required by this bound in `ToolRouter::<S>::with_route`
    = note: the full name for the type has been written to '/Users/traviswilliams/.claude/mcp/surrealmcp/target/release/deps/surrealmcp-d6f0daee80a7cd7f.long-type-10655516423060288870.txt'
    = note: consider using `--verbose` to print the full type name to the console
    = note: this error originates in the attribute macro `tool_router` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `(Tool, fn(&..., ...) -> ... {...::update}): IntoToolRoute<..., _>` is not satisfied
   --> src/tools/mod.rs:234:1
    |
234 | #[tool_router]
    | ^^^^^^^^^^^^^^ the trait `IntoToolRoute<SurrealService, _>` is not implemented for `(Tool, fn(&SurrealService, {type error}) -> Pin<...> {...::update})`
    |
    = help: the trait `IntoToolRoute<S, A>` is implemented for `(T, C)`
note: required by a bound in `ToolRouter::<S>::with_route`
   --> /Users/traviswilliams/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rmcp-0.6.4/src/handler/server/router/tool.rs:215:12
    |
213 |     pub fn with_route<R, A>(mut self, route: R) -> Self
    |            ---------- required by a bound in this associated function
214 |     where
215 |         R: IntoToolRoute<S, A>,
    |            ^^^^^^^^^^^^^^^^^^^ required by this bound in `ToolRouter::<S>::with_route`
    = note: the full name for the type has been written to '/Users/traviswilliams/.claude/mcp/surrealmcp/target/release/deps/surrealmcp-d6f0daee80a7cd7f.long-type-12658499147757986419.txt'
    = note: consider using `--verbose` to print the full type name to the console
    = note: this error originates in the attribute macro `tool_router` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `(Tool, fn(&..., ...) -> ... {...::delete}): IntoToolRoute<..., _>` is not satisfied
   --> src/tools/mod.rs:234:1
    |
234 | #[tool_router]
    | ^^^^^^^^^^^^^^ the trait `IntoToolRoute<SurrealService, _>` is not implemented for `(Tool, fn(&SurrealService, {type error}) -> Pin<...> {...::delete})`
    |
    = help: the trait `IntoToolRoute<S, A>` is implemented for `(T, C)`
note: required by a bound in `ToolRouter::<S>::with_route`
   --> /Users/traviswilliams/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rmcp-0.6.4/src/handler/server/router/tool.rs:215:12
    |
213 |     pub fn with_route<R, A>(mut self, route: R) -> Self
    |            ---------- required by a bound in this associated function
214 |     where
215 |         R: IntoToolRoute<S, A>,
    |            ^^^^^^^^^^^^^^^^^^^ required by this bound in `ToolRouter::<S>::with_route`
    = note: the full name for the type has been written to '/Users/traviswilliams/.claude/mcp/surrealmcp/target/release/deps/surrealmcp-d6f0daee80a7cd7f.long-type-5077645780969913678.txt'
    = note: consider using `--verbose` to print the full type name to the console
    = note: this error originates in the attribute macro `tool_router` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `(Tool, fn(&..., ...) -> ... {...::relate}): IntoToolRoute<..., _>` is not satisfied
   --> src/tools/mod.rs:234:1
    |
234 | #[tool_router]
    | ^^^^^^^^^^^^^^ the trait `IntoToolRoute<SurrealService, _>` is not implemented for `(Tool, fn(&SurrealService, {type error}) -> Pin<...> {...::relate})`
    |
    = help: the trait `IntoToolRoute<S, A>` is implemented for `(T, C)`
note: required by a bound in `ToolRouter::<S>::with_route`
   --> /Users/traviswilliams/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rmcp-0.6.4/src/handler/server/router/tool.rs:215:12
    |
213 |     pub fn with_route<R, A>(mut self, route: R) -> Self
    |            ---------- required by a bound in this associated function
214 |     where
215 |         R: IntoToolRoute<S, A>,
    |            ^^^^^^^^^^^^^^^^^^^ required by this bound in `ToolRouter::<S>::with_route`
    = note: the full name for the type has been written to '/Users/traviswilliams/.claude/mcp/surrealmcp/target/release/deps/surrealmcp-d6f0daee80a7cd7f.long-type-639985322623956881.txt'
    = note: consider using `--verbose` to print the full type name to the console
    = note: this error originates in the attribute macro `tool_router` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `(Tool, ...): IntoToolRoute<..., _>` is not satisfied
   --> src/tools/mod.rs:234:1
    |
234 | #[tool_router]
    | ^^^^^^^^^^^^^^ the trait `IntoToolRoute<SurrealService, _>` is not implemented for `(Tool, fn(&..., ...) -> ... {...::list_cloud_organizations})`
    |
    = help: the trait `IntoToolRoute<S, A>` is implemented for `(T, C)`
note: required by a bound in `ToolRouter::<S>::with_route`
   --> /Users/traviswilliams/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rmcp-0.6.4/src/handler/server/router/tool.rs:215:12
    |
213 |     pub fn with_route<R, A>(mut self, route: R) -> Self
    |            ---------- required by a bound in this associated function
214 |     where
215 |         R: IntoToolRoute<S, A>,
    |            ^^^^^^^^^^^^^^^^^^^ required by this bound in `ToolRouter::<S>::with_route`
    = note: the full name for the type has been written to '/Users/traviswilliams/.claude/mcp/surrealmcp/target/release/deps/surrealmcp-d6f0daee80a7cd7f.long-type-3399254267354770593.txt'
    = note: consider using `--verbose` to print the full type name to the console
    = note: this error originates in the attribute macro `tool_router` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `(Tool, ...): IntoToolRoute<..., _>` is not satisfied
   --> src/tools/mod.rs:234:1
    |
234 | #[tool_router]
    | ^^^^^^^^^^^^^^ the trait `IntoToolRoute<SurrealService, _>` is not implemented for `(Tool, fn(&SurrealService, ...) -> ... {...::list_cloud_instances})`
    |
    = help: the trait `IntoToolRoute<S, A>` is implemented for `(T, C)`
note: required by a bound in `ToolRouter::<S>::with_route`
   --> /Users/traviswilliams/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rmcp-0.6.4/src/handler/server/router/tool.rs:215:12
    |
213 |     pub fn with_route<R, A>(mut self, route: R) -> Self
    |            ---------- required by a bound in this associated function
214 |     where
215 |         R: IntoToolRoute<S, A>,
    |            ^^^^^^^^^^^^^^^^^^^ required by this bound in `ToolRouter::<S>::with_route`
    = note: the full name for the type has been written to '/Users/traviswilliams/.claude/mcp/surrealmcp/target/release/deps/surrealmcp-d6f0daee80a7cd7f.long-type-2833046103375768208.txt'
    = note: consider using `--verbose` to print the full type name to the console
    = note: this error originates in the attribute macro `tool_router` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `(Tool, ...): IntoToolRoute<..., _>` is not satisfied
   --> src/tools/mod.rs:234:1
    |
234 | #[tool_router]
    | ^^^^^^^^^^^^^^ the trait `IntoToolRoute<SurrealService, _>` is not implemented for `(Tool, fn(&SurrealService, ...) -> ... {...::pause_cloud_instance})`
    |
    = help: the trait `IntoToolRoute<S, A>` is implemented for `(T, C)`
note: required by a bound in `ToolRouter::<S>::with_route`
   --> /Users/traviswilliams/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rmcp-0.6.4/src/handler/server/router/tool.rs:215:12
    |
213 |     pub fn with_route<R, A>(mut self, route: R) -> Self
    |            ---------- required by a bound in this associated function
214 |     where
215 |         R: IntoToolRoute<S, A>,
    |            ^^^^^^^^^^^^^^^^^^^ required by this bound in `ToolRouter::<S>::with_route`
    = note: the full name for the type has been written to '/Users/traviswilliams/.claude/mcp/surrealmcp/target/release/deps/surrealmcp-d6f0daee80a7cd7f.long-type-15030052137549449220.txt'
    = note: consider using `--verbose` to print the full type name to the console
    = note: this error originates in the attribute macro `tool_router` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `(Tool, ...): IntoToolRoute<..., _>` is not satisfied
   --> src/tools/mod.rs:234:1
    |
234 | #[tool_router]
    | ^^^^^^^^^^^^^^ the trait `IntoToolRoute<SurrealService, _>` is not implemented for `(Tool, fn(&SurrealService, ...) -> ... {...::resume_cloud_instance})`
    |
    = help: the trait `IntoToolRoute<S, A>` is implemented for `(T, C)`
note: required by a bound in `ToolRouter::<S>::with_route`
   --> /Users/traviswilliams/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rmcp-0.6.4/src/handler/server/router/tool.rs:215:12
    |
213 |     pub fn with_route<R, A>(mut self, route: R) -> Self
    |            ---------- required by a bound in this associated function
214 |     where
215 |         R: IntoToolRoute<S, A>,
    |            ^^^^^^^^^^^^^^^^^^^ required by this bound in `ToolRouter::<S>::with_route`
    = note: the full name for the type has been written to '/Users/traviswilliams/.claude/mcp/surrealmcp/target/release/deps/surrealmcp-d6f0daee80a7cd7f.long-type-2044170312139962903.txt'
    = note: consider using `--verbose` to print the full type name to the console
    = note: this error originates in the attribute macro `tool_router` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `(Tool, ...): IntoToolRoute<..., _>` is not satisfied
   --> src/tools/mod.rs:234:1
    |
234 | #[tool_router]
    | ^^^^^^^^^^^^^^ the trait `IntoToolRoute<SurrealService, _>` is not implemented for `(Tool, fn(&..., ...) -> ... {...::get_cloud_instance_status})`
    |
    = help: the trait `IntoToolRoute<S, A>` is implemented for `(T, C)`
note: required by a bound in `ToolRouter::<S>::with_route`
   --> /Users/traviswilliams/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rmcp-0.6.4/src/handler/server/router/tool.rs:215:12
    |
213 |     pub fn with_route<R, A>(mut self, route: R) -> Self
    |            ---------- required by a bound in this associated function
214 |     where
215 |         R: IntoToolRoute<S, A>,
    |            ^^^^^^^^^^^^^^^^^^^ required by this bound in `ToolRouter::<S>::with_route`
    = note: the full name for the type has been written to '/Users/traviswilliams/.claude/mcp/surrealmcp/target/release/deps/surrealmcp-d6f0daee80a7cd7f.long-type-9795924774185108942.txt'
    = note: consider using `--verbose` to print the full type name to the console
    = note: this error originates in the attribute macro `tool_router` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `(Tool, ...): IntoToolRoute<..., _>` is not satisfied
   --> src/tools/mod.rs:234:1
    |
234 | #[tool_router]
    | ^^^^^^^^^^^^^^ the trait `IntoToolRoute<SurrealService, _>` is not implemented for `(Tool, fn(&SurrealService, ...) -> ... {...::create_cloud_instance})`
    |
    = help: the trait `IntoToolRoute<S, A>` is implemented for `(T, C)`
note: required by a bound in `ToolRouter::<S>::with_route`
   --> /Users/traviswilliams/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rmcp-0.6.4/src/handler/server/router/tool.rs:215:12
    |
213 |     pub fn with_route<R, A>(mut self, route: R) -> Self
    |            ---------- required by a bound in this associated function
214 |     where
215 |         R: IntoToolRoute<S, A>,
    |            ^^^^^^^^^^^^^^^^^^^ required by this bound in `ToolRouter::<S>::with_route`
    = note: the full name for the type has been written to '/Users/traviswilliams/.claude/mcp/surrealmcp/target/release/deps/surrealmcp-d6f0daee80a7cd7f.long-type-3918128100172891479.txt'
    = note: consider using `--verbose` to print the full type name to the console
    = note: this error originates in the attribute macro `tool_router` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `(Tool, ...): IntoToolRoute<..., _>` is not satisfied
   --> src/tools/mod.rs:234:1
    |
234 | #[tool_router]
    | ^^^^^^^^^^^^^^ the trait `IntoToolRoute<SurrealService, _>` is not implemented for `(Tool, fn(&SurrealService, ...) -> ... {...::connect_endpoint})`
    |
    = help: the trait `IntoToolRoute<S, A>` is implemented for `(T, C)`
note: required by a bound in `ToolRouter::<S>::with_route`
   --> /Users/traviswilliams/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rmcp-0.6.4/src/handler/server/router/tool.rs:215:12
    |
213 |     pub fn with_route<R, A>(mut self, route: R) -> Self
    |            ---------- required by a bound in this associated function
214 |     where
215 |         R: IntoToolRoute<S, A>,
    |            ^^^^^^^^^^^^^^^^^^^ required by this bound in `ToolRouter::<S>::with_route`
    = note: the full name for the type has been written to '/Users/traviswilliams/.claude/mcp/surrealmcp/target/release/deps/surrealmcp-d6f0daee80a7cd7f.long-type-10656762584804199613.txt'
    = note: consider using `--verbose` to print the full type name to the console
    = note: this error originates in the attribute macro `tool_router` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `(Tool, ...): IntoToolRoute<..., _>` is not satisfied
   --> src/tools/mod.rs:234:1
    |
234 | #[tool_router]
    | ^^^^^^^^^^^^^^ the trait `IntoToolRoute<SurrealService, _>` is not implemented for `(Tool, fn(&SurrealService, {type error}) -> ... {...::use_namespace})`
    |
    = help: the trait `IntoToolRoute<S, A>` is implemented for `(T, C)`
note: required by a bound in `ToolRouter::<S>::with_route`
   --> /Users/traviswilliams/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rmcp-0.6.4/src/handler/server/router/tool.rs:215:12
    |
213 |     pub fn with_route<R, A>(mut self, route: R) -> Self
    |            ---------- required by a bound in this associated function
214 |     where
215 |         R: IntoToolRoute<S, A>,
    |            ^^^^^^^^^^^^^^^^^^^ required by this bound in `ToolRouter::<S>::with_route`
    = note: the full name for the type has been written to '/Users/traviswilliams/.claude/mcp/surrealmcp/target/release/deps/surrealmcp-d6f0daee80a7cd7f.long-type-4343633861625666557.txt'
    = note: consider using `--verbose` to print the full type name to the console
    = note: this error originates in the attribute macro `tool_router` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `(Tool, fn(..., ...) -> ... {...::use_database}): IntoToolRoute<..., _>` is not satisfied
   --> src/tools/mod.rs:234:1
    |
234 | #[tool_router]
    | ^^^^^^^^^^^^^^ the trait `IntoToolRoute<SurrealService, _>` is not implemented for `(Tool, fn(&SurrealService, {type error}) -> ... {...::use_database})`
    |
    = help: the trait `IntoToolRoute<S, A>` is implemented for `(T, C)`
note: required by a bound in `ToolRouter::<S>::with_route`
   --> /Users/traviswilliams/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rmcp-0.6.4/src/handler/server/router/tool.rs:215:12
    |
213 |     pub fn with_route<R, A>(mut self, route: R) -> Self
    |            ---------- required by a bound in this associated function
214 |     where
215 |         R: IntoToolRoute<S, A>,
    |            ^^^^^^^^^^^^^^^^^^^ required by this bound in `ToolRouter::<S>::with_route`
    = note: the full name for the type has been written to '/Users/traviswilliams/.claude/mcp/surrealmcp/target/release/deps/surrealmcp-d6f0daee80a7cd7f.long-type-18371419701112819520.txt'
    = note: consider using `--verbose` to print the full type name to the console
    = note: this error originates in the attribute macro `tool_router` (in Nightly builds, run with -Z macro-backtrace for more info)

Some errors have detailed explanations: E0063, E0277, E0603.
For more information about an error, try `rustc --explain E0063`.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions