דלג לתוכן הראשי

קריאה לכלי MCP

שלבmcp-callcontrolהשפעה חיצונית

קורא לכלי אחד של חיבור MCP עם הערכים שתזינו ומשתמש בתשובה שלו בשלבים שאחריו. שום AI לא מחליט כאן.

במבט אחד​

מאפייןערך
שם השלבmcp-call
משאבClusterStep (lumen.ai/v1alpha1)
קבוצה וקטגוריהcontrol, connections
קרדיטים1 קרדיט בכל פעם שהוא מצליח
השפעה חיצוניתכן הוא משנה משהו מחוץ ל-Lumen, ולכן ניסיון חוזר שואל קודם, ובדיקה מראה מה הוא היה עושה במקום לעשות את זה.
ההתקנה צריכה לספקmcp

קלט​

מאפייןערך
צריךכלום
מפיקfields
עובד עלitem מסמך אחד בכל פעם

״צריך״ ו״מפיק״ הם סוגי נתונים (file, text, fields, email). העורך מציע שלב רק במקום שבו מה שהוא צריך כבר נמצא במסלול. ראו מסמכים ונתונים.

פלט​

צומת מאוחר יותר מפנה לפלט כ-{nodeId.field} בטקסט, או כ-nodeId.field בתנאי.

פלטסוג
resultobject
textstring
isErrorboolean

הגדרות​

מגדירים תחת config: בצומת של התהליך. הגדרות טקסט יכולות להכיל מצייני מקום כמו {nodeId.field}.

הגדרהסוגברירת מחדלתיאור
connectionחובה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
toolחובהstring-Tool is the tool's name on that server.minLength 1; maxLength 128; pattern `^[A-Za-z0-9_.-]+$`
argumentsobject-Arguments are the values the tool takes. Text may hold placeholders such as {n1.invoiceNumber}.
timeoutSecondsinteger30TimeoutSeconds is how long the call may take; 30 by default, 120 at most.minimum 1; maximum 120
toolSchemaHashstring-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}$`
readOnlyboolean-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.
approvalHoursinteger-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
approverslist 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[].whatsappobject-
approvers[].whatsapp.connectionחובהstring-Connection is the WhatsApp connection to send from.maxLength 63
approvers[].whatsapp.toחובהlist of string-To are the phones, with their country code, that may decide.minItems 1; maxItems 10
approvers[].whatsapp.reasonOnRejectboolean-ReasonOnReject asks the person why after they tap Reject; their next message is the rejection's note.
approvers[].whatsapp.reasonPromptstring-ReasonPrompt is what they are asked; empty is a short default.maxLength 200
approvers[].emailobject-
approvers[].email.toחובהlist of string-minItems 1; maxItems 10
approvers[].email.connectionstring-Connection is a Microsoft 365 connection to send as; empty sends from Lumen's own address.maxLength 63

ה-JSON Schema המלא של ההגדרות: mcp-call.schema.json.

דוגמה​

config
arguments:
question: How do I run the tests?
repoName: '{repo}'
connection: deepwiki
tool: ask_question

שימוש בתהליך​

צומת שמריץ את mcp-call נכנס תחת spec.nodes של Flow. תנו לו כל מזהה, ורשמו ב-next את מזהי הצמתים הבאים.

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