Skip to content

Commit af29c14

Browse files
authored
Fix command documentation for publish (#818)
<!-- Provide a brief summary of your changes --> ## Motivation and Context <!-- Why is this change needed? What problem does it solve? --> The `--file=PATH` pattern does not work. The path is an optional, positional argument not a named option. The `--dry-run` option is not supported. Look at the implementation: https://github.com/modelcontextprotocol/registry/blob/d092dd6390f1c64add83303517c4d00bfc65433e/cmd/publisher/commands/publish.go#L19 ## How Has This Been Tested? Try these options yourself, they are ignored. ## Breaking Changes <!-- Will users need to update their code or configurations? --> ## Types of changes <!-- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> - [ ] 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) - [x] Documentation update ## Checklist <!-- Go over all the following points, and put an `x` in all the boxes that apply. --> - [x] I have read the [MCP Documentation](https://modelcontextprotocol.io) - [x] My code follows the repository's style guidelines - [x] New and existing tests pass locally - [x] I have added appropriate error handling - [x] I have added or updated documentation as needed ## Additional context <!-- Add any other context, implementation notes, or design decisions -->
1 parent 65b96b0 commit af29c14

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

docs/reference/cli/commands.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -215,30 +215,26 @@ For detailed guidance on the publishing process, see the [publishing guide](../.
215215

216216
**Usage:**
217217
```bash
218-
mcp-publisher publish [options]
218+
mcp-publisher publish [PATH]
219219
```
220220

221221
**Options:**
222-
- `--file=PATH` - Path to server.json (default: `./server.json`)
223-
- `--registry=URL` - Registry URL override
224-
- `--dry-run` - Validate without publishing
222+
- `PATH` - Path to server.json (default: `./server.json`)
225223

226224
**Process:**
227225
1. Validates `server.json` against schema
228-
2. Verifies package ownership (see [Official Registry Requirements](../server-json/official-registry-requirements.md))
229-
3. Checks namespace authentication
230-
4. Publishes to registry
226+
2. Publishes the `server.json` to the registry server URL specified in the login token
227+
3. Server: Verifies package ownership (see [Official Registry Requirements](../server-json/official-registry-requirements.md))
228+
4. Server: Checks namespace authentication
229+
5. Server: Publishes to registry
231230

232231
**Example:**
233232
```bash
234233
# Basic publish
235234
mcp-publisher publish
236235

237-
# Dry run validation
238-
mcp-publisher publish --dry-run
239-
240236
# Custom file location
241-
mcp-publisher publish --file=./config/server.json
237+
mcp-publisher publish ./config/server.json
242238
```
243239

244240
### `mcp-publisher logout`

0 commit comments

Comments
 (0)