agentleFS
pecigonzalopecigonzalo/agent-skills/skills/mcp/SKILL.md

mcp

Skill0 starsChanged 5 months agoMITView on GitHub

Use this skill whenever a task involves an MCP server or MCP tool, including discovering or listing servers, inspecting schemas, calling tools and resources, authenticating, debugging failed calls, or generating typed MCP clients and CLIs, even if the user does not say MCP. Covers the host.mcp bridge and mcporter workflows.

14 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use frontend-design.

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.
  • VercelSkill

    frontend-design

    Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 3 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 12 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use result.text as the tool response.

    line 27
  2. Very specific:

    Use host.mcp.listTools({ server }) to inspect a known server when necessary.

    line 28
  3. Very specific:

    Use Pi's MCP config at ~/.pi/agent/mcp.json so CLI calls match /mcp status and host.mcp.

    line 32
  4. Very specific:

    If Bun is unavailable, use npx -y mcporter --config ~/.pi/agent/mcp.json <command>.

    line 38
  5. Distinctive:

    Start by listing configured servers:

    line 42
  6. Distinctive:

    Use the CLI only for manual or one-off calls.

    line 64
  7. Distinctive:

    Use function-call syntax for nested or complex arguments:

    line 70
  8. Very specific:

    Use --no-browser on headless hosts and keep the process alive until the browser redirect completes.

    line 104
  9. Very specific:

    Add --persist config/mcporter.json when the server should become reusable by name.

    line 117

“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

MCP

For normal MCP tool calls, prefer the typescript tool and its host.mcp bridge. It makes filtering, pagination, batching, and further processing straightforward. Use mcporter only for discovery, configuration, authentication, diagnostics, or one-off ad-hoc calls.

TypeScript workflows

Once the relevant server and tool are known, call it through host.mcp:

const result = await host.mcp.call({
  server: "linear",
  tool: "list_issues",
  args: { assignee: "me", limit: 50 },
});

const { issues } = JSON.parse(result.text!);
return issues;

Use result.text as the tool response. Parse it only when the tool returns JSON. Use host.mcp.listTools({ server }) to inspect a known server when necessary.

mcporter discovery and administration

Use Pi's MCP config at ~/.pi/agent/mcp.json so CLI calls match /mcp status and host.mcp.

bunx mcporter --config ~/.pi/agent/mcp.json <command>

If Bun is unavailable, use npx -y mcporter --config ~/.pi/agent/mcp.json <command>.

Discovery

Start by listing configured servers:

bunx mcporter --config ~/.pi/agent/mcp.json list

Inspect likely servers compactly before loading full schemas:

bunx mcporter --config ~/.pi/agent/mcp.json list <server> --brief
bunx mcporter --config ~/.pi/agent/mcp.json list <server.tool> --brief

Load full schemas only when needed to call a tool accurately:

bunx mcporter --config ~/.pi/agent/mcp.json list <server> --schema
bunx mcporter --config ~/.pi/agent/mcp.json list <server.tool> --schema

Ad-hoc CLI calls

Use the CLI only for manual or one-off calls. Use shell-friendly key/value arguments for simple calls:

bunx mcporter --config ~/.pi/agent/mcp.json call <server.tool> query="React hooks docs" limit:5

Use function-call syntax for nested or complex arguments:

bunx mcporter --config ~/.pi/agent/mcp.json call 'server.tool(name: "value", options: { limit: 5 })'

For file-backed text arguments, use key=@path.

Resources

List or read MCP resources:

bunx mcporter --config ~/.pi/agent/mcp.json resource <server>
bunx mcporter --config ~/.pi/agent/mcp.json resource <server> <uri>

Config and auth

Inspect and manage MCP configuration:

bunx mcporter --config ~/.pi/agent/mcp.json config list
bunx mcporter --config ~/.pi/agent/mcp.json config get <server>
bunx mcporter --config ~/.pi/agent/mcp.json config add <name> <url-or-command>
bunx mcporter --config ~/.pi/agent/mcp.json config import <kind>

Authenticate OAuth-backed servers:

bunx mcporter --config ~/.pi/agent/mcp.json auth <server-or-url>

Use --no-browser on headless hosts and keep the process alive until the browser redirect completes.

Ad-hoc servers

Try HTTP or stdio servers without editing config:

bunx mcporter --config ~/.pi/agent/mcp.json list https://mcp.example.com/mcp --brief
bunx mcporter --config ~/.pi/agent/mcp.json list --http-url https://mcp.example.com/mcp --name example --brief
bunx mcporter --config ~/.pi/agent/mcp.json call 'https://mcp.example.com/mcp.tool(arg: "value")'
bunx mcporter --config ~/.pi/agent/mcp.json list --stdio "bun run ./server.ts" --name local-tools

Add --persist config/mcporter.json when the server should become reusable by name.

Daemon diagnostics

mcporter can keep configured lifecycle: "keep-alive" servers warm and starts daemon-managed servers on demand. Check status only when diagnosing connection or startup issues:

bunx mcporter --config ~/.pi/agent/mcp.json daemon status

Generated TypeScript clients and CLIs

For stable or repeated workflows, generate typed clients or dedicated CLIs instead of hand-writing calls:

bunx mcporter --config ~/.pi/agent/mcp.json emit-ts <server> --mode client --out clients/<server>.ts
bunx mcporter --config ~/.pi/agent/mcp.json generate-cli <server> --bundle dist/<server>.js

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.