Skip to content

[REQUEST] Model Context Protocol #780

@datGryphon

Description

@datGryphon

Description

I could not find any issues relating to MCP or Model Context Protocol.

It would be great to be able to expand the ReAct / ReWOO Tools for knowledge retrieval with tools exposed through Model Context Protocol.

Among other things, I would like to use this with the MCP servers for SearxNG and Perplexica for improved / private web context retrieval.

I have not spent too much time researching the idea yet, but it looks like langchain has already done the work of adapting FastMCP to Langchain consumable tools.

I am interested in approaching the problem, but want to make sure I am in sync before attempting a PR. Is there a current project roadmap or other community development channel where I should be asking this question?

Without getting too far into the weeds, my idea was to add a new MCP tab to the Resources page where the user can View or Add the configuration for MCP clients that expose consumable Tools. Then, on the Settings page those tool collections would be made available as individual items that can be toggled within the Tools for knowledge retrieval section of the Reasoning Settings tab.

Image

Summary

Expand the ReAct / ReWOO Tools for knowledge retrieval with tools exposed through the MCP protocol.

Basic Example

Consume the tools from example server which is what I use for exposing SearxNG to my OpenHands dev environment.

Drawbacks

Additional UI complexity and visual information to process.

Additional information

Model Context Protocol can also be used for exposing other shared resources like datasources and prompt templates that this solution does not currently consider.

Additional enhancements could include:

  • Toggle the availability of individual tools through a new menu on the Chat page
  • Expose reusable prompts / templates for pre-populating conversation text box
  • Enable/disable human-in-the-loop confirmation
  • Support elicitation for interactive tools

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions