MCP Agent Strategy logo

MCP Agent Strategy

by hjlarry

A Dify Agent strategy plugin that integrates MCP tool calls and common function calls capabilities. It provides seamless integration with MCP tool calls.

View on GitHub

Last updated: N/A

What is MCP Agent Strategy?

This is a Dify Agent strategy plugin designed to integrate with MCP (likely referring to a system facilitating tool calls) to enhance function call capabilities within the Dify Agent framework.

How to use MCP Agent Strategy?

The plugin can be configured with either a single MCP server URL or multiple MCP servers with detailed connection parameters (URL, headers, timeout settings). You can select to modify the source code or using the mcp-proxy to change MCP server from stdio to sse.

Key features of MCP Agent Strategy

  • Full compatibility with official function call agent strategy

  • Seamless integration with MCP tool calls

  • Flexible MCP server connection options

Use cases of MCP Agent Strategy

  • Integrating with external tools via MCP

  • Enhancing agent capabilities with tool call functionality

  • Customizing server connections and parameters

FAQ from MCP Agent Strategy

How do I configure the MCP server URL?

You can configure the server URL in the plugin settings. Provide the server URL like: http://localhost:8000/sse.

How do I configure multiple MCP servers?

You can configure multiple MCP servers by using the JSON configuration. Refer to advanced configuration in README.

Can I customize the headers for MCP server connections?

Yes, the JSON configuration allows you to customize headers for each MCP server connection.

What timeout options are available?

The configuration allows you to set timeout and sse_read_timeout values.

How to change MCP server from stdio to sse ?

using source code modification or using the mcp-proxy.