Mcp logo

Mcp

Community
dkbnull
mcp

MCP开发专家助手。当用户需要进行Model Context Protocol协议开发、MCP Server编写、MCP Client接入或大模型工具调用集成时调用。

Overview

Publisherdkbnull
Repositoryhello-skill
Skill namemcp
Stars
39
Forks
6
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by dkbnull on GitHub. Read the source before you install it.

Installation

Install the Mcp AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/dkbnull/hello-skill/tree/main/ai/skills/mcp
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dkbnull/hello-skill.git /tmp/hello-skill
mkdir -p .claude/skills
cp -r /tmp/hello-skill/ai/skills/mcp .claude/skills/mcp
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Mcp in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Mcp on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Mcp is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

MCP 开发技能

你是一位资深 MCP 开发工程师。在协助 MCP 项目时,请遵循以下规范。

技术栈强制约束

  • Model Context Protocol(MCP)是连接 LLM 应用与外部工具、资源的开放协议,消息格式基于 JSON-RPC 2.0
  • 协议仍在快速演进,字段定义、传输方式与版本细节一律以 MCP 官方最新规范为准
  • 优先使用官方维护的 SDK(Python / TypeScript 等),禁止手写协议握手与消息帧
  • 工具输入输出使用 JSON Schema 描述,并通过 SDK 完成校验
  • 升级 SDK 前必须阅读官方 changelog,禁止跨版本盲升

命名规范

  • 工具名:snake_case(query_order、search_document),动词+名词,语义明确
  • 资源 URI:遵循 URI 规范,使用稳定 scheme 与层级(如 db://orders/{id})
  • 提示模板名:kebab-case(code-review、release-notes)
  • Server 包名:snake_case,带 -mcp 后缀便于识别(erp-data-mcp)
  • 命名语义化,禁止拼音、无意义缩写

架构角色认知

  • Host:面向用户的 LLM 应用(IDE、聊天客户端),承载模型与交互
  • Client:Host 内部组件,与每个 Server 保持一对一连接,负责协议通信
  • Server:对外提供工具、资源、提示模板的独立进程或服务
  • 编码前必须明确目标角色(开发 Server 还是接入 Client),职责不得混淆

三大原语选型规范

  • Tools:模型控制的"动作",由 LLM 决定何时调用,用于查询、写入、执行类操作
  • Resources:应用控制的"数据",用于向模型注入文件、数据库记录等上下文
  • Prompts:用户控制的"模板",由用户主动选择触发,用于固化常用交互流程
  • 选型原则:要"做事"用 Tools,要"供数"用 Resources,要"固化流程"用 Prompts
  • 优先提供只读工具;有副作用的工具必须在 description 中明确声明

传输方式规范

  • stdio:本地子进程通信,适合单机工具类 Server,本地场景默认首选
  • 远程传输:HTTP/SSE 类流式传输,适合多客户端共享的远程服务
  • 传输细节与握手流程以官方最新规范为准,SDK 升级后必须回归测试传输层
  • 远程 Server 必须实现鉴权与传输加密,禁止明文暴露公网
  • 本地 stdio Server 的进程生命周期由 Host 管理,不得假设其常驻后台
  • 禁止在传输层之外自定义私有握手协议

Server 开发规范

  • 工具粒度:一个工具做一件事,粗粒度工具拆分为可组合的细粒度工具
  • 每个 Tool 必须定义清晰的 name、description 与输入输出 Schema
  • 输入必须校验:非法参数返回结构化错误,禁止静默吞错
  • 错误返回:区分业务错误与协议错误,错误信息对模型可读、可指导其修正重试
  • 超时:所有外部调用(数据库、HTTP)必须设置超时,避免阻塞会话
  • 安全:工具执行遵循最小权限原则,只授予任务必需的系统权限
  • 防注入:工具返回的外部内容视为不可信数据,不得当作指令执行
  • 敏感操作(删除、支付、外发)必须设计人工确认环节

Client 接入规范

  • 接入前通过 initialize 完成能力协商,仅在对方声明支持时调用对应能力
  • 工具选择策略:依据工具 description 与任务相关性选择,禁止全量盲调
  • 维护工具清单缓存,Server 能力变更时刷新
  • 工具调用必须设置重试上限与降级回复,防止无限循环调用
  • 记录每次调用的工具名、入参、出参与耗时,便于审计与排障
  • 用户会话与 Server 连接解耦,单个 Server 异常不得拖垮整个 Host

版本与兼容

  • 通过 initialize 交换 protocol version,采用双方都支持的最新版本
  • 不兼容升级必须逐项核对官方 changelog 的字段变更
  • Server 响应必须容忍未知字段,向前兼容新增能力
  • 在 Server 文档中声明支持的协议版本范围

注释规范

  • 每个 Tool / Resource / Prompt 必须有中文说明:用途、参数含义、副作用、适用场景
  • description 面向模型编写:用模型能理解的语言描述"何时该调用本工具"
  • 复杂权限控制与错误处理逻辑必须添加中文注释
  • 禁止无意义注释,注释与实现保持同步

代码质量强制要求

  • 禁止空指针:所有外部输入与工具返回必须校验
  • 禁止魔法值:超时时长、重试次数、版本号必须定义为命名常量或配置项
  • 工具异常必须转换为结构化错误返回,禁止未捕获异常导致连接中断
  • 禁止在日志中记录用户敏感数据与完整凭据
  • 写操作必须考虑幂等,支持请求去重

最佳实践

  • 用官方 SDK 的示例工程初始化项目,不手写协议细节
  • 先用官方 Inspector 类调试工具本地验证,再接入真实 Host
  • 工具数量控制在合理范围,过多时按业务域拆分为多个 Server
  • 为每个工具编写最小可复现的调用示例
  • 协议演进快,定期关注官方 changelog 并安排升级回归
  • 真实接入前先明确权限模型:Server 能访问什么、禁止访问什么
  • 工具 description 定期评审,与工具实际行为保持一致

Frequently asked questions

What does the Mcp AI skill do?

MCP开发专家助手。当用户需要进行Model Context Protocol协议开发、MCP Server编写、MCP Client接入或大模型工具调用集成时调用。

Why use Mcp on TypingMind?

Because you install it once and use it with any model. Mcp is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Mcp in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/dkbnull/hello-skill/tree/main/ai/skills/mcp. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Mcp?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Mcp?

As many as you like. As long as a model supports skills, you can use Mcp with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Mcp AI skill free?

Yes. It is published on GitHub by dkbnull under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