- 第三方接口
- 平台接口
- DocBot
- 写文档测试用
- 文档中心接口
- 活链服务
- 公司接口
- github接口
- 钉钉接口
- 飞书
- AI接口
- 阿里云接口
- 百度云API
- 百川智能
- 免key接口
- 免key接口 Copy
- 文档脚本
- 云函数
- 文档桥接项目
- IP查询
- 本地脚本
- 泡泡文档
- 扣子
- 泡泡机器人
- 扣子接口
- dify接口
解析插件文件信息
开发中
POST
http://dify.codewave-test.163yun.com/agentportal/api/agent_utils/parsePlugin
请求参数
Header 参数
Content-Type
string
必需
示例值:
application/json;charset=UTF-8
Cookie
string
必需
示例值:
wyy_uid=a9a96e6f-ce0e-46f4-857c-8642ac9400f7; hb_MA-8A05-AAB68D6CBB63_source=wangfeng.user.codewave.163.com; Hm_lvt_ad804f36192e3818dbd1ebda60a7e4d4=1744884758,1745228575,1745312954,1747019031; HMACCOUNT=97A619688B4763AF; Hm_lpvt_ad804f36192e3818dbd1ebda60a7e4d4=1747019361; NICE_CSRF=""; coreagent_authorization=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJDb25zb2xlIEFQSSBQYXNzcG9ydCIsInJvbGUiOiJhZG1pbiIsInVzZXJfaWQiOiJkOWJkYjkyOS0yM2M4LTQ1ZTAtOTZkOC0xNjZlZDUwY2VmYTkiLCJ1c2VyX25hbWUiOiJ3Yi53YW5nZmVuZzA3QG1lc2cuY29ycC5uZXRlYXNlLmNvbSIsImlzcyI6IlNFTEZfSE9TVEVEIiwiZXhwIjoxNzQ3Mzc0NTkzfQ.1yDKx_clU84TpLGfCK1wfNtOqlU19pz3k4LXfu4mIsw; aa5ed0c5-e935-4eae-a159-f762cbe9e5ed=8801664344|aCWCz|aCWCv
DomainName
string
必需
示例值:
agentportal1
LCAP-FRONTEND
string
必需
示例值:
pc
Pragma
string
必需
示例值:
no-cache
TimeZone
string
必需
示例值:
Asia/Shanghai
lcap-calllogic-uuid
string
必需
示例值:
/console/platformsetting/pluginManagement/0
Body 参数application/json
pluginUrl
string
必需
示例
{
"pluginUrl": "https://marketplace.dify.ai/api/v1/plugins/langgenius/google/0.0.9/download"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dify.codewave-test.163yun.com/agentportal/api/agent_utils/parsePlugin' \
--header 'lcap-calllogic-uuid: /console/platformsetting/pluginManagement/0' \
--header 'Content-Type: application/json' \
--data-raw '{"pluginUrl":"https://marketplace.dify.ai/api/v1/plugins/langgenius/google/0.0.9/download"}'
返回响应
🟢200成功
application/json
Body
RequestId
string
必需
Code
integer
必需
Message
string
必需
Data
object
必需
pluginId
string
必需
category
string
必需
name
string
必需
author
string
必需
version
string
必需
label
string
必需
brief
string
必需
introduction
string
必需
packageIdentifier
string
必需
content
string
必需
icon
string
必需
示例
{
"RequestId": "773f58ed-f3ce-4a85-896a-0bbca28cc146",
"Code": 200,
"Message": "",
"Data": {
"pluginId": "arrenxxxxx/mcp_config_during_use",
"category": "tool",
"name": "mcp_config_during_use",
"author": "arrenxxxxx",
"version": "0.0.1",
"label": "{\"en_US\":\"MCP Config During Use\",\"zh_Hans\":\"使用时配置的MCP工具\"}",
"brief": "{\"en_US\":\"Fetch and call tools by MCP protocol through HTTP with SSE transport, configuring during use.\",\"zh_Hans\":\"通过HTTP with SSE传输使用MCP协议来发现和调用工具,使用时配置。\"}",
"introduction": "# MCP Config During Use\r\n\r\nA Dify plugin that allows configuring MCP (Model Context Protocol) connections during use. It enables discovering and calling tools via MCP protocol through HTTP with SSE transport, with configuration done at runtime.\r\n\r\n[English](#mcp-config-during-use) | [中文简体](README_zh.md)\r\n\r\n## Features\r\n\r\n- Configure MCP server connection information for each call separately\r\n- List available tools on MCP servers\r\n- Call specific tools on MCP servers\r\n- Support HTTP headers configuration for authorization and other features\r\n- Configure different timeout parameters\r\n\r\n## Tool List\r\n\r\nThe plugin provides two main tools:\r\n\r\n1. **List MCP Tools (mcp_list_tools)**\r\n - Used to list all available tools on an MCP server\r\n\r\n2. **Call MCP Tool (mcp_call_tool)**\r\n - Used to call a specific tool on an MCP server\r\n\r\n## Usage\r\n\r\n### List MCP Tools\r\n\r\nUse the `mcp_list_tools` tool to list all available tools on a specified MCP server.\r\n\r\nParameters:\r\n- `server_url` (required): The SSE endpoint URL of the MCP Server\r\n- `headers` (optional): HTTP headers in JSON format\r\n- `timeout` (optional): HTTP request timeout in seconds\r\n- `sse_read_timeout` (optional): SSE read timeout in seconds\r\n\r\nExample:\r\n```json\r\n{\r\n \"server_url\": \"http://127.0.0.1:8000/sse\",\r\n \"headers\": \"{\\\"Authorization\\\":\\\"Bearer your_token\\\"}\",\r\n \"timeout\": 60,\r\n \"sse_read_timeout\": 300\r\n}\r\n```\r\n\r\n### Call MCP Tool\r\n\r\nUse the `mcp_call_tool` tool to call a specific tool on an MCP server.\r\n\r\nParameters:\r\n- `server_url` (required): The SSE endpoint URL of the MCP Server\r\n- `headers` (optional): HTTP headers in JSON format\r\n- `timeout` (optional): HTTP request timeout in seconds\r\n- `sse_read_timeout` (optional): SSE read timeout in seconds\r\n- `tool_name` (required): Name of the tool to execute\r\n- `arguments` (required): Tool arguments in JSON format\r\n\r\nExample:\r\n```json\r\n{\r\n \"server_url\": \"http://127.0.0.1:8000/sse\",\r\n \"headers\": \"{\\\"Authorization\\\":\\\"Bearer your_token\\\"}\",\r\n \"timeout\": 60,\r\n \"sse_read_timeout\": 300,\r\n \"tool_name\": \"example_tool\",\r\n \"arguments\": \"{\\\"param1\\\":\\\"value1\\\",\\\"param2\\\":123}\"\r\n}\r\n```\r\n\r\n## Differences from Pre-authorized MCP Tools\r\n\r\nCompared to pre-authorized MCP tools, the main differences of this plugin are:\r\n\r\n1. **Configuration Method**: This plugin allows configuring connection information at call time, while pre-authorized MCP tools require configuration at the provider level\r\n2. **Flexibility**: Different tool calls can connect to different MCP servers\r\n3. **Isolation**: Each application can use its own MCP server configuration without affecting others\r\n4. **Permission Management**: No need for global authorization at the provider level, providing more flexible permission control\r\n\r\n## Requirements\r\n\r\n- Python 3.12 or higher\r\n- Dependencies:\r\n - httpx >= 0.27.0\r\n - httpx-sse >= 0.4.0\r\n - dify_plugin = 0.0.1b76\r\n\r\n## Notes\r\n\r\n- Ensure the provided MCP server URL is valid and supports SSE connections\r\n- In the `headers` and `arguments` parameters, JSON objects need to be converted to strings with properly escaped double quotes\r\n- Adjust timeout parameters as needed, especially for long-running tool calls ",
"packageIdentifier": "arrenxxxxx/mcp_config_during_use:0.0.1@6639610b619840c14ef4612a018b465c29314d888adcfb08fdc562ea4a652ec3",
"content": "{\"type\":\"plugin\",\"name\":\"mcp_config_during_use\",\"org\":\"arrenxxxxx\",\"plugin_id\":\"arrenxxxxx/mcp_config_during_use\",\"label\":{\"en_US\":\"MCP Config During Use\",\"zh_Hans\":\"使用时配置的MCP工具\"},\"brief\":{\"en_US\":\"Fetch and call tools by MCP protocol through HTTP with SSE transport, configuring during use.\",\"zh_Hans\":\"通过HTTP with SSE传输使用MCP协议来发现和调用工具,使用时配置。\"},\"introduction\":\"# MCP Config During Use\\r\\n\\r\\nA Dify plugin that allows configuring MCP (Model Context Protocol) connections during use. It enables discovering and calling tools via MCP protocol through HTTP with SSE transport, with configuration done at runtime.\\r\\n\\r\\n[English](#mcp-config-during-use) | [中文简体](README_zh.md)\\r\\n\\r\\n## Features\\r\\n\\r\\n- Configure MCP server connection information for each call separately\\r\\n- List available tools on MCP servers\\r\\n- Call specific tools on MCP servers\\r\\n- Support HTTP headers configuration for authorization and other features\\r\\n- Configure different timeout parameters\\r\\n\\r\\n## Tool List\\r\\n\\r\\nThe plugin provides two main tools:\\r\\n\\r\\n1. **List MCP Tools (mcp_list_tools)**\\r\\n - Used to list all available tools on an MCP server\\r\\n\\r\\n2. **Call MCP Tool (mcp_call_tool)**\\r\\n - Used to call a specific tool on an MCP server\\r\\n\\r\\n## Usage\\r\\n\\r\\n### List MCP Tools\\r\\n\\r\\nUse the `mcp_list_tools` tool to list all available tools on a specified MCP server.\\r\\n\\r\\nParameters:\\r\\n- `server_url` (required): The SSE endpoint URL of the MCP Server\\r\\n- `headers` (optional): HTTP headers in JSON format\\r\\n- `timeout` (optional): HTTP request timeout in seconds\\r\\n- `sse_read_timeout` (optional): SSE read timeout in seconds\\r\\n\\r\\nExample:\\r\\n```json\\r\\n{\\r\\n \\\"server_url\\\": \\\"http://127.0.0.1:8000/sse\\\",\\r\\n \\\"headers\\\": \\\"{\\\\\\\"Authorization\\\\\\\":\\\\\\\"Bearer your_token\\\\\\\"}\\\",\\r\\n \\\"timeout\\\": 60,\\r\\n \\\"sse_read_timeout\\\": 300\\r\\n}\\r\\n```\\r\\n\\r\\n### Call MCP Tool\\r\\n\\r\\nUse the `mcp_call_tool` tool to call a specific tool on an MCP server.\\r\\n\\r\\nParameters:\\r\\n- `server_url` (required): The SSE endpoint URL of the MCP Server\\r\\n- `headers` (optional): HTTP headers in JSON format\\r\\n- `timeout` (optional): HTTP request timeout in seconds\\r\\n- `sse_read_timeout` (optional): SSE read timeout in seconds\\r\\n- `tool_name` (required): Name of the tool to execute\\r\\n- `arguments` (required): Tool arguments in JSON format\\r\\n\\r\\nExample:\\r\\n```json\\r\\n{\\r\\n \\\"server_url\\\": \\\"http://127.0.0.1:8000/sse\\\",\\r\\n \\\"headers\\\": \\\"{\\\\\\\"Authorization\\\\\\\":\\\\\\\"Bearer your_token\\\\\\\"}\\\",\\r\\n \\\"timeout\\\": 60,\\r\\n \\\"sse_read_timeout\\\": 300,\\r\\n \\\"tool_name\\\": \\\"example_tool\\\",\\r\\n \\\"arguments\\\": \\\"{\\\\\\\"param1\\\\\\\":\\\\\\\"value1\\\\\\\",\\\\\\\"param2\\\\\\\":123}\\\"\\r\\n}\\r\\n```\\r\\n\\r\\n## Differences from Pre-authorized MCP Tools\\r\\n\\r\\nCompared to pre-authorized MCP tools, the main differences of this plugin are:\\r\\n\\r\\n1. **Configuration Method**: This plugin allows configuring connection information at call time, while pre-authorized MCP tools require configuration at the provider level\\r\\n2. **Flexibility**: Different tool calls can connect to different MCP servers\\r\\n3. **Isolation**: Each application can use its own MCP server configuration without affecting others\\r\\n4. **Permission Management**: No need for global authorization at the provider level, providing more flexible permission control\\r\\n\\r\\n## Requirements\\r\\n\\r\\n- Python 3.12 or higher\\r\\n- Dependencies:\\r\\n - httpx >= 0.27.0\\r\\n - httpx-sse >= 0.4.0\\r\\n - dify_plugin = 0.0.1b76\\r\\n\\r\\n## Notes\\r\\n\\r\\n- Ensure the provided MCP server URL is valid and supports SSE connections\\r\\n- In the `headers` and `arguments` parameters, JSON objects need to be converted to strings with properly escaped double quotes\\r\\n- Adjust timeout parameters as needed, especially for long-running tool calls \",\"category\":\"tool\",\"repository\":\"\",\"resource\":{\"memory\":268435456,\"permission\":{}},\"privacy_options\":\"\",\"privacy_policy\":\"\",\"badges\":[],\"plugins\":{\"tools\":[\"provider/mcp_config.yaml\"]},\"endpoint\":{},\"model\":{},\"tool\":{\"credentials_schema\":[],\"identity\":{\"author\":\"arrenxxxxx\",\"name\":\"mcp_config\",\"label\":{\"en_US\":\"MCP Config During Use\",\"zh_Hans\":\"使用时配置的MCP工具\"},\"description\":{\"en_US\":\"Fetch and call tools by MCP protocol through HTTP with SSE transport, configuring during use.\",\"zh_Hans\":\"通过HTTP with SSE传输使用MCP协议来发现和调用工具,使用时配置。\"},\"icon\":\"icon.svg\",\"tags\":[\"utilities\"]},\"tools\":[{\"identity\":{\"name\":\"mcp_list_tools\",\"author\":\"arrenxxxxx\",\"label\":{\"en_US\":\"List MCP Tools\",\"zh_Hans\":\"列出MCP工具\"}},\"description\":{\"human\":{\"en_US\":\"List tools from MCP Server through HTTP with SSE transport.\",\"zh_Hans\":\"通过HTTP with SSE传输来列出MCP服务端工具。\"},\"llm\":\"List all available tools from an MCP Server.\"},\"extra\":{\"python\":{\"source\":\"tools/mcp_list_tools.py\"}},\"parameters\":[{\"name\":\"server_url\",\"type\":\"string\",\"required\":true,\"label\":{\"en_US\":\"Server URL\",\"zh_Hans\":\"服务器地址\"},\"human_description\":{\"en_US\":\"The URL of the MCP Server with SSE endpoint.\",\"zh_Hans\":\"MCP服务器的SSE端点URL。\"},\"llm_description\":\"The URL of the MCP Server with SSE endpoint.\",\"form\":\"llm\"},{\"name\":\"headers\",\"type\":\"string\",\"required\":false,\"label\":{\"en_US\":\"Headers\",\"zh_Hans\":\"请求头\"},\"human_description\":{\"en_US\":\"HTTP headers in JSON format (e.g. {\\\"Authorization\\\":\\\"Bearer token\\\"}).\",\"zh_Hans\":\"HTTP请求头,JSON格式(例如:{\\\"Authorization\\\":\\\"Bearer token\\\"})。\"},\"llm_description\":\"HTTP headers in JSON format (e.g. {\\\"Authorization\\\":\\\"Bearer token\\\"}).\",\"form\":\"llm\"},{\"name\":\"timeout\",\"type\":\"number\",\"required\":false,\"default\":60,\"label\":{\"en_US\":\"Timeout\",\"zh_Hans\":\"超时时间\"},\"human_description\":{\"en_US\":\"HTTP request timeout in seconds.\",\"zh_Hans\":\"HTTP请求超时时间(秒)。\"},\"llm_description\":\"HTTP request timeout in seconds.\",\"form\":\"llm\"},{\"name\":\"sse_read_timeout\",\"type\":\"number\",\"required\":false,\"default\":300,\"label\":{\"en_US\":\"SSE Read Timeout\",\"zh_Hans\":\"SSE读取超时\"},\"human_description\":{\"en_US\":\"SSE read timeout in seconds (time to wait for SSE events).\",\"zh_Hans\":\"SSE读取超时时间(秒)(等待SSE事件的时间)。\"},\"llm_description\":\"SSE read timeout in seconds (time to wait for SSE events).\",\"form\":\"llm\"}]},{\"identity\":{\"name\":\"mcp_call_tool\",\"author\":\"arrenxxxxx\",\"label\":{\"en_US\":\"Call MCP Tool\",\"zh_Hans\":\"调用MCP工具\"}},\"description\":{\"human\":{\"en_US\":\"Call MCP Server tool through HTTP with SSE transport.\",\"zh_Hans\":\"通过HTTP with SSE传输来调用MCP服务端工具。\"},\"llm\":\"Call a tool on an MCP Server.\"},\"extra\":{\"python\":{\"source\":\"tools/mcp_call_tool.py\"}},\"parameters\":[{\"name\":\"server_url\",\"type\":\"string\",\"required\":true,\"label\":{\"en_US\":\"Server URL\",\"zh_Hans\":\"服务器地址\"},\"human_description\":{\"en_US\":\"The URL of the MCP Server with SSE endpoint.\",\"zh_Hans\":\"MCP服务器的SSE端点URL。\"},\"llm_description\":\"The URL of the MCP Server with SSE endpoint.\",\"form\":\"llm\"},{\"name\":\"headers\",\"type\":\"string\",\"required\":false,\"label\":{\"en_US\":\"Headers\",\"zh_Hans\":\"请求头\"},\"human_description\":{\"en_US\":\"HTTP headers in JSON format (e.g. {\\\"Authorization\\\":\\\"Bearer token\\\"}).\",\"zh_Hans\":\"HTTP请求头,JSON格式(例如:{\\\"Authorization\\\":\\\"Bearer token\\\"})。\"},\"llm_description\":\"HTTP headers in JSON format (e.g. {\\\"Authorization\\\":\\\"Bearer token\\\"}).\",\"form\":\"llm\"},{\"name\":\"timeout\",\"type\":\"number\",\"required\":false,\"default\":60,\"label\":{\"en_US\":\"Timeout\",\"zh_Hans\":\"超时时间\"},\"human_description\":{\"en_US\":\"HTTP request timeout in seconds.\",\"zh_Hans\":\"HTTP请求超时时间(秒)。\"},\"llm_description\":\"HTTP request timeout in seconds.\",\"form\":\"llm\"},{\"name\":\"sse_read_timeout\",\"type\":\"number\",\"required\":false,\"default\":300,\"label\":{\"en_US\":\"SSE Read Timeout\",\"zh_Hans\":\"SSE读取超时\"},\"human_description\":{\"en_US\":\"SSE read timeout in seconds (time to wait for SSE events).\",\"zh_Hans\":\"SSE读取超时时间(秒)(等待SSE事件的时间)。\"},\"llm_description\":\"SSE read timeout in seconds (time to wait for SSE events).\",\"form\":\"llm\"},{\"name\":\"tool_name\",\"type\":\"string\",\"required\":true,\"label\":{\"en_US\":\"Tool Name\",\"zh_Hans\":\"工具名称\"},\"human_description\":{\"en_US\":\"Name of the tool to execute.\",\"zh_Hans\":\"要执行的工具的名称。\"},\"llm_description\":\"Name of the tool to execute.\",\"form\":\"llm\"},{\"name\":\"arguments\",\"type\":\"string\",\"required\":false,\"label\":{\"en_US\":\"Arguments\",\"zh_Hans\":\"参数\"},\"human_description\":{\"en_US\":\"Tool arguments (JSON string in the python dict[str, Any] format).\",\"zh_Hans\":\"工具的参数,JSON格式的字符串(Python dict[str, Any]格式)。\"},\"llm_description\":\"Tool arguments (JSON string in the python dict[str, Any] format).\",\"form\":\"llm\"}]}]},\"agent_strategy\":{}}",
"icon": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxzdmcgd2lkdGg9IjY0IiBoZWlnaHQ9IjY0IiB2aWV3Qm94PSIwIDAgNjQgNjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQogIDwhLS0g6IOM5pmvIC0tPg0KICA8cmVjdCB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHJ4PSIxNiIgZmlsbD0iIzNGNTFCNSIvPg0KICANCiAgPCEtLSDnroDmtIHnmoTphY3nva7ov57mjqXnur8gLS0+DQogIDxwYXRoIGQ9Ik0xOCAyMEMxOCAyMCAyOCAzMiA0MCAyMCIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSI1IiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4NCiAgPHBhdGggZD0iTTE4IDQ0QzE4IDQ0IDI4IDMyIDQwIDQ0IiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPg0KICANCiAgPCEtLSDlsI/phY3nva7lhYPntKAgLS0+DQogIDxwYXRoIGQ9Ik00MCAyMEw0NiAyNiIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSI1IiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4NCjwvc3ZnPiA="
}
}