Skip to content

fix: handle CLI metadata flags before discovery#237

Open
xianzuyang9-blip wants to merge 1 commit into
AgentDeskAI:mainfrom
xianzuyang9-blip:codex/browser-tools-cli-metadata-flags
Open

fix: handle CLI metadata flags before discovery#237
xianzuyang9-blip wants to merge 1 commit into
AgentDeskAI:mainfrom
xianzuyang9-blip:codex/browser-tools-cli-metadata-flags

Conversation

@xianzuyang9-blip

Copy link
Copy Markdown

Summary

  • handle --version/-v before creating the MCP server or probing the browser tools server
  • handle --help/-h with a short usage message before startup discovery
  • reuse a single SERVER_VERSION constant for the MCP server metadata and CLI output

Verification

  • npm run build
  • node dist/mcp-server.js --version
  • node dist/mcp-server.js -v
  • node dist/mcp-server.js --help
  • node dist/mcp-server.js -h

Before this change, metadata commands still ran the server discovery loop and printed connection probes/errors when no browser tools server was running.

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.

1 participant