agentleFS
drvossdrvoss/everything-copilot-cli/skills/copilot-exclusive/mcp-builder/SKILL.md

mcp-builder

Skill47 starsChanged 4 months agoMITView on GitHub

Use when you need to build a new MCP server — plan the tool surface, implement the server, register it in Copilot CLI, inspect the config, and test the tools end to end.

193 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use skill-share, meeting-insights-analyzer and 10 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.
  • ArogyaReddySkill

    skill-share

    A skill that creates new Claude skills and automatically shares them on Slack using Rube for seamless team collaboration and skill discovery.

    Also in 20 projects that use this

  • ArogyaReddySkill

    meeting-insights-analyzer

    Analyzes meeting transcripts and recordings to uncover behavioral patterns, communication insights, and actionable feedback. Identifies when you avoid conflict, use filler words, dominate conversations, or miss opportunities to listen. Perfect for professionals seeking to improve their communication and leadership skills.

    Also in 27 projects that use this

  • JetBrainsSkill

    slack-gif-creator

    Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack.

    Also in 100 projects that use this

  • mrgoonieSkill

    ai-multimodal

    Process and generate multimedia content using Google Gemini API. Capabilities include analyze audio files (transcription with timestamps, summarization, speech understanding, music/sound analysis up to 9.5 hours), understand images (captioning, object detection, OCR, visual Q&A, segmentation), process videos (scene detection, Q&A, temporal analysis, YouTube URLs, up to 6 hours), extract from documents (PDF tables, forms, charts, diagrams, multi-page), generate images (text-to-image, editing, composition, refinement). Use when working with audio/video files, analyzing images or screenshots, processing PDF documents, extracting structured data from media, creating images from text prompts, or implementing multimodal AI features. Supports multiple models (Gemini 2.5/2.0) with context windows up to 2M tokens.

    Also in 5 projects that use this

  • GoogleSkill

    algorithmic-art

    Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.

    Also in 87 projects that use this

  • bkootazSkill

    artifacts-builder

    Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.

    Also in 36 projects that use this

  • +4 more from ArogyaReddy

The file

We split this skill into the rules it gives an agent

12 rules. 0 are common, 11 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 180 edited versions we read keep these.

  • 11

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use stable, action-oriented tool names such as:

    line 60
  2. Distinctive:

    Every tool should define:

    line 68
  3. Distinctive:

    If your server talks to remote HTTP or SSE backends, keep request-scoped concerns in one place instead of rebuilding them inside every tool:

    line 113
  4. Distinctive:

    Default every tool's response shape to be token-dense, not just correct.

    line 127
  5. Distinctive:

    Prefer compact, flat structures over deeply nested JSON with repeated keys

    line 131
  6. Distinctive:

    Consider a compact serialization format for tools that return large structured results (TOON is one example reporting roughly 90% token …

    line 134
  7. Distinctive:

    If the server exposes many tools but most calls only need a handful, do not force every tool's full schema into the initial discovery …

    line 142
  8. Distinctive:

    Use Copilot CLI's built-in management flow:

    line 153
  9. Distinctive:

    Before sharing the server, prepare realistic prompts that prove:

    line 164
  10. Distinctive:

    Every tool reconstructs auth or trace headers manually

    line 197
  11. Distinctive:

    Start with 2-5 high-value tools, not exhaustive API coverage

    line 209
  12. Very specific:

    Prefer project-level .mcp.json when a team should share the server

    line 210

“Common” is measured: kept by at least 6 in 10 of the 180 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 Builder

mcp-ecosystem helps you install and configure existing servers. This skill is for when you need to build a new MCP server for your own domain, APIs, or internal tools. Copilot CLI makes that loop faster with native MCP management commands and workspace/user config surfaces.

Why This is Copilot-Exclusive

Copilot CLI has a practical MCP authoring loop built around:

  • copilot mcp add — quick user-level server registration
  • copilot mcp list / copilot mcp get — inspect what Copilot will load
  • shared config paths such as workspace .mcp.json

That shortens the edit → inspect → load → test cycle while you build a server.

When to Use

  • You need tools for an internal API, database, or service Copilot cannot reach natively
  • Existing MCP servers do not match the workflow you need
  • You want a shared MCP server for a team or repository
  • You need domain-specific tools with tighter validation than generic servers provide

When NOT to Use

Instead of mcp-builderUse
Installing an existing MCP servermcp-ecosystem
Using only built-in GitHub toolsbuilt-in GitHub MCP
Writing a one-off local script for yourselfa normal script or CLI tool

Prerequisites

  • Clear target users and workflows for the server
  • Access to the service or API the server will wrap
  • A chosen implementation stack such as TypeScript or Python
  • A place to store the MCP config (workspace .mcp.json or user-level config)

Workflow

1. Plan the tool surface

Decide whether the server should expose:

  • low-level API coverage
  • workflow-oriented tools
  • or a mix of both

Use stable, action-oriented tool names such as:

  • db_query
  • payments_get_invoice
  • feature_flags_list

2. Model the inputs and outputs

Every tool should define:

  • explicit parameter names
  • descriptions with constraints
  • predictable output shape
  • actionable error messages

For read-only tools, mark the intent clearly in the tool design.

3. Implement the server

TypeScript example:

import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { z } from "zod";

const server = new McpServer({ name: "my-service" });

server.tool(
  "my_service_lookup",
  { id: z.string().describe("Service object ID") },
  async ({ id }) => {
    const result = await lookup(id);
    return { content: [{ type: "text", text: JSON.stringify(result) }] };
  }
);

4. Register the server in MCP config

// .mcp.json
{
  "servers": {
    "my-service": {
      "command": "node",
      "args": ["./tools/mcp-server.js"]
    }
  }
}

5. Centralize transport concerns

If your server talks to remote HTTP or SSE backends, keep request-scoped concerns in one place instead of rebuilding them inside every tool:

  • auth header injection
  • OAuth token refresh
  • trace or correlation IDs
  • tenant or user context propagation

Whether your stack calls these interceptors, middleware, or request wrappers, the rule is the same: tool handlers should focus on business logic, while transport policy stays in a reusable layer.

5a. Design token-dense tool responses

Default every tool's response shape to be token-dense, not just correct. An LLM caller pays context-window cost for every token a tool returns, so a verbose or redundantly-nested response shape is a recurring tax on every future call, not a one-time cost.

  • Prefer compact, flat structures over deeply nested JSON with repeated keys
  • Strip fields the caller cannot act on (internal IDs, boilerplate metadata) unless a tool explicitly needs them
  • Consider a compact serialization format for tools that return large structured results (TOON is one example reporting roughly 90% token reduction versus naive JSON on graph/trace-shaped output — treat vendor-reported reduction numbers as a claim to verify against your own payloads, not a guarantee)
  • Measure actual token cost on a representative response before and after a format change

5b. Use routing hints to defer low-probability tools

If the server exposes many tools but most calls only need a handful, do not force every tool's full schema into the initial discovery response. Expose a smaller set of high-probability tools up front, and attach routing hints (a short description of what else is available and when to ask for it) so the caller can request the rest only when needed.

This avoids a full discovery round-trip for tools that are rarely used, which matters most for servers with a large or long-tail tool surface. Promote a deferred tool to fully visible only when its routing hint condition is actually triggered by the caller's request.

6. Inspect, load, and test

Use Copilot CLI's built-in management flow:

1. Register or edit the server config
2. Inspect it with `copilot mcp list` and `copilot mcp get <name>`
3. Start or refresh a Copilot session so the server is loaded
4. Call the new tool with a real test input

7. Add lightweight evaluations

Before sharing the server, prepare realistic prompts that prove:

  • the tool is discoverable
  • the parameters are understandable
  • the output is useful to an LLM-driven workflow

Quality Checklist

  • Tool names are stable and action-oriented
  • All parameters have descriptions
  • Output shape is predictable
  • Errors tell the caller what to fix next
  • Auth, header, or request-context propagation is centralized instead of duplicated per tool
  • Tool responses are token-dense — no redundant nesting or fields the caller can't act on
  • Low-probability tools use routing hints instead of forcing full upfront discovery
  • The config is visible in copilot mcp list
  • At least one end-to-end tool invocation succeeds after the server is loaded

Common Rationalizations

RationalizationReality
"I'll just expose every endpoint"Too many low-value tools make the server harder to use well.
"The schema is obvious"LLMs rely on explicit parameter descriptions and output shape.
"I can skip inspection and test it live"Bad config slows iteration and creates avoidable confusion.
"A generic wrapper is enough"Workflow-specific tools often serve agents better than raw API mirrors.
"I'll copy the auth headers in each tool"Request policy belongs in one interceptor or middleware layer so it stays correct everywhere.

Red Flags

  • Tool names describe implementation details instead of user tasks
  • Inputs are under-specified or ambiguous
  • The server requires hidden setup not captured in config or docs
  • Every tool reconstructs auth or trace headers manually
  • You have not tested the tool from Copilot after loading the server

Verification

  • The server solves a concrete workflow gap that built-in tools do not cover
  • MCP config is visible in copilot mcp list
  • copilot mcp get <name> shows the expected command, env, or URL
  • At least one real prompt can discover and use the tool correctly

Tips

  • Start with 2-5 high-value tools, not exhaustive API coverage
  • Prefer project-level .mcp.json when a team should share the server
  • Pair this with source-driven-development when wrapping a third-party SDK or API

See Also

  • mcp-ecosystem — install and manage existing MCP servers
  • source-driven-development — verify SDK usage against official docs
  • skill-creator — create supporting skills for your MCP workflow

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.