Skip to content

fix: align MCP tools and types with V2 API spec#6

Merged
dadaism merged 1 commit into
mainfrom
fix/align-v2-api-spec
Feb 19, 2026
Merged

fix: align MCP tools and types with V2 API spec#6
dadaism merged 1 commit into
mainfrom
fix/align-v2-api-spec

Conversation

@dadaism

@dadaism dadaism commented Feb 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fix pod portsexpose field (array of {port, protocol} objects instead of plain numbers)
  • Fix pod envVarsenvironmentVars field name to match API
  • Remove pod_stop tool (V2 API only supports pause/resume, no stop)
  • Fix endpoint IDs from string to number (int64 in API spec)
  • Remove type field from registry credential create (not in V2 API)
  • Add region and initializationCommand params to pod_create
  • Enrich Pod, Endpoint, EndpointWorker response types with all API fields
  • Update default base URL to api.test.yottalabs.ai

Test plan

  • TypeScript compiles cleanly (tsc --noEmit)
  • All 33 tests pass
  • Manual test: connect to test API and verify pod_list, endpoint_list work

🤖 Generated with Claude Code

Compared the Swagger spec at api.test.yottalabs.ai against the
implementation and fixed all mismatches that would cause runtime failures:

- Pod: rename ports→expose (array of {port, protocol}), envVars→environmentVars
- Pod: remove pod_stop (V2 API only has pause/resume), add region and initializationCommand params
- Endpoint: change ID type from string to number (API uses int64)
- Registry: remove type field from create request (not in V2 API)
- Config: update default base URL to api.test.yottalabs.ai
- Enrich Pod/Endpoint/EndpointWorker response types with all API fields

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dadaism dadaism merged commit 546c32a into main Feb 19, 2026
1 check passed
@dadaism dadaism deleted the fix/align-v2-api-spec branch February 19, 2026 06:52
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