ref-tools-mcp icon indicating copy to clipboard operation
ref-tools-mcp copied to clipboard

Issue with gemini

Open 3453-315h opened this issue 1 year ago • 3 comments

Hi there, the whole morning ive been trying to troubleshoot a issue, which i thought was gemini cli issue,

yet have narrowed it down to MCP server > Ref - Up-To-Date Docs

when i enable this and open gemini cli

the cli sits ⠴ Initializing...

and just sits there as soon as i del the Ref MCP server

and reopen gemini cli it loads

this is the debug in gemini cli (when the Ref MCP Server is enabled and on in docker)

[DEBUG] [MCP STDERR (MCP_DOCKER)]: - Reading configuration...

  • Reading registry from registry.yaml
  • Reading catalog from [docker-mcp.yaml] [DEBUG] [MCP STDERR (MCP_DOCKER)]: - Reading config from config.yaml [DEBUG] [MCP STDERR (MCP_DOCKER)]: - Reading tools from tools.yaml
  • Reading secrets [cyreslab-ai-shodan.api_key exa.api_key gitlab.personal_access_token glif.api_token obsidian.api_key ref.REF_API_KEY] [DEBUG] [MCP STDERR (MCP_DOCKER)]: - Configuration read in 949.6737ms [DEBUG] [MCP STDERR (MCP_DOCKER)]: - Using images:
  • mcp/cyreslab-ai-shodan@sha256:f99f2d2d69555aafcc67229ea7b757db57073d501ed1d60beb47049d3f60e08c
  • mcp/exa@sha256:61f88e24df5bc379133f97feb7d5865c2531c56759c8a34f8cd88e02bf33867d
  • mcp/gitlab@sha256:a1b8571a210a3c8b17b288498d287cd1c3512c10519330ea71ca48e559e78917
  • mcp/glif@sha256:3f93ddceeb993ffddcdceb8cae573b3c93d04ebe7fa61abb630d246c516fc99f
  • mcp/obsidian@sha256:0eba4c05742ad35faeb91eca40b792454d440d86449c9f1b3cb6c387a510651b
  • mcp/playwright@sha256:fd43bc74a3ad644c4dc935a45a3f311a3a93fb4d0ef9a752427601dee01bc217
  • mcp/ref-tools-mcp@sha256:ee5129e642802f06c25643b0607a6d68066d07ca8db14c9ae69b13954d19e219 [DEBUG] [MCP STDERR (MCP_DOCKER)]: > Images pulled in 42.5528ms
  • Those servers are enabled: cyreslab-ai-shodan, exa, find-a-domain, gitlab, glif, hugging-face, obsidian, playwright, ref
  • Listing MCP tools... [DEBUG] [MCP STDERR (MCP_DOCKER)]: - Running mcp/ref-tools-mcp with [run --rm -i --init --security-opt no-new-privileges --cpus 1 --memory 2Gb --pull never -l docker-mcp=true -l docker-mcp-tool-type=mcp -l docker-mcp-name=ref -l docker-mcp-transport=stdio -e REF_API_KEY]
    • Running mcp/exa with [run --rm -i --init --security-opt no-new-privileges --cpus 1 --memory 2Gb --pull never -l docker-mcp=true -l docker-mcp-tool-type=mcp -l docker-mcp-name=exa -l docker-mcp-transport=stdio -e EXA_API_KEY]
    • Running mcp/cyreslab-ai-shodan with [run --rm -i --init --security-opt no-new-privileges --cpus 1 --memory 2Gb --pull never -l docker-mcp=true -l docker-mcp-tool-type=mcp -l docker-mcp-name=cyreslab-ai-shodan -l docker-mcp-transport=stdio -e SHODAN_API_KEY]
    • Running mcp/gitlab with [run --rm -i --init --security-opt no-new-privileges --cpus 1 --memory 2Gb --pull never -l docker-mcp=true -l docker-mcp-tool-type=mcp -l docker-mcp-name=gitlab -l docker-mcp-transport=stdio -e GITLAB_PERSONAL_ACCESS_TOKEN]
    • Running mcp/obsidian with [run --rm -i --init --security-opt no-new-privileges --cpus 1 --memory 2Gb --pull never -l docker-mcp=true -l docker-mcp-tool-type=mcp -l docker-mcp-name=obsidian -l docker-mcp-transport=stdio -e OBSIDIAN_API_KEY -e OBSIDIAN_HOST]
    • Running mcp/playwright with [run --rm -i --init --security-opt no-new-privileges --cpus 1 --memory 2Gb --pull never -l docker-mcp=true -l docker-mcp-tool-type=mcp -l docker-mcp-name=playwright -l docker-mcp-transport=stdio]
    • Running mcp/glif with [run --rm -i --init --security-opt no-new-privileges --cpus 1 --memory 2Gb --pull never -l docker-mcp=true -l docker-mcp-tool-type=mcp -l docker-mcp-name=glif -l docker-mcp-transport=stdio -e GLIF_API_TOKEN -e IGNORE_SAVED_GLIFS] [DEBUG] [MCP STDERR (MCP_DOCKER)]: > gitlab: (9 tools) [DEBUG] [MCP STDERR (MCP_DOCKER)]: > cyreslab-ai-shodan: (5 tools) (1 resources) [DEBUG] [MCP STDERR (MCP_DOCKER)]: > exa: (1 tools) [DEBUG] [MCP STDERR (MCP_DOCKER)]: > glif: (10 tools) (1 prompts) (3 resources) [DEBUG] [MCP STDERR (MCP_DOCKER)]: > find-a-domain: (2 tools) [DEBUG] [MCP STDERR (MCP_DOCKER)]: > obsidian: (12 tools) [DEBUG] [MCP STDERR (MCP_DOCKER)]: > playwright: (21 tools) [DEBUG] [MCP STDERR (MCP_DOCKER)]: > hugging-face: (9 tools) (4 prompts)

