Skip to content

fix(http): support auth_tools: null and static headers to override auto-generated auth#19

Open
JacobSampson wants to merge 2 commits intouniversal-tool-calling-protocol:mainfrom
JacobSampson:fix/auth-tools-null-disable-auth
Open

fix(http): support auth_tools: null and static headers to override auto-generated auth#19
JacobSampson wants to merge 2 commits intouniversal-tool-calling-protocol:mainfrom
JacobSampson:fix/auth-tools-null-disable-auth

Conversation

@JacobSampson
Copy link

@JacobSampson JacobSampson commented Jan 31, 2026

Summary

When converting OpenAPI specs to UTCP tools, setting auth_tools: null in the HttpCallTemplate now explicitly disables auto-generated auth placeholders. Additionally, headers are now attached to tool calls.

This allows users to handle authentication via custom headers instead of the auto-generated auth configuration.

Changes

  • Support auth_tools: null in the HttpCallTemplate
  • Pass headers to tool calls from the HttpCallTemplate

Previously, when loading an OpenAPI spec (e.g. Datadog), the converter may auto-generate undesired auth placeholders (e.g. ${datadog_API_KEY_500}, ${datadog_API_KEY_614}). These variables were required even when auth may be handled differently via custom headers.

Set auth_tools: null to explicitly disable auto-generated auth

{
  "name": "datadog",
  "call_template_type": "http",
  "url": "https://raw.githubusercontent.com/DataDog/datadog-api-client-python/refs/heads/master/.generator/schemas/v2/openapi.yaml",
  "http_method": "GET",
   // Manually disable auto-generated auth tools, relying on a pre-defined set of headers
  "auth_tools": null,
  "headers": {
    "DD-APPLICATION-KEY": "xxx",
    "DD-API-KEY": "xxx"
  }
}

When converting OpenAPI specs to UTCP tools, setting auth_tools: null
in the HttpCallTemplate now explicitly disables auto-generated auth
placeholders (e.g., ${datadog_API_KEY_500}).

This allows users to handle authentication via custom headers instead
of the auto-generated auth configuration.

Changes:
- Pass auth_tools from HttpCallTemplate to OpenApiConverter
- Update OpenApiConverterOptions interface to accept Auth | null
- Add null check in _extractAuth to return undefined when auth disabled
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

@JacobSampson JacobSampson changed the title fix(http): support auth_tools: null to disable auto-generated auth fix(http): support auth_tools: null and static headers to override auto-generated auth Jan 31, 2026
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 2 files (changes from recent commits).

Prompt for AI agents (all issues)

Check if these issues are valid — if so, understand the root cause of each and fix them.


<file name="packages/http/package.json">

<violation number="1" location="packages/http/package.json:2">
P2: Package name was renamed to @aprovan/utcp-http but the repo still references @utcp/http in tsconfig paths, dependencies, and imports; this will break builds unless the rename is propagated or reverted.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

{
"name": "@utcp/http",
"version": "1.1.0",
"name": "@aprovan/utcp-http",
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot Jan 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Package name was renamed to @aprovan/utcp-http but the repo still references @utcp/http in tsconfig paths, dependencies, and imports; this will break builds unless the rename is propagated or reverted.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At packages/http/package.json, line 2:

<comment>Package name was renamed to @aprovan/utcp-http but the repo still references @utcp/http in tsconfig paths, dependencies, and imports; this will break builds unless the rename is propagated or reverted.</comment>

<file context>
@@ -1,6 +1,6 @@
 {
-  "name": "@utcp/http",
-  "version": "1.1.0",
+  "name": "@aprovan/utcp-http",
+  "version": "1.1.1",
   "description": "HTTP utilities for UTCP",
</file context>
Fix with Cubic

@JacobSampson JacobSampson force-pushed the fix/auth-tools-null-disable-auth branch from f658735 to 7dc1273 Compare January 31, 2026 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant