Skip to content

Conversation

@Yuan325
Copy link

@Yuan325 Yuan325 commented Nov 15, 2025

Add flags for publish subcommand.

Motivation and Context

We'll need to use the --file flag since we store our server.json in a folder.

The options that was noted in the docs here was not implemented. This PR added the 3 flags that was stated.

How Has This Been Tested?

Tested locally

Breaking Changes

No breaking changes. The existing way of defining file mcp-publisher publish server.json will still work.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

Fixes #767

@Yuan325
Copy link
Author

Yuan325 commented Nov 18, 2025

@domdomegg @rdimitrov I am unable to add reviewers to this PR (and wasn't sure who should I request for reviews). Please take a look, thank you!! :)

Yuan325 added a commit to googleapis/genai-toolbox that referenced this pull request Nov 18, 2025
## Description

Temporarily move `server.json` out from the `.registry/` folder. The
mcp-publisher library do not support the `--file` flag yet. A
[PR](modelcontextprotocol/registry#771) was
submitted to add flags for publish subcommand.

## PR Checklist

> Thank you for opening a Pull Request! Before submitting your PR, there
are a
> few things you can do to make sure it goes smoothly:

- [x] Make sure you reviewed

[CONTRIBUTING.md](https://github.com/googleapis/genai-toolbox/blob/main/CONTRIBUTING.md)
- [x] Make sure to open an issue as a

[bug/issue](https://github.com/googleapis/genai-toolbox/issues/new/choose)
  before writing your code! That way we can discuss the change, evaluate
  designs, and agree on the general idea
- [x] Ensure the tests and linter pass
- [x] Code coverage does not decrease (if any source code was changed)
- [x] Appropriate docs were updated (if necessary)
- [x] Make sure to add `!` if this involve a breaking change

🛠️ Fixes #<issue_number_goes_here>
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.

publish subcommand's --file flag not working

1 participant