Skip to content

Add execute_code to MCP tools #9689

@tigretigre

Description

@tigretigre

Description

I have a setup where there are simultaneously MCP consumers that can modify the notebook and other consumers that can just query. I would like to run MCP with both the tools for querying and code-mode for modification, but the current setup has you choose one or the other. I would like to just make "code-mode" a tool amongst all the others, so that we can run both at the same time, and add a "mutates" attribute to each tool to indicate whether it should be permitted for read-only clients or not.

Are you willing to submit a PR? (You must receive approval from the team before submitting a PR.)

  • Yes

Alternatives

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions