feat(cli): MCP server management CLI + OAuth 2.1 PKCE auth#2465
Merged
feat(cli): MCP server management CLI + OAuth 2.1 PKCE auth#2465
Conversation
Add hermes mcp add/remove/list/test/configure CLI for managing MCP
server connections interactively. Discovery-first 'add' flow connects,
discovers tools, and lets users select which to enable via curses checklist.
Add OAuth 2.1 PKCE authentication for MCP HTTP servers (RFC 7636).
Supports browser-based and manual (headless) authorization, token
caching with 0600 permissions, automatic refresh. Zero external deps.
Add ${ENV_VAR} interpolation in MCP server config values, resolved
from os.environ + ~/.hermes/.env at load time.
Core OAuth module from PR #2021 by @imnotdev25. CLI and mcp_tool
wiring rewritten against current main. Closes #497, #690.
8afebf0 to
b7091f9
Compare
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Salvage of #2021 by @imnotdev25, rewritten against current main. Closes #497, #690.
hermes mcp CLI
hermes mcp add <name> --url/--command— discovery-first install: connect, discover tools, interactive selection via curses, save confighermes mcp remove <name>— remove config + clean up OAuth tokenshermes mcp list— table view with transport, tool count, statushermes mcp test <name>— connection test with latency and tool listinghermes mcp configure <name>— reconnect and toggle enabled toolsOAuth 2.1 PKCE for MCP HTTP servers
~/.hermes/mcp-tokens/with 0600 permissions + auto-refreshEnv var interpolation
${ENV_VAR}syntax in MCP server config values, resolved from os.environ +~/.hermes/.envChanges from original PR
_normalize_mcp_input_schema()(original PR removed it, breaking existing tests)205 MCP-specific tests pass. 5721 total pass.