the above is where it sits, as soon as i remove the Ref mcp server it loads

[DEBUG] [MCP STDERR (MCP_DOCKER)]: - Reading configuration...

  • Reading registry from registry.yaml [DEBUG] [MCP STDERR (MCP_DOCKER)]: - Reading catalog from [docker-mcp.yaml] [DEBUG] [MCP STDERR (MCP_DOCKER)]: - Reading config from config.yaml
  • Reading tools from tools.yaml
  • Reading secrets [obsidian.api_key cyreslab-ai-shodan.api_key exa.api_key gitlab.personal_access_token glif.api_token] [DEBUG] [MCP STDERR (MCP_DOCKER)]: - Configuration read in 2.6830015s

i had a debug from earlier on during the day which i didnt save, yet it should some string wit the prefix Ref Infront of it, can you please double check to see if the 100% please.

yesterday i added exa and Ref and since yesterday been having issues with docker and the cli, yet please just double your code, cause there might be a issue with it.

3453-315h avatar Nov 24 '25 11:11 3453-315h

also am aware of this docker issue - Watching for configuration updates...

  • Connecting to OAuth notification stream at http://localhost/notify/notifications/channel/external-oauth

Initialized in 3.1916398s Start stdio server

  • Failed to connect to OAuth notifications: Get "http://localhost/notify/notifications/channel/external-oauth": dial unix \.\pipe\dockerBackendApiServer: connect: No connection could be made because the target machine actively refused it.
  • Client initialized [email protected] [DEBUG] [MCP STDERR (MCP_DOCKER)]: - OAuth notification monitor reconnecting...
  • Connecting to OAuth notification stream at http://localhost/notify/notifications/channel/external-oauth [DEBUG] [MCP STDERR (MCP_DOCKER)]: - Failed to connect to OAuth notifications: Get "http://localhost/notify/notifications/channel/external-oauth": dial unix \.\pipe\dockerBackendApiServer: connect: No connection could be made because the target machine actively refused it. *****which does not the cause of the gemini cli loading process to get stuck.

3453-315h avatar Nov 24 '25 11:11 3453-315h

and fyi i can reproduce this issue 100% of the time when i enable the ref MCP Server in docker and then try open gemini cli.

3453-315h avatar Nov 24 '25 11:11 3453-315h

Thanks for reporting! Added to the backlog to fix Docker Ref.

To unblock you, could you use Ref via the streamable-http endpoint which support OAuth?

MatthewDailey avatar Nov 24 '25 17:11 MatthewDailey