Skip to content

MCP inspect: Code generation from strings disallowed for this context #4

@malthejorgensen

Description

@malthejorgensen

Description

Smithery does not detect tools in my MCP server (https://mcp.agentwork.so).

Steps to Reproduce

  1. Add the MCP server https://mcp.agentwork.so
  2. Smithery does not find the available tools and reports the error Code generation from strings disallowed for this context

Expected Behavior

I'd except it to find the 9 tools listed in my server. My server is using v1.26.0 (latest) of the official MCP Python SDK.

Actual Behavior

When Smithery inspects my MCP server I get:

No capabilities found. Warning: Failed to list tools: Code generation from strings disallowed for this context

Specifically Code generation from strings disallowed for this context looks like Smithery is running in a JS environment where --disallow-code-generation-from-strings is set. My tool descriptions look fairly benign so I wouldn't think they caused this error.

Additional Context

Screenshots

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions