mcp: create_deploy gains private + allowed_ips for Pro-tier private deploys (v0.10.0)#5
Merged
Merged
Conversation
…eploys (v0.10.0) Track C of the private-deploys feature — pairs with Track A (backend api/internal/handlers/deploy.go) which is shipping in parallel. Adds two optional fields to the create_deploy MCP tool: - private: boolean — restrict deploy to IPs in allowed_ips - allowed_ips: string[] — IP / CIDR allowlist enforced at the Ingress Forwarded to POST /deploy/new as multipart form fields. The tool description carries the tier-gate note (Pro+ required; hobby returns 402 with agent_action). get_deployment + list_deployments surface private + allowed_ips back to the agent. Lockfile also refreshed (was stale from the @instant/mcp → instanode-mcp package rename in a prior commit). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Track C of the private-deploys feature (pairs with Track A's backend on
api/internal/handlers/deploy.go). Extends the MCPcreate_deploytoolwith two optional fields so AI coding agents can spin up private apps
without touching the dashboard.
private: boolean— restrict the deploy to IPs inallowed_ipsallowed_ips: string[]— IP / CIDR allowlist (["1.2.3.4", "10.0.0.0/8"])POST /deploy/newas multipart form fieldsget_deployment+list_deploymentssurfaceprivate+allowed_ipsback to the agent
with
agent_actionBumps version to
0.10.0(additive feature, no breaking changes).Test plan
npm test— all 10 tests pass (7 pre-existing + 3 new):tools/listadvertisesprivate(boolean) +allowed_ips(array)create_deploydescription includes the Pro-tier gate notecreate_deployaccepts{ private: true, allowed_ips: [...] }and forwards through (no Zod rejection)npm run build— clean TypeScript compile/deploy/newonce that PR landsCoordination with Track A
Track A is shipping the backend in parallel. The shared contract is:
If Track A renames
allowed_ips→allowed_cidrs, reconcile post-mergewith a one-line schema rename in
src/index.tsand theform.append("allowed_ips", …)line insrc/client.ts. The MCP tooldescription references "IPs" not "CIDRs"; minor copy fix accompanies that
rename. This assumption is documented in the inline JSDoc on both
CreateDeployParamsandDeployment.Out of scope (flagged for the operator)
NPM_TOKENis still pending operator rotation(task v0.9.0 — add create_deploy + 4 deploy management tools #4). When the operator rotates it, run the existing
prepublishOnly→npm publishflow. The version is already bumped to0.10.0.Lockfile note
package-lock.jsonalso refreshed — it was stale (carried the old@instant/mcpname from before theinstanode-mcprename landed). Thediff is a metadata correction, not a dep change.
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com