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

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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.5 $0.00547 $0.00547
Sonnet 5.5 $0.00273 $0.00273
Haiku 4.5 $0.00137 $0.00137

Measured 2mo ago against content hash 9800b2c79dbe, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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/list 和 tools/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.py 的 paths 对象,禁止硬编码路径
  • 工具声明:用 ToolDef 类属性声明工具(非字符串/装饰器),call_tool() 自动分派到 handle_{name}
  • 类型化 invoke:Widget 使用 invoke(PluginClass.tool_def, ArgsModel(...)) 而非字符串
  • API 路径:使用 api/routes.py 的 Routes 常量,不硬编码 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. 2mo 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 4mo ago), licensed MIT. It adds 1,367 tokens to every session, about $0.0055 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-31.

Related

mcp_tools copilot-instructions.md compared with instructions from other repositories

mcp_tools copilot-instructions.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mcp_tools copilot-instructions.mdljzloser/mcp_toolsInstructions file44mo agoMITA1,367GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode