mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-29 11:01:18 +03:00
Feat/add headers to custom mcp (#4581)
* add headers to custom mcp * Refactor MCP fetch method and update CustomMCP documentation to include variable usage in headers
This commit is contained in:
@@ -27,6 +27,16 @@ For example, you have a variable called "var1":
|
||||
}
|
||||
}
|
||||
\`\`\`
|
||||
|
||||
For example, when using SSE, you can use the variable "var1" in the headers:
|
||||
\`\`\`json
|
||||
{
|
||||
"url": "https://api.example.com/endpoint/sse",
|
||||
"headers": {
|
||||
"Authorization": "Bearer {{$vars.var1}}"
|
||||
}
|
||||
}
|
||||
\`\`\`
|
||||
`
|
||||
|
||||
class Custom_MCP implements INode {
|
||||
|
||||
Reference in New Issue
Block a user