mcp_tools: Instructions file for GitHub Copilot

.github/copilot-instructions.md

mcp_tools copilot-instructions.md is an instructions file for GitHub Copilot from ljzloser/mcp_tools. It costs 1,367 tokens per session, scanned A, original, MIT.

Repository instructions for MCP Tool Hub, a platform that exposes plugin-based tools to AI clients and provides desktop and web management interfaces. They describe its Python server, clients, communication methods, and plugin structure.

In plain words
What is it for?
Use them to start the server or clients, run tests and web builds, or create a new backend plugin with an optional user-interface component.
Why use it?
They give coding agents the conventions needed to build, run, test, and extend the project without breaking its plugin architecture.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file.

This is ljzloser/mcp_tools's own configuration. It tells GitHub Copilot how to work on mcp_tools 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 mcp_tools configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ljzloser/mcp_tools. 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/ljzloser/mcp_tools/master/.github/copilot-instructions.md
Clone the repo
git clone --depth 1 https://github.com/ljzloser/mcp_tools

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ljzloser/mcp_tools/copilot-instructions.svg)](https://agentmods.dev/instructions/ljzloser/mcp_tools/copilot-instructions)
Your own site
<a href="https://agentmods.dev/instructions/ljzloser/mcp_tools/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/ljzloser/mcp_tools/copilot-instructions.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,367 This file is loaded in full into every session.
When invoked 1,367 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.01367 $0.01367
Opus 5 $0.00683 $0.00683
Sonnet 5 $0.00273 $0.00273
Haiku 4.5 $0.00137 $0.00137

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

Security

Grade A, and why

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

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.

.github/copilot-instructions.md · 71 lines

How it starts

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

MCP Tool Hub — 项目指南

架构

集成式 MCP 工具平台:服务端作为纯转发层暴露 tools/listtools/call,所有功能以插件形式内置。

  • 后端server/ — FastMCP (MCP 协议) + FastAPI (管理 API, 端口 9020) + aiosqlite
  • 前端client/ — PySide6 + qfluentwidgets (Fluent Design UI),通过 HTTP 管理 API 与后端通信
  • Web 前端web/ — Vue 3 SPA,构建到 assets/web/,由 FastAPI 在 /web/ 路径提供静态服务
  • 插件plugins/ — 每个插件 = BasePlugin(后端)+ 可选 BasePluginWidget(UI Widget)
  • 协议层api/ — 前后端共享的 Pydantic 模型 (protocol.py)、路由常量 (routes.py)、工具定义 (tool.py)、配置系统 (config.py)

通信分层:MCP 层走 stdio/SSE(AI 客户端),管理操作走 HTTP REST(UI 客户端)。

详细设计见 docs/DESIGN.md,开发计划见 docs/DEVPLAN.md

构建与运行

uv sync                    # 安装依赖
uv run server.py           # 启动服务 (stdio 模式)
uv run server.py --sse     # 启动服务 (SSE 模式, 端口 9021)
uv run client.py           # 启动管理 UI
pytest                     # 运行测试
cd web && npm run build    # 构建 Web 前端 → assets/web/

创建新插件

  1. plugins/ 下创建目录(不能以 _. 开头),含 __init__.py
  2. __init__.py 导出 PLUGIN_CLASS(必须)和 WIDGET_CLASS(可选)
  3. 后端继承 BasePlugin[ConfigModel],声明 ToolDef 类属性,实现 handle_{tool_name}
  4. 可选配置:声明 config_class,使用 ConfigField 子类定义字段
  5. 可选 Widget:继承 BasePluginWidget(QObject),实现 get_name() + create_widget(parent)
  6. 必须添加 README.md:每个插件目录下必须包含 README.md,描述工具列表和使用示例

参考模板:plugins/_template/

关键约定

  • 路径管理:所有路径使用 utils/paths.pypaths 对象,禁止硬编码路径
  • 工具声明:用 ToolDef 类属性声明工具(非字符串/装饰器),call_tool() 自动分派到 handle_{name}
  • 类型化 invoke:Widget 使用 invoke(PluginClass.tool_def, ArgsModel(...)) 而非字符串
  • API 路径:使用 api/routes.pyRoutes 常量,不硬编码 URL
  • 响应解析:前端用 api/protocol.py 的 Pydantic 模型解析 HTTP 响应
  • 配置字段ConfigField descriptor 协议,self.config.key 直接读写,Pylance 可推断类型
  • 数据库时间:始终用 datetime('now', 'localtime'),不用 UTC
  • 无 Pillow 依赖:ICO 编码用纯 Python struct + Qt QImage/QBuffer
  • 跨平台:所有平台专用代码必须用 if IS_WINDOWS: / if IS_LINUX: 包裹,不直接调用平台 API
  • 工具返回:统一用 MCPToolResult(content=[{"type": "text", "text": "..."}], is_error=False/True)
  • 插件元数据meta 属性返回 PluginMeta(name, display_name, version, description, author, icon)

Read the full file on GitHub · 71 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 · 71 lines · 1,367 tokens per session scan A 9800b2c79dbe

Subscribe to this mod's changes

mcp_tools copilot-instructions.md is an instructions file published in the GitHub repository ljzloser/mcp_tools (4 stars, last pushed 2mo ago), licensed MIT. It adds 1,367 tokens to every session, about $0.0068 per session on Opus 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-31.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens