agentleFS
ethosagentethosagent/ethos/skills/framework/native-mcp/SKILL.md

native-mcp

Skill22 starsChanged 9 days agoMITView on GitHub

Use MCP (Model Context Protocol) servers from inside an Ethos personality. Connect to stdio or streamable-http servers, list their tools, call them safely, and understand the personality-scoped allowlist. The skill teaches MCP usage — Ethos's runtime already provides the client.

12 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use webhook-subscriptions, hermes-agent and 4 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Tommy-ywSkill

    webhook-subscriptions

    Create and manage webhook subscriptions for event-driven agent activation, or for direct push notifications (zero LLM cost). Use when the user wants external services to trigger agent runs OR push notifications to chats.

    Also in 3 projects that use this

  • Tommy-ywSkill

    hermes-agent

    Complete guide to using and extending Hermes Agent — CLI usage, setup, configuration, spawning additional agents, gateway platforms, skills, voice, tools, profiles, and a concise contributor reference. Load this skill when helping users configure Hermes, troubleshoot issues, spawn agent instances, or make code contributions.

    Also in 4 projects that use this

  • AnthropicSkill

    docx

    Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and text extraction. When Claude needs to work with professional documents (.docx files) for: (1) Creating new documents, (2) Modifying or editing content, (3) Working with tracked changes, (4) Adding comments, or any other document tasks

    Also in 4 projects that use this

  • AnthropicSkill

    pdf

    Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.

    Also in 4 projects that use this

  • +1 more from Tommy-yw
  • +1 more from anthropics

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 2 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 12 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After attach + a fresh turn:

    line 71
  2. Very specific:

    Assuming community servers are vetted: No Ethos command checks an MCP server's package against osv.dev.

    line 116
  3. Distinctive:

    Server config is per-machine; attachment is per-personality: Don't conflate them.

    line 120
  4. Very specific:

    Tool name format is mcp__<server>__<tool>: Never edit that prefix; the runtime depends on it.

    line 122
  5. Very specific:

    Add the servers they want available with ethos mcp add <name> (see ethos mcp presets), which writes ~/.ethos/mcp.json.

    line 126
  6. Very specific:

    Verify with ethos personality show <id> — the character sheet lists the attached MCP servers.

    line 128

“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Native MCP

Ethos ships an MCP client built into the runtime. This skill is the operator's guide to using it from a personality — what's configured, what's attached, what's reachable, and how to debug when a tool isn't showing up.

When to use this skill

  • A user asks "can we connect to the <X> MCP server?"
  • A personality references mcp__<server>__<tool> and the agent can't find it.
  • An operator runs ethos personality mcp <id> and is unsure which servers to attach.

When NOT to use this skill

  • Writing an MCP server. That's server-author work — out of scope here.
  • The MCP server is fundamentally broken (won't start). Diagnose the server's own logs first.

Mental model

MCP has two layers in Ethos:

  1. Configuration — what servers Ethos can reach. Lives in ~/.ethos/mcp.json, written by ethos mcp add <name>. Configured per machine, shared across personalities.
  2. Attachment — which servers a given personality is allowed to use. Lives in the personality's config.yaml under mcp_servers:. Per personality, per repo.

A server has to be both configured and attached to the active personality before its tools show up in the agent loop. The boot-time log MCP: 0 of N server(s) attached to "<personality>" means the operator has configured servers but the personality has no mcp_servers allowlist — fix at the attachment layer.

Step 1 — see what's configured

ethos personality mcp <personality-id>

This lists every server in ~/.ethos/mcp.json and marks the ones attached to that personality with [✓]. There is no ethos mcp list command.

Each entry in mcp.json has at minimum a name, a transport (stdio | streamable-http), and the transport-specific config (command + args for stdio; url + optional headers for streamable-http).

Step 2 — attach a server to a personality

ethos personality mcp <personality-id> --attach <server-name>

This appends <server-name> to mcp_servers in ~/.ethos/personalities/<id>/config.yaml. The personality reloads on its next mtime check — no daemon restart needed.

Detach with --detach <server-name>. Check the current attachment set with ethos personality mcp <personality-id> again.

Step 3 — verify the tools are reachable

After attach + a fresh turn:

ethos personality show <personality-id> | grep -A 5 'MCP'

The character sheet's ## MCP servers section lists the servers attached to the personality by name. It does not list the tools each server exposes; those appear only once the server connects in a running turn. If a server is attached but its tools are missing, the server itself isn't returning a tool list — see Step 5.

Step 4 — call an MCP tool

From the agent's perspective, MCP tools look like any other tool — they show up under the name mcp__<server>__<tool>. The LLM calls them by that exact name. The user doesn't usually invoke them directly; the personality's prompt should reference the capability ("read a file") and the model picks the right tool.

toolset.yaml does not gate MCP tools. Its allowlist applies to built-in tools only: DefaultToolRegistry.toDefinitions and executeParallel in packages/core/src/tool-registry.ts skip it for any mcp__ name. Listing mcp__<server>__<tool> there neither grants nor narrows anything. By default, an attached server exposes every tool it lists; the mcp_servers: attachment is the gate.

To narrow an attached server to specific tools, or switch it off for this personality, write the personality's own mcp.yaml (~/.ethos/personalities/<id>/mcp.yaml, parsed by parseMcpYaml in extensions/personalities/src/index.ts). Use bare tool names:

servers:
  filesystem:
    tools:
      - read_file
      - list_dir
  slack:
    enabled: false

The personality's definition files are operator-owned, so ask the user to make this edit. A server with no entry keeps all its tools. Pinned by packages/core/src/__tests__/tool-registry-mcp-filter.test.ts.

Step 5 — debug a missing or broken MCP

A short checklist when an mcp__<server>__<tool> is unreachable:

SymptomLikely causeFix
ethos personality mcp <id> says no servers are configured, but mcp.json has entriesmcp.json is not valid JSON — the loader reads an unparseable file as empty, with no error messageFix the JSON syntax
Server listed but 0 of N attached warningPersonality has no mcp_servers allowlistethos personality mcp <id> --attach <name>
Server attached but no tools surfaceServer failed to startRead the connection error in the output of the process running the agent. Ethos writes no per-server MCP log file
401 from a streamable-http serverBearer token expiredStore a new one with ethos personality mcp <id> --token-stdin <server>, or update headers in mcp.json
Cannot find package '@modelcontextprotocol/sdk'A workspace dep is missingpnpm install from repo root

Anti-patterns

  • Configuring a server globally that one personality cares about. Personalities have mcp_servers: for a reason — attach precisely.
  • Pasting tokens into mcp.json in plaintext. Pass env values with ethos mcp add <name> --env KEY=val. The command stores each value in the secrets store and writes a ${secrets:<ref>} reference into mcp.json (storeEnvSecrets in extensions/tools-mcp/src/index.ts). The reference is resolved when the server is spawned (resolveEnvSecretRefs, same file). This covers stdio env values only. For a bearer token, use ethos personality mcp <id> --token-stdin <server>.
  • Trying to restrict MCP tools through toolset.yaml. It has no effect on mcp__ tools. Restrict with mcp_servers: (per server) and the personality's mcp.yaml tools: list (per tool). A call outside those gates returns "Tool … is not permitted for this personality" (executeParallel, packages/core/src/tool-registry.ts).
  • Assuming community servers are vetted. No Ethos command checks an MCP server's package against osv.dev. checkOsvVulnerabilities exists in extensions/tools-mcp/src/osv-check.ts, but nothing calls it. Check the package's advisories yourself before you add it.

Hard rules

  • Server config is per-machine; attachment is per-personality. Don't conflate them.
  • Secrets go through the resolver. ${secrets:<ref>} — never raw tokens in mcp.json.
  • Tool name format is mcp__<server>__<tool>. Never edit that prefix; the runtime depends on it.

Setup the user needs to do once

  1. Add the servers they want available with ethos mcp add <name> (see ethos mcp presets), which writes ~/.ethos/mcp.json.
  2. Per personality, attach the relevant servers via ethos personality mcp <id> --attach <name>.
  3. Verify with ethos personality show <id> — the character sheet lists the attached MCP servers.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.