gsmlg-dev/code-agent

setup-mcp

Use when adding or configuring an MCP (Model Context Protocol) server in a Claude Code plugin. Triggers on "add mcp", "setup mcp", "configure mcp server", "add mcp.json to plugin", or any request to wire up an external MCP tool server to a plugin in this repository.

First seen Apr 27, 2026

Installation

$ npx skills add gsmlg-dev/code-agent --skill setup-mcp

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from gsmlg-dev/code-agent · top by installs.

npx skills add gsmlg-dev/code-agent

Browse all from gsmlg-dev/code-agent

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Also listed on

Alternate registries and mirrors of this skill.

Repository health

Default branch main
Open issues 0
Status Active

Skill metadata

Parsed from SKILL.md frontmatter.

Declared agents claude-code
More metadata
internal
1

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,656 B
  • docs SUMMARY.md 283 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 34 installs

SKILL.md

Setting up MCP in a Plugin

MCP servers are configured via a .mcp.json file (dotfile) at the plugin root — not inside .claude-plugin/, and not mcp.json without the dot.

File location

plugins/<name>/
├── .claude-plugin/
│   └── plugin.json
├── .mcp.json        ← here
├── commands/
└── ...

Schema

{
  "<server-name>": {
    "type": "http",
    "url": "https://<endpoint>/mcp/",
    "headers": {
      "Authorization": "Bearer ${ENV_VAR}"
    }
  }
}
  • Top-level keys are the server names (used as identifiers in Claude Code)
  • type: transport type — use "http" for HTTP/SSE endpoints
  • url: the MCP server endpoint URL
  • headers: optional; use ${VAR} syntax for environment variable interpolation (e.g., ${GITHUB_TOKEN})

Example (github plugin)

{
  "github": {
    "type": "http",
    "url": "https://githubcopilot-api.gsmlg.dev/mcp/",
    "headers": {
      "Authorization": "Bearer ${GITHUB_TOKEN}"
    }
  }
}

Notes

  • Multiple servers can be registered in the same .mcp.json by adding more top-level keys
  • headers is only needed for authenticated endpoints
  • plugin.json does not carry MCP config — keep them separate
  • lspServers in plugin.json is for LSP (code intelligence), not MCP