unity-mcp: Skill for Claude Code

.claude/skills/mcp-source/SKILL.md

mcp-source is a skill for Claude Code from CoplayDev/unity-mcp. It costs 44 tokens per session (807 once invoked), scanned A, original, MIT.

A command that changes where the MCP for Unity package comes from, such as an upstream release, a development branch, or a local checkout.

In plain words
What is it for?
Use it to switch Unity projects between main, beta, branch, and local sources for the com.coplaydev.unity-mcp package.
Why use it?
It lets you test different package versions or local changes without manually editing every Unity project’s package configuration.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

This is CoplayDev/unity-mcp's own configuration. It tells Claude Code how to work on unity-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything unity-mcp configures →

About the project

Unity MCP connects AI coding assistants to the Unity Editor through the Model Context Protocol, letting them manage game assets, scenes, scripts, tests, and builds. It is for developers who want to control Unity workflows with natural-language requests, and the catalogue entries provide add-ons for using the project.

CoplayDev/unity-mcp · 15,028 stars · on GitHub · coplaydev.github.io

Reuse

Borrowing it

Nothing to install: this file belongs to CoplayDev/unity-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/CoplayDev/unity-mcp/beta/.claude/skills/mcp-source/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/CoplayDev/unity-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mcp-source

README.md
[![agentmods](https://agentmods.dev/badge/skills/coplaydev/unity-mcp/mcp-source/github.svg)](https://agentmods.dev/skills/coplaydev/unity-mcp/mcp-source)
Your own site
<a href="https://agentmods.dev/skills/coplaydev/unity-mcp/mcp-source"><img src="https://agentmods.dev/badge/skills/coplaydev/unity-mcp/mcp-source/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mcp-source

Your own site · 80×15
<a href="https://agentmods.dev/skills/coplaydev/unity-mcp/mcp-source"><img src="https://agentmods.dev/badge/skills/coplaydev/unity-mcp/mcp-source.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 807 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.00807
Opus 5.5 $0.00018 $0.00323
Sonnet 5.5 $0.00009 $0.00161
Haiku 4.5 $0.00004 $0.00081

Measured 1mo ago against content hash 7d3a10fac694, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mcp-source scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.claude/skills/mcp-source/SKILL.md · 84 lines

How it starts

The opening of the file, as written. The whole thing — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Switch MCP for Unity Package Source

You are switching the com.coplaydev.unity-mcp package source in one or more Unity projects.

allowed-tools

Bash, Read, Edit, ReadMcpResourceTool, ListMcpResourcesTool

Instructions

1. Parse arguments

The user's argument is: $ARGUMENTS

Valid values: main, beta, branch, local, or empty.

If empty or not one of the four valid values, ask the user to choose:

  • main — upstream main branch (stable releases)
  • beta — upstream beta branch (pre-release)
  • branch — your current remote branch (for testing a PR)
  • local — local file reference to your checkout (for live dev iteration)

2. Detect repo context

Run these git commands from the current working directory to find the unity-mcp repo:

git rev-parse --show-toplevel    # → repo_root
git rev-parse --abbrev-ref HEAD  # → branch_name
git remote get-url origin        # → origin_url

Convert SSH origins to HTTPS: if origin_url starts with [email protected]:, transform it to https://github.com/{owner}/{repo}.git.

3. Discover target Unity projects

Try two approaches to find Packages/manifest.json files to update:

Approach A — MCP resources (preferred): Read mcpforunity://project/info for each connected Unity instance (use ListMcpResourcesTool to find available instances). Extract projectRoot and use {projectRoot}/Packages/manifest.json.

Approach B — filesystem fallback: If no MCP instances are connected, search upward from the current working directory for Packages/manifest.json files using Bash:

find "$(pwd)" -maxdepth 3 -name "manifest.json" -path "*/Packages/manifest.json" 2>/dev/null

If multiple manifests are found, update all of them (confirming with the user first).

4. Build the package URL

Based on the user's selection, construct the dependency value:

Selection URL
main https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#main
beta https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#beta
branch {origin_https}?path=/MCPForUnity#{branch_name}
local file:{repo_root}/MCPForUnity

Read the full file on GitHub · 84 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 84 lines · 44 tokens per session scan A 7d3a10fac694

Subscribe to this mod's changes

mcp-source is a skill published in the GitHub repository CoplayDev/unity-mcp (15,028 stars, last pushed 8d ago), licensed MIT. It adds 44 tokens to every session and 807 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

tests-run

Execute Unity tests (EditMode or PlayMode) and return per-test results. Supports filtering by test assembly, namespace, class, and method. Refreshes the AssetDatabase first; defers execution across domain reloads if scripts changed. Precondition: every open scene must be saved — dirty scenes abort the run.

IvanMurzak/Unity-MCP · 68 tokens

screenshot-isolated

Render a target GameObject from a chosen camera angle with optional layer-based isolation, configurable background (solid/skybox/transparent), multi-light setup via JSON, and Composite (2x2 Front/Right/Back/Top) mode. Returns a PNG image. When isolated=true, inactive children may briefly fire OnEnable — see the body…

IvanMurzak/Unity-MCP · 78 tokens

script-execute

Compiles and executes C# code dynamically using Roslyn. Supports a full-code mode (default) and a body-only mode — see the skill body for the difference and for how to pass Unity object references as parameters.

IvanMurzak/Unity-MCP · 48 tokens

unity-skill-create

Create a new skill (MCP tool) for the Unity Editor by writing a C# (.cs) file that Unity compiles into the project. After compilation the new tool becomes callable through MCP. The file must be a partial class decorated with [AiToolType], each tool method must be decorated with [AiTool], the class name should match…

IvanMurzak/Unity-MCP · 142 tokens

unity-rql

How to read and change anything in the Unity Editor with RQL (rql-query / rql-mutate / rql-schema): the query language, operators, sources (scene objects, assets, scenes, prefabs, console logs, Editor state), Editor operations (create, add components, scenes, prefabs, assets, selection, Play Mode) and what installed…

IvanMurzak/Unity-MCP · 82 tokens

package-list

List all UPM packages installed in the Unity project — name, version, source, description. Optionally filter by source (registry, embedded, local, git, built-in, local tarball), by name/display/description substring, and by direct-dependency-only.

IvanMurzak/Unity-MCP · 57 tokens