Skip to content

Conversation

@domdomegg
Copy link
Member

@domdomegg domdomegg commented Aug 28, 2025

Summary

  • Improved command structure and organization for the MCP Publisher CLI
  • Enhanced readability and maintainability of publisher commands
  • Cleaned up publish and edit handler logic

This builds on the previous cleanup work to further streamline the publisher interface.

This also works as part of #89

- Added `init` command to create a `server.json` template with detected values from the environment.
- Introduced `login` command for authenticating with the registry using various methods (GitHub, DNS, HTTP).
- Created `logout` command to clear saved authentication tokens.
- Developed `publish` command to publish the `server.json` file to the registry.
- Refactored main application logic to utilize the new command structure.
- Removed legacy `server.json` file and integrated its creation into the `init` command.
- Enhanced error handling and user feedback throughout the commands.

:house: Remote-Dev: homespace
🏠 Remote-Dev: homespace
🏠 Remote-Dev: homespace
Copy link
Member

@rdimitrov rdimitrov left a comment

Choose a reason for hiding this comment

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

LGTM 👍

One small suggestion is I think we could move the publisher CLI under cmd/. My thinking is that it’s not really a tool in the same sense as the other helpers in the tools/ folder (e.g. validation or dev utilities) and so it's a good practice to have it under cmd/.

@domdomegg
Copy link
Member Author

Nice, ty! Will move under cmd in next PR

@domdomegg domdomegg merged commit b810634 into main Aug 29, 2025
6 checks passed
@domdomegg domdomegg deleted the adamj/better-publisher branch August 29, 2025 11:44
domdomegg added a commit that referenced this pull request Aug 29, 2025
Move the publisher CLI from tools/publisher/ to cmd/publisher/ as it's a proper application rather than a development utility. Update all references including:
- Makefile build and clean targets
- README.md documentation links
- VS Code launch configuration
- Integration test script
- FAQ documentation
- Go import paths

Addresses feedback from PR #324.
domdomegg added a commit that referenced this pull request Aug 29, 2025
## Summary

Move the publisher CLI from `tools/publisher/` to `cmd/publisher/` as
it's a proper application rather than a development utility.

This addresses feedback from @rdimitrov in PR #324 that the publisher
CLI should be under `cmd/` since it's not really a tool in the same
sense as other helpers in the `tools/` folder.

## Changes

- Moved `tools/publisher/` directory to `cmd/publisher/`
- Updated Makefile build and clean targets
- Updated README.md documentation links
- Updated VS Code launch configuration
- Updated integration test script
- Updated FAQ documentation
- Fixed Go import paths in publisher code

---------

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: adam jones <domdomegg@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.

3 participants