Skip to content

Conversation

@majiayu000
Copy link

Summary

  • Added proper flag parsing using Go's flag package
  • mcp-publisher publish --file path/to/server.json now works correctly
  • Maintains backward compatibility with positional arguments
  • Improved error messages to show actual file path when custom file not found

Test

# Before: Error: server.json not found
mcp-publisher publish --file .registry/server.json

# After: reads .registry/server.json correctly

Fixes #767

Added proper flag parsing using the flag package so that
'mcp-publisher publish --file path/to/server.json' works correctly.

Also improved error messages to show the actual file path when
a custom file is specified but not found.

Fixes modelcontextprotocol#767

Signed-off-by: majiayu000 <1835304752@qq.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.

publish subcommand's --file flag not working

1 participant