Skip to content

More control for (MCP) tool calls #15338

@sgraband

Description

@sgraband

Feature Description:

Currently, all MCP Tool calls are accessible and need to be added manually to prompt templates. Users should have the ability to control which tool calls are available, ask for confirmations before executing certain calls, and be more confident working with MCP server.

  • In the MCP config view, there can be an option field to allow/disallow certain tool calls.
  • Introduce the following options for tool calls:
    1. allowed: tool call can be executed anytime.
    2. onConfirmation: the tool call needs to be confirmed before its being run (this should probably be the default).
    3. disallowed: never run this tool call, do not show it in auto-completion, etc.
      We can utilize the shortcut to add all the tool calls to the prompt template, as added with Allow to add all MCP functions via prompt fragment #15270. Similarly, the MCP config view introduced in Add MCP Server config view to AI Configuration #15280 can be used to incorporate these changes.

Bear in mind, this will likely require reworks to the tool invocation mechanism but it would also enable the reuse of the same approach for internal tools if desired.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementissues that are enhancements to current functionality - nice to haves

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions