Skip to content

Claude/hermes mcp servers c dr8 b#2

Merged
BillJr99 merged 2 commits into
mainfrom
claude/hermes-mcp-servers-cDR8B
May 25, 2026
Merged

Claude/hermes mcp servers c dr8 b#2
BillJr99 merged 2 commits into
mainfrom
claude/hermes-mcp-servers-cDR8B

Conversation

@BillJr99
Copy link
Copy Markdown
Owner

No description provided.

claude added 2 commits May 25, 2026 02:41
Always-on utility tools registered at startup — no YAML config needed.
Gives LLMs read-only access to a configurable files directory (default:
.playwright-mcp) so they can retrieve screenshots and snapshots produced
by package providers such as the Playwright MCP server.

New files
  builtin_tools.py — list_files + get_file handlers; _safe_resolve
      prevents path-traversal (../); encoding=auto/text/base64

Changes
  config.py       — FILES_DIR constant (MCPPROXY_FILES_DIR env var)
  server.py       — register_builtin_tools() called at startup before
                    YAML providers; exported for tests
  Dockerfile      — COPY builtin_tools.py
  README.md       — layout, intro, Part 9 tutorial, parameter tables

Tests (31 new, 175 total)
  tests/test_builtin_tools.py — 26 tests: empty dir, file listing,
      sorted entries, subdirectory drill-down, path-traversal rejection,
      text/base64/auto encoding, PNG roundtrip, size reporting
  tests/test_server.py        — 5 tests: register_builtin_tools exports,
      mcp.tool called twice, tool names, getfile requires path

https://claude.ai/code/session_016EMphWWMguzwVrfAYvJFSX
After the initial tool call + Ollama summary, the script now:

Step 10 — calls mcpproxy-listfiles (root of files dir, default
  .playwright-mcp) and mcpproxy-getfile for every file found.
  A single Python block handles both MCP calls with proper SSE
  unwrapping and session-ID headers; arbitrary file names are
  safe because Python manages the HTTP calls directly.

Step 11 — asks Ollama to summarise what was produced:
  - text files (JSON snapshots, HTML, logs): contents included,
    truncated at 4000 chars each
  - binary files (PNG screenshots etc.): name + size noted,
    base64 payload omitted from prompt
  - errors: surfaced inline
  - relates file contents back to the original tool call

If no files are found the extra steps are skipped cleanly.

https://claude.ai/code/session_016EMphWWMguzwVrfAYvJFSX
@BillJr99 BillJr99 merged commit ab38b9e into main May 25, 2026
2 checks passed
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.

2 participants