Skip to content
Back to skills

Rivardoad9 Source Mcp Server Integration

BSecurity

Use when judging or wiring an MCP server into Hermes.

  • 81 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 23, 2026
ai-agentsjavascriptpythonrustgojavashellbashnoderails

Works with

  • terminal
  • cli
  • mcp

Security analysis

B75/100
  • criticalExfiltrates credentials via HTTP — exact pattern from Snyk ToxicSkills study

Pro scans all 9 files and shows the line behind each finding

Scanned November 23, 2026

npx -y skills add jiayaoqijia/cryptoskill --skill rivardoad9-source-mcp-server-integration --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rivardoad9 Source Mcp Server Integration?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rivardoad9 Source Mcp Server Integration
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/jiayaoqijia-rivardoad9-source-mcp-server-integration/badge)](https://www.skillsdirectory.com/skills/jiayaoqijia-rivardoad9-source-mcp-server-integration)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mcp-server-integration
description: Use when judging or wiring an MCP server into Hermes.
---

# Integrating (or rejecting) an MCP server / agent toolkit

Trigger: user drops a repo or npm package that ships an MCP server ("pelajari ini,
bagus nggak buat kita apply?") or asks to hook a new tool into Hermes. Also fires when
the user hands over a remote MCP endpoint (a URL plus its llms.txt) and asks you to
connect it — for that shape skip straight to §4b. Also fires when the ask is judgment
rather than wiring: "is there a plugin/skill that makes you stronger?", or a
pasted tweet/thread of agent frameworks — see
`references/hermes-plugin-catalog-evaluation.md`. Goal: a verdict backed by
measurements, then the cheapest reversible wiring step.

## 1. Inventory what it really is (measured, not quoted)
- `<cli> --version` + `<cli> --help` → real subcommand count. README badges drift.
- `<cli> doctor --json` and `<cli> capabilities --json` → per-provider
  `available` vs `unsupported_host` **on this host**. A capability that is off is
  usually a missing engine/OS, not a bad repo — separate "capability missing" from
  "workflow missing" before writing the verdict.
- Note which subset works with zero extra installs (often the static/analysis part).

## 2. Prove it with one real run
Run the cheapest real command against a small LOCAL target and record numbers
(files scanned / parsed / nodes / findings / explicit limitations). That is the
evidence; the README is not.

## 3. Measure the MCP surface before trusting the catalog
```bash
python3 scripts/mcp_stdio_probe.py --grep javascript,web,artifact -- npx -y <pkg>@<ver> mcp
```
Prints `serverInfo`, protocolVersion, the real advertised tool count and the tools
matching your lane. README/catalog numbers drift from runtime (seen: catalog 131 vs
125 advertised) — quote the measured number.

## 4. Decide scope, then wire it
- Every registered tool costs context in every session. Register, then subset:
  `hermes mcp add <name> --command <cmd> --args <args...>` → `hermes mcp configure`
  (toggle which tools load) → verify with `hermes mcp list` and `hermes mcp test`.
- Check `hermes mcp catalog` first; a curated entry is a one-liner install.
- Prefer a pinned exact version in the registration for reproducibility.

## 4b. Remote HTTP MCP with OAuth on a headless host
When the server is a URL and the sign-in happens in a browser, `hermes mcp add <name>
--url <url> --auth oauth` is NOT enough on a gateway/VPS box: with no TTY it fails to
build the OAuth provider and saves the entry with **no `auth` key and `enabled: false`**.
Repair it with config sets instead of re-running add:
```bash
hermes config set mcp_servers.<name>.auth oauth
hermes config set mcp_servers.<name>.enabled true
hermes config set mcp_servers.<name>.oauth.timeout 1800   # callback window, default 300 s
hermes config get mcp_servers.<name>                       # confirm the keys landed
```
Then run the login in a **PTY background** session, harvest the authorization URL from
its output, hand that URL to the user in chat, and submit the redirect URL they paste
back into the same waiting process:
```
terminal(command="hermes mcp login <name>", pty=true, background=true)   # then poll for the URL
process_manage(action="submit", session_id=…, data="<redirect URL the user sent>")
```
Check `/.well-known/oauth-authorization-server` first: a `device_authorization_endpoint`
means `hermes mcp login <name> --flow device` is the low-friction path and you never need
the callback. Full recipe, discovery checks, timeout maths and consent/scope rules:
`references/remote-oauth-mcp-headless.md`.

## 4c. A third-party `setup` command: dry-run the plan, then narrow the scope
Packages that ship `npx <pkg> setup` write into *every* agent they detect — config
entries, skills, sometimes plugin hooks. Treat that installer as a change to the
user's whole machine, not to one file.

1. Read the manifest without executing it: `npm view <pkg> --json` for
   repo/license/maintainers/provenance and `npm pack <pkg>@<ver>` + `tar xzf` to read
   `package.json` (`bin`, `scripts`, `dependencies`). A package whose tarball is
   600 bytes and has no `repository` field is not the thing you think it is.
2. Ask for the plan, never the apply:
   `npx -y <pkg>@<ver> setup --dry-run --all-detected --format json` →
   `plannedActions` enumerates every file it will touch and which backup it writes
   (`config.yaml.<pkg>.backup`). Most such CLIs also accept `--client <id>`.
3. Apply only the client the user named. "Connect it to this agent" is NOT consent to
   also rewrite `~/.claude.json` or drop skills into other agents — apply
   `--client hermes --yes` and *report* the clients you deliberately left alone.
4. Verify twice: the package's own `doctor --format json` (should say `aligned`, skill
   version, tool count) **and** an independent stdio `initialize`/`tools/list`
   handshake. "Installed" is not "answering".

Pitfall: engine gates make a good package look broken. `setup` can hard-refuse when
`engines.node` needs e.g. `>=22.23.4` and the host runs `22.23.2`. Do NOT move the
default node — live services run on it. `nvm install <exact-ver>` then prefix that one
command with `PATH=~/.nvm/versions/node/v<ver>/bin:$PATH`.

## 5. Resource + supply-chain guardrails (this is where verdicts flip)
- `free -h` + swap BEFORE any analysis. A big bundle OOMs the tool at the default
  ~1GB heap: retry with `NODE_OPTIONS=--max-old-space-size=<n>`.
- If the host also runs live services (trading engine, gateway, cron), heavy
  analysis there can starve them → recommendation becomes "run it off-box, connect
  over remote MCP" instead of local install.
- Output volume: evidence dumps hit tens of MB (67MB JSON for a 12MB app) → always
  `--filter-output` / `--token-limit` when the output feeds an agent's context.
- Before installing: `jq '.scripts' package.json` for `postinstall|preinstall|prepare`,
  grep for `telemetry|analytics|sentry|posthog|mixpanel`, list outbound domains in
  `src/`, read `install.sh` (what it downloads, whether it asks consent), count
  vendored submodules. Those are the real risk surface, not the license.

## 6. Report shape
Verdict first and specific ("worth it for lane X, useless for Y, don't run it on
this box because Z"), then measured evidence, then honest limits, then the reversible
step you recommend. Never say "good repo" without naming a lane it serves.

## Pitfalls
- Figma MCP (`https://mcp.figma.com/mcp`): OAuth works end-to-end with the headless paste-back flow above. Quota is per **seat+plan**, not per token: Starter or View/Collab seat = **20 tool calls PER MONTH**; Professional with Full/Dev seat = 200/day. A single whoami+create_session+metadata sequence can burn the whole Starter month — check the seat with `whoami` before planning any multi-step Figma work, and treat a `use_figma` write as unavailable until the quota resets or the seat is upgraded.
- Don't judge capability by absent engines — say which workflows still work.
- Context cost, not tool count, is the number that decides. Measure it with
  `scripts/mcp_context_cost.py` before registering: 229 tools came out at ~279k chars
  (~70k tokens) of schema, and still ~8.4k tokens per turn in deferred-catalog form —
  paid on every turn of every session whether the tool is used or not. Past ~100 tools,
  register with `enabled: false` and flip it on for the task that needs it; say out loud
  what the standing cost is instead of letting the user discover it in a bill.
- `pkill -f "<pattern>"` matches the shell running the command (self-kill, exit -15).
  Use the bracket trick: `pkill -f "chrome[-]headless"`.
- Long inline one-liners (grep+jq+curl chained) get blocked by the parser → write a
  script file and run that.
- Killing a render/analysis parent leaves orphaned children (e.g. `chrome-headless`)
  eating CPU — clean them up before the next run.
- Set `oauth.timeout` BEFORE starting an interactive login: the flow's bound is
  `max(connect_timeout, oauth.timeout + 15)` read at flow start, so raising it while a
  flow is already waiting changes nothing — kill and restart the login instead.
- Two login flows for the same server cannot coexist: the second fails with "callback
  port already in use". Kill the waiting pty session before retrying.
- `hermes mcp add` is misleading on a headless host (prompts "Save config anyway?" then
  saves a broken, disabled entry). Always `hermes config get mcp_servers.<name>` right
  after adding to confirm `auth` and `enabled` are actually present.
- Never hand-edit or patch `~/.hermes/config.yaml` for any of this: the write is refused
  by the tooling, and `hermes config set <dotted.key> <value>` handles nested keys too.

## Support files
- `scripts/mcp_stdio_probe.py` — stdio handshake + real tool inventory for any MCP server.
- `scripts/mcp_context_cost.py` — measures a server's context cost (full schema vs
  deferred catalog, token estimates, heaviest tools) over stdio or remote HTTP.
- `references/remote-oauth-mcp-headless.md` — registering, authorizing and verifying a
  remote HTTP MCP server with OAuth when the user signs in from their own browser.
- `references/hermes-plugin-catalog-evaluation.md` — judging a plugin or a list of
  frameworks instead of an MCP server: `hermes plugins search --json` (whole catalog),
  shelf filtering by the user's surface, and the framework-list trap.
- `references/hermes-plugin-install-verification.md` — after the verdict: non-interactive
  `hermes plugins install --enable --yes-deps`, telling enabled from live (log grep, not
  `hermes gateway status`), the per-plugin proof for memory-rewind / memory-shield /
  skill-retrieval / toolaria, and their traps (terminal is never rescued; BM25 misses
  Indonesian queries until the skill carries `triggers:`).

Files in this skill

  • LICENSE1 KB
  • SKILL.md9.7 KB
  • SOURCE.md379 B
  • TRUST.auto.yaml2 KB
  • references/hermes-plugin-catalog-evaluation.md6.5 KB
  • references/hermes-plugin-install-verification.md5.6 KB
  • references/remote-oauth-mcp-headless.md5.9 KB
  • scripts/mcp_context_cost.py4.1 KB
  • scripts/mcp_stdio_probe.py4.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.