Skip to content

Commit 945581f

Browse files
Merge pull request #577 from mulesoft/W-21177886-add-headersToPropogate-and-auth-required-ie
W-21177886 Add headersToPropagate property
2 parents 235531a + b509381 commit 945581f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

modules/ROOT/pages/af-project-files.adoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,9 @@ tools:
342342
name: talent-pool-mcp # Exchange asset ID of MCP server. By default, the groupId for this asset is the same as that in exchange.json.
343343
allowed: # Allowlist specific tools
344344
- TalentPoolMcpServer.match_email_to_address
345+
headersToPropagate:
346+
- Authorization
347+
- X-Correlation-Id # Optional. Header names to forward when invoking this tool.
345348
- mcp:
346349
ref:
347350
name: slack-mcp
@@ -358,6 +361,7 @@ The `tools` element has these properties.
358361
|`mcp.ref` |The reference to the MCP server that is available to this broker. |String |See <<mcp-servers-section,MCP Servers>> |Yes
359362
|`mcp.connection.ref` |Connection reference. |String |See <<connections-section,Connections>> |No
360363
|`mcp.allowed` |Filters the list of tools advertised by the MCP server to only those in this list. Mutually exclusive with 'denied'. |Array of strings |Array of tool name strings |No
364+
|`mcp.headersToPropagate` |The names of the request headers to propagate when the broker invokes this tool. |Array of strings |Array of header name strings |No
361365
|===
362366

363367
[[links-section]]
@@ -376,6 +380,9 @@ links:
376380
ref:
377381
name: hr-agent # Exchange asset ID of the linked agent. By default, the groupId for this asset is the same as that in exchange.json.
378382
namespace: # Optional. If the asset was defined in a different business group, set the corresponding groupId here.
383+
headersToPropagate:
384+
- Authorization
385+
- X-Correlation-Id # Optional. Header names to forward when invoking this agent.
379386
- agent:
380387
ref:
381388
name: badging-agent
@@ -415,6 +422,7 @@ The `links` element has these properties.
415422
|`links[].agent.ref.name` |Exchange asset ID of the linked agent. This references the `assetId` that the agent has in Anypoint Exchange, not the human-friendly name.|String|Asset ID string (for example, "hr-agent", "crm-agent"). By default, the groupId for this asset is the same as that in exchange.json|Yes
416423
|`links[].agent.ref.namespace` |Business group ID (groupId) where the asset is defined. Use this when the asset was defined in a different business group than the current one.|String|Group ID string. To find the groupId, look in the `dependencies` section in `exchange.json`|No
417424
|`links[].agent.connection.ref` |Connection reference.|String|See <<connections-section,Connections>>. This references a connection defined in the `connections` section|No
425+
|`links[].agent.headersToPropagate` |The names of the request headers to propagate when the broker invokes this agent.|Array of strings|Array of header name strings |No
418426
|===
419427

420428

0 commit comments

Comments
 (0)