mcp-ui copilot-instructions.md

mcp-ui copilot-instructions.md is an instructions file for GitHub Copilot from MCP-UI-Org/mcp-ui. It costs 1,709 tokens per session, scanned B, original, Apache-2.0.

Repository instructions for mcp-ui, a software kit for building interactive user interfaces that work with the Model Context Protocol. They cover TypeScript and Ruby code, documentation, setup, builds, tests, and code quality.

In plain words
What is it for?
Use them when installing dependencies, building the packages or documentation, running TypeScript tests, and checking code before committing.
Why use it?
They give coding agents the project’s required setup steps, commands, and timeout limits, reducing failed builds and incomplete tests.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file.

About the project

mcp-ui is a software development kit for delivering interactive web interfaces alongside AI tool results through the Model Context Protocol. Developers use its server and client packages to create UI resources and let compatible hosts fetch and render them.

MCP-UI-Org/mcp-ui · 5,125 stars · on GitHub · mcpui.dev

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/mcp-ui-org/mcp-ui/copilot-instructions
Clone the repo
git clone --depth 1 https://github.com/MCP-UI-Org/mcp-ui

Made for: GitHub Copilot.

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-ui copilot-instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/mcp-ui-org/mcp-ui/copilot-instructions.svg)](https://agentmods.dev/instructions/mcp-ui-org/mcp-ui/copilot-instructions)
Your own site
<a href="https://agentmods.dev/instructions/mcp-ui-org/mcp-ui/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/mcp-ui-org/mcp-ui/copilot-instructions.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,709 This file is loaded in full into every session.
When invoked 1,709 The same file — it is already loaded in full.
Security scan B 1 finding. Scan, not verified.
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.01709 $0.01709
Opus 5 $0.00855 $0.00855
Sonnet 5 $0.00342 $0.00342
Haiku 4.5 $0.00171 $0.00171

Measured 6d ago against content hash 03fe01b1ed26, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade B, and why

mcp-ui copilot-instructions.md scanned grade B with 1 finding 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 6d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- Install Ruby 3.x and bundler: `sudo apt-get install -y ruby ruby-dev build-essential && sudo gem install bundler`
.github/copilot-instructions.md · 141 lines

How it starts

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

MCP-UI Development Instructions

ALWAYS follow these instructions first and fallback to additional search and context gathering only if the information here is incomplete or found to be in error.

MCP-UI is a Model Context Protocol UI SDK monorepo providing TypeScript and Ruby SDKs for building MCP enabled applications with interactive UI components. The repository includes client SDKs, server SDKs, documentation, and examples.

Working Effectively

Bootstrap and Build (CRITICAL - Set 60+ minute timeouts)

  • Install Node.js 22.x and pnpm 9+: npm install -g pnpm
  • Install Ruby 3.x and bundler: sudo apt-get install -y ruby ruby-dev build-essential && sudo gem install bundler
  • Clone repository: git clone https://github.com/idosal/mcp-ui.git && cd mcp-ui
  • Install dependencies: pnpm install -- takes ~60 seconds. NEVER CANCEL.
  • Build all packages: pnpm build -- takes ~15 seconds. NEVER CANCEL. Set timeout to 120+ seconds.
  • Build documentation: pnpm docs:build -- takes ~17 seconds. NEVER CANCEL. Set timeout to 180+ seconds.

Testing (CRITICAL - Set 30+ minute timeouts)

  • Run TypeScript tests: pnpm test:ts -- takes ~6 seconds. NEVER CANCEL. Set timeout to 300+ seconds.
  • Run Ruby tests: pnpm test:ruby -- takes ~1 second. NEVER CANCEL. Set timeout to 300+ seconds.
  • Run all tests: pnpm test -- combines TypeScript and Ruby tests. NEVER CANCEL. Set timeout to 300+ seconds.
  • Run with coverage: pnpm coverage -- NEVER CANCEL. Set timeout to 600+ seconds.

Code Quality (Always run before committing)

  • Lint code: pnpm lint -- takes ~2.4 seconds. Uses ESLint with TypeScript parser.
  • Fix linting issues: pnpm lint:fix
  • Format code: pnpm format -- Uses Prettier with single quotes, trailing commas, 100 char width.

Development Workflow

  • Run TypeScript SDKs in development: pnpm dev -- starts all TypeScript package dev servers in parallel.
  • Run docs in development: pnpm docs:dev -- starts VitePress dev server.
  • Preview builds: pnpm preview -- preview built packages.

Read the full file on GitHub · 141 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. 6d ago First seen · 141 lines · 1,709 tokens per session scan B 03fe01b1ed26

Subscribe to this mod's changes

mcp-ui copilot-instructions.md is an instructions file published in the GitHub repository MCP-UI-Org/mcp-ui (5,125 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 1,709 tokens to every session, about $0.0085 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.