@mondaydotcomorg/atp-server 0.24.3 → 0.24.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mondaydotcomorg/atp-server",
3
- "version": "0.24.3",
3
+ "version": "0.24.4",
4
4
  "description": "Server implementation for Agent Tool Protocol",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -81,8 +81,10 @@ export class ExplorerService {
81
81
  context.allowedGroups.add(group.name);
82
82
  }
83
83
 
84
- for (const group of this.apiGroups) {
85
- if (!context.allowedGroups.has(group.name)) continue;
84
+ // Iterate already-filtered `allowedGroups` so per-tool rules
85
+ // filter operations WITHIN an allowed group (matches the pattern
86
+ // in `SearchEngine.search`).
87
+ for (const group of allowedGroups) {
86
88
  if (group.functions) {
87
89
  for (const func of group.functions) {
88
90
  context.allowedTools.add(`${group.name}:${func.name}`);
@@ -122,7 +122,13 @@ export async function handleExecute(
122
122
  provenanceHints: requestConfig.provenanceHints,
123
123
  requestContext: {
124
124
  ...requestConfig.requestContext,
125
- headers: ctx.headers,
125
+ // Merge caller-supplied headers with ctx.headers; ctx wins on
126
+ // conflicts so session auth takes precedence over app-layer keys.
127
+ headers: {
128
+ ...(requestConfig.requestContext as { headers?: Record<string, string> } | undefined)
129
+ ?.headers,
130
+ ...ctx.headers,
131
+ },
126
132
  path: ctx.path,
127
133
  method: ctx.method,
128
134
  },