Skip to content

[CLI] feat: adding in non-interactive mode for mcp#15426

Merged
brookemosby merged 17 commits intomainfrom
brooke/NIMCP
Mar 11, 2026
Merged

[CLI] feat: adding in non-interactive mode for mcp#15426
brookemosby merged 17 commits intomainfrom
brooke/NIMCP

Conversation

@brookemosby
Copy link
Copy Markdown
Contributor

@brookemosby brookemosby commented Mar 9, 2026

Note

Low Risk Change

CLI feature adds non-interactive mode for MCP command with new --clients flag, input validation, and conditional output formatting - no auth, security, billing, or schema changes.

  • New --clients CLI flag with validation for MCP client selection
  • Non-interactive mode outputs JSON instead of interactive prompts
  • Test coverage added for new non-interactive behavior

Risk assessment for commit a8cde89.

@brookemosby brookemosby requested review from a team as code owners March 9, 2026 22:52
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Mar 9, 2026

🦋 Changeset detected

Latest commit: a8cde89

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
vercel Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 9, 2026

📦 CLI Tarball Ready

The Vercel CLI tarball for this PR is now available!

Quick Test

You can test this PR's CLI directly by running:

npx https://vercel-9fmi1yrvs.vercel.sh/tarballs/vercel.tgz --help

Use in vercel.json

To use this CLI version in your project builds, add to your vercel.json:

{
  "build": {
    "env": {
      "VERCEL_CLI_VERSION": "vercel@https://vercel-9fmi1yrvs.vercel.sh/tarballs/vercel.tgz"
    }
  }
}

Python Runtime Wheel

A vercel-runtime wheel was also built for this PR.
To use in your Python project builds, also set this environment variable:

VERCEL_RUNTIME_PYTHON="vercel-runtime @ https://vercel-9fmi1yrvs.vercel.sh/tarballs/vercel_runtime-0.8.0.dev1773265312+a8cde89-py3-none-any.whl"

Python Workers Wheel

A vercel-workers wheel was also built for this PR.
To use in your Python project builds, also set this environment variable:

VERCEL_WORKERS_PYTHON="vercel-workers @ https://vercel-9fmi1yrvs.vercel.sh/tarballs/vercel_workers-0.1.0.dev1773265312+a8cde89-py3-none-any.whl"

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 9, 2026

🧪 Unit Test Strategy

Comparing: 3af5407a8cde89 (view diff)

Strategy: Affected packages only

✅ Only testing packages that have been modified or depend on modified packages.

Affected packages - 1 (3%)
  1. vercel
Unaffected packages - 39 (98%)
  1. @vercel-internals/get-package-json
  2. @vercel/backends
  3. @vercel/build-utils
  4. @vercel/cervel
  5. @vercel/cli-auth
  6. @vercel/client
  7. @vercel/config
  8. @vercel/detect-agent
  9. @vercel/edge
  10. @vercel/elysia
  11. @vercel/error-utils
  12. @vercel/express
  13. @vercel/fastify
  14. @vercel/firewall
  15. @vercel/frameworks
  16. @vercel/fs-detectors
  17. @vercel/functions
  18. @vercel/gatsby-plugin-vercel-builder
  19. @vercel/go
  20. @vercel/h3
  21. @vercel/hono
  22. @vercel/hydrogen
  23. @vercel/koa
  24. @vercel/nestjs
  25. @vercel/next
  26. @vercel/node
  27. @vercel/oidc
  28. @vercel/oidc-aws-credentials-provider
  29. @vercel/python
  30. @vercel/python-analysis
  31. @vercel/redwood
  32. @vercel/related-projects
  33. @vercel/remix-builder
  34. @vercel/routing-utils
  35. @vercel/ruby
  36. @vercel/rust
  37. @vercel/static-build
  38. @vercel/static-config
  39. examples

Results

  • Unit tests: Only affected packages will run unit tests
  • E2E tests: Running in parallel via E2E Tests workflow
  • Type checks: Only affected packages will run type checks

This comment is automatically generated based on the affected testing strategy

Comment thread packages/cli/src/util/agent-output.ts
Copy link
Copy Markdown
Contributor

@Melkeydev Melkeydev left a comment

Choose a reason for hiding this comment

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

i think we should also add some tests here for this new feature just to help catch any other gotchas

Comment thread packages/cli/src/commands/mcp/index.ts
Comment thread packages/cli/src/commands/mcp/index.ts Outdated
Comment thread packages/cli/src/commands/mcp/index.ts
Comment thread packages/cli/src/commands/mcp/mcp.ts Outdated
Copy link
Copy Markdown
Contributor

@Melkeydev Melkeydev left a comment

Choose a reason for hiding this comment

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

LGTM

@brookemosby brookemosby enabled auto-merge (squash) March 11, 2026 21:42
@brookemosby brookemosby merged commit 6976acd into main Mar 11, 2026
344 of 348 checks passed
@brookemosby brookemosby deleted the brooke/NIMCP branch March 11, 2026 22:06
ricardo-agz pushed a commit that referenced this pull request Mar 12, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @vercel/python@6.23.0

### Minor Changes

- Run Django's `collectstatic` during Vercel builds, serving static
files from the CDN and excluding them from the Lambda bundle.
([#15391](#15391))

### Patch Changes

- Leave 10mb of space for src code before packing lambda.
([#15475](#15475))

## vercel@50.32.3

### Patch Changes

- Adding in noninteractive mode for login
([#15446](#15446))

- adding in non-interactive mode for mcp
([#15426](#15426))

- Updated dependencies
\[[`3af5407a5737ae431310ffd114119752fc5a2355`](3af5407),
[`b22731536f46d3f617a79e4faf923431d957a277`](b227315)]:
    -   @vercel/python@6.23.0
    -   @vercel/static-build@2.9.0

## @vercel/frameworks@3.21.1

### Patch Changes

- [go] remove experimental flag on "go" frameworks preset
([#15435](#15435))

## @vercel/fs-detectors@5.10.3

### Patch Changes

- Updated dependencies
\[[`04433cfd686bf27e3f63bc895c15f7e75918b0d7`](04433cf)]:
    -   @vercel/frameworks@3.21.1

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

2 participants