Skip to content

[Bug]: MCP servers added in one profile are accessible in another profile. #4280

Closed as not planned

Description

@vaclavmartin

Bug Description

I have added MCP servers while running hermes under profile A. Switched to profile B, and those MCP servers are available, but profiles should be isolated.

Steps to Reproduce

launch hermes profile A
add MCP server (ask Hermes A to add it)
quite
launch hermes profile B
ask if MCP is available

Expected Behavior

full isolation of configuration between profiles

Actual Behavior

na

Affected Component

Setup / Installation

Messaging Platform (if gateway-related)

No response

Operating System

Mac Os X

Python Version

3.11

Hermes Version

0.6.0

Relevant Logs / Traceback

Root Cause Analysis (optional)

No response

Proposed Fix (optional)

No response

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

Activity

  1. teknium1 commented on Jun 10, 2026

    @teknium1
    Collaborator

    Automated hermes-sweeper review: this appears implemented on current main.

    Evidence:

    • hermes_cli/main.py:336 pre-parses --profile / -p and sets HERMES_HOME before later Hermes imports.
    • hermes_cli/config.py:595 resolves config.yaml from get_hermes_home(), making config reads/writes profile-scoped.
    • hermes_cli/mcp_config.py:87 saves mcp_servers through load_config() / save_config(), so hermes mcp add writes into the active profile's config.
    • tools/mcp_tool.py:2542 loads MCP servers through the same profile-scoped config path during discovery.

    I also verified with a read-only smoke check that changing HERMES_HOME changes get_config_path() from one profile directory to the other on current main. Thanks for the original report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    sweeper:implemented-on-mainSweeper: behavior already present on current maintype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions