mirror of
https://git.mirrors.martin98.com/https://github.com/bytedance/deer-flow
synced 2025-10-04 15:56:33 +08:00
69 lines
1.0 KiB
Markdown
69 lines
1.0 KiB
Markdown
# MCP Integrations
|
|
|
|
## Example of MCP Server Configuration
|
|
|
|
```json
|
|
{
|
|
"mcpServers": {
|
|
"mcp-github-trending": {
|
|
"transport": "stdio",
|
|
"command": "uvx",
|
|
"args": [
|
|
"mcp-github-trending"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
```
|
|
|
|
## APIs
|
|
|
|
### Get metadata of MCP Server
|
|
|
|
**POST /api/mcp/server/metadata**
|
|
|
|
For `stdio` type:
|
|
```json
|
|
{
|
|
"transport": "stdio",
|
|
"command": "npx",
|
|
"args": ["-y", "tavily-mcp@0.1.3"],
|
|
"env": {"TAVILY_API_KEY": "tvly-dev-xxx"}
|
|
}
|
|
```
|
|
|
|
For `sse` type:
|
|
```json
|
|
{
|
|
"transport": "sse",
|
|
"url": "http://localhost:3000/sse",
|
|
"env": {
|
|
"API_KEY": "value"
|
|
}
|
|
}
|
|
```
|
|
|
|
### Chat Stream
|
|
|
|
**POST /api/chat/stream**
|
|
|
|
```json
|
|
{
|
|
...
|
|
"mcp_settings": {
|
|
"servers": {
|
|
"mcp-github-trending": {
|
|
"transport": "stdio",
|
|
"command": "uvx",
|
|
"args": ["mcp-github-trending"],
|
|
"env": {
|
|
"MCP_SERVER_ID": "mcp-github-trending"
|
|
},
|
|
"enabled_tools": ["get_github_trending_repositories"],
|
|
"add_to_agents": ["researcher"]
|
|
}
|
|
}
|
|
},
|
|
}
|
|
```
|