Call an MCP tool
Paso
mcp-callcontrolefectos externosCalls one tool of an MCP connection with the values you give it and uses its answer in the steps after it. No AI decides anything.
De un vistazo
| Propiedad | Valor |
|---|---|
| Nombre del paso | mcp-call |
| Recurso | ClusterStep (lumen.ai/v1alpha1) |
| Grupo de la paleta, categoría | control, connections |
| Créditos | 1 crédito cada vez que tiene éxito |
| Efectos externos | sí Cambia algo fuera de Lumen, así que un reintento pregunta antes y una prueba muestra lo que haría en lugar de hacerlo. |
| La instalación debe aportar | mcp |
Entradas
| Propiedad | Valor |
|---|---|
| Necesita | nada |
| Produce | fields |
| Trabaja sobre | item un documento cada vez |
Necesita y Produce son tipos de datos (file, text, fields, email). El editor ofrece un paso solo donde lo que necesita ya está en el camino. Consulta Documentos y datos.
Salidas
Un nodo posterior se refiere a una salida como {nodeId.field} en un texto, o nodeId.field en una condición.
| Salida | Tipo |
|---|---|
result | object |
text | string |
isError | boolean |
Ajustes
Se definen bajo config: en el nodo del flujo. Los ajustes de texto pueden contener marcadores de posición como {nodeId.field}.
| Ajuste | Tipo | Valor por defecto | Descripción |
|---|---|---|---|
connectionobligatorio | string | - | Connection is the MCP connection to call: a custom MCP server, or one from the gallery such as Jira, GitHub or DeepWiki.minLength 1; maxLength 253 |
toolobligatorio | string | - | Tool is the tool's name on that server.minLength 1; maxLength 128; pattern `^[A-Za-z0-9_.-]+$` |
arguments | object | - | Arguments are the values the tool takes. Text may hold placeholders such as {n1.invoiceNumber}. |
timeoutSeconds | integer | 30 | TimeoutSeconds is how long the call may take; 30 by default, 120 at most.minimum 1; maximum 120 |
toolSchemaHash | string | - | ToolSchemaHash marks the version of the tool this step was set up with, and is filled in when you pick the tool. If the server changes the tool later, the step stops and asks you to open it again.pattern `^sha256:[0-9a-f]{64}$` |
readOnly | boolean | - | ReadOnly is filled in when you pick a tool that says it only reads. Such a step runs for real when you test it, and a retry does not ask first. If the tool stops being read-only, the step refuses to run. |
approvalHours | integer | - | ApprovalHours is how long the call waits for a workspace admin to approve it, when the connection asks first for this tool: from 1 to 168 hours, 24 by default. A rejection, or no decision in time, fails the step.minimum 1; maximum 168 |
approvers | list of any | - | Approvers are who the call is sent to for approval: the console (the workspace admins), phones on a WhatsApp connection, email addresses. Unset uses the connection's approvers for the tool, else the console.maxItems 10 |
approvers[].whatsapp | object | - | |
approvers[].whatsapp.connectionobligatorio | string | - | Connection is the WhatsApp connection to send from.maxLength 63 |
approvers[].whatsapp.toobligatorio | list of string | - | To are the phones, with their country code, that may decide.minItems 1; maxItems 10 |
approvers[].whatsapp.reasonOnReject | boolean | - | ReasonOnReject asks the person why after they tap Reject; their next message is the rejection's note. |
approvers[].whatsapp.reasonPrompt | string | - | ReasonPrompt is what they are asked; empty is a short default.maxLength 200 |
approvers[].email | object | - | |
approvers[].email.toobligatorio | list of string | - | minItems 1; maxItems 10 |
approvers[].email.connection | string | - | Connection is a Microsoft 365 connection to send as; empty sends from Lumen's own address.maxLength 63 |
El JSON Schema completo de estos ajustes: mcp-call.schema.json.
Ejemplo
config
arguments:
question: How do I run the tests?
repoName: '{repo}'
connection: deepwiki
tool: ask_question
Úsalo en un flujo
Un nodo que ejecuta mcp-call va bajo spec.nodes de un Flow. Dale cualquier id y enumera en next los ids de los nodos siguientes.
flow.yaml (spec.nodes)
- id: mcp-call
stepRef: {name: mcp-call}
config:
arguments:
question: How do I run the tests?
repoName: '{repo}'
connection: deepwiki
tool: ask_question
¿Te ha resultado útil esta página?