Skip to content

feat: make resource name required on all provisioning tools#7

Merged
mastermanas805 merged 2 commits into
masterfrom
feat/mandatory-resource-naming
May 15, 2026
Merged

feat: make resource name required on all provisioning tools#7
mastermanas805 merged 2 commits into
masterfrom
feat/mandatory-resource-naming

Conversation

@mastermanas805
Copy link
Copy Markdown
Member

Summary

  • The InstaNode API is making the resource name field strictly required on all provisioning endpoints. This updates the MCP server to match.
  • The six create_* resource tools (create_postgres, create_cache, create_nosql, create_queue, create_storage, create_webhook) already required name via the shared nameArg Zod schema — no change needed there.
  • create_deploy was the only provisioning tool with an optional name. Its Zod schema is now required (no .optional()), the tool description states name is required, and the client always appends name to the multipart form.
  • No create_stack/stack-creation tool exists in this MCP server, so nothing to change there.
  • client.ts: CreateDeployParams.name is now a required string.
  • Version bump 0.9.0 -> 0.10.0 (package.json, server.json, User-Agent header).
  • README: create_deploy row and Container deployment section note name is required.
  • Synced the stale package-lock.json (was @instant/mcp@0.4.0).

Test plan

  • npm install + npm run build (tsc) — clean
  • npm test (test.sh) — all 8 tests pass, including create_postgres rejects empty name and the create_deploy smoke test (passes name)
  • Manual JSON-RPC check: create_deploy with no name is now rejected by Zod schema validation

🤖 Generated with Claude Code

mastermanas805 and others added 2 commits May 16, 2026 01:43
The InstaNode API now requires the `name` field on every provisioning
endpoint. The six create_* resource tools (postgres, cache, nosql, queue,
storage, webhook) already required `name`; this makes `create_deploy`'s
`name` required too — it was the only optional one.

- create_deploy: `name` schema is no longer .optional(); description
  clarifies it is required.
- client.ts: CreateDeployParams.name is now required; createDeploy always
  appends `name` to the multipart form.
- Bump 0.9.0 -> 0.10.0 (package.json, server.json, User-Agent).
- README: note `name` required on create_deploy.
- Sync stale package-lock.json (was @instant/mcp@0.4.0).

Build (tsc) and test.sh both pass.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Reconcile mandatory resource naming with master's create_deploy
private/allowed_ips params. create_deploy now requires `name` AND
supports private deploys + IP allowlists. Version bumped to 0.11.0
(next minor over master's 0.10.1). package-lock.json regenerated.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@mastermanas805 mastermanas805 merged commit 794db5b into master May 15, 2026
1 check passed
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