Repository navigation
Closed
Description
Problem
A member can have a pool upstream configured directly in the agent, outside devstack, e.g. after following a service's own setup hint:
claude mcp add --scope user --transport http nuts-timetrack https://timetrack.nuetzliche.it/mcp
The hub does not notice. Observed on 2026-11-06 (devstack 0.40.0):
- The pool offered
nuts-timetrack; in the hub'supstreams.tomlit was neither accepted nor declined, the member had never decided on it. - The agent had the tools anyway, from its own entry in
~/.claude.json(mcpServers, user scope), asmcp__nuts-timetrack__*. - Both hooks of a pool skill gated on
upstream = "nuts-timetrack"(Distribute agent hooks (session start, prompt pattern) from the pool, like skills #453) stayed silent for the whole session: the session-start reminder and the end-of-session prompt hook.devstack hook session-startprinted nothing, exit 0. The model skipped the skill, and the time entries came out wrong (missing reference, wrong tags). - Nothing pointed at the cause. Finding it took reading
agent-hooks.json,upstreams.toml,~/.claude.jsonand the shell history.
Accepting the upstream in the dashboard as well would give the agent the same tools twice (mcp__nuts-timetrack__* and mcp__devstack__nuts_timetrack__*).
Proposal
The hub compares the pool's upstreams with the MCP servers configured in each enabled agent (Claude Code: mcpServers in ~/.claude.json, global and per project, plus .mcp.json; Codex: config.toml), matched by URL (normalised: scheme, host, path, no trailing slash), not by name.
On a match:
- Dashboard: the upstream shows "already configured directly in Claude Code (user scope)". One action: accept the upstream and remove the own entry (with confirmation), or keep the own entry.
devstack doctor: a warning naming the agent, the scope, the entry and the command that removes it (claude mcp remove --scope user <name>).- Hooks gated on that upstream (Distribute agent hooks (session start, prompt pattern) from the pool, like skills #453): either count the direct configuration as present, or at least do not stay silent.
devstack hookcould print a one-line note instead of nothing, e.g. "the upstream nuts-timetrack is configured outside devstack; accept it in the hub so this hook applies".
Option 3 alone would have prevented this case. 1 and 2 avoid the double tools and make the state visible.
Related
- Distribute agent hooks (session start, prompt pattern) from the pool, like skills #453 (hooks from the pool, gated on an upstream)
- MCP proxy in the hub: one login per upstream, the same tools in every harness #316 (MCP proxy in the hub)
Metadata
Metadata
Assignees
Labels
No labels
Activity
feat: notice a pool's upstream an agent has set up itself