mcp-architecture-general

mcp-architecture-general is a cursor rule for Cursor from noveldig/mcp-xhs-publisher. It costs 851 tokens per session, scanned A, original, MIT.

A guide to the core architecture of the Model Context Protocol (MCP), a standard way for AI applications to connect with data sources and tools. It explains hosts, clients, servers, resources, tools, and other protocol concepts.

In plain words
What is it for?
Use it when building or planning an MCP client or server. It covers the roles of each component and the ways servers expose data and operations.
Why use it?
It helps developers understand how MCP components communicate and how to build compatible applications. This reduces confusion when designing connections between AI models, data, and external actions.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when building or planning an MCP client or server. It covers the roles of each component and the ways servers expose data and operations.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/noveldig/mcp-xhs-publisher/mcp-architecture-general
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.

Clone the repo
git clone --depth 1 https://github.com/noveldig/mcp-xhs-publisher

Made for: Cursor.

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-architecture-general

README.md
[![agentmods](https://agentmods.dev/badge/rules/noveldig/mcp-xhs-publisher/mcp-architecture-general/github.svg)](https://agentmods.dev/rules/noveldig/mcp-xhs-publisher/mcp-architecture-general)
Your own site
<a href="https://agentmods.dev/rules/noveldig/mcp-xhs-publisher/mcp-architecture-general"><img src="https://agentmods.dev/badge/rules/noveldig/mcp-xhs-publisher/mcp-architecture-general/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-architecture-general

Your own site · 80×15
<a href="https://agentmods.dev/rules/noveldig/mcp-xhs-publisher/mcp-architecture-general"><img src="https://agentmods.dev/badge/rules/noveldig/mcp-xhs-publisher/mcp-architecture-general.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 851 This file is loaded in full into every session.
When invoked 851 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.00851 $0.00851
Opus 5 $0.00426 $0.00426
Sonnet 5 $0.00170 $0.00170
Haiku 4.5 $0.00085 $0.00085

Measured 11d ago against content hash 92a4f8381166, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

mcp-architecture-general 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 11d 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.

.cursor/rules/mcp-architecture-general.mdc · 45 lines

What it actually says

MCP 核心架构指南 (MCP Core Architecture Guide)

本指南概述了模型上下文协议 (Model Context Protocol, MCP) 的核心架构。理解这些基础原则对于构建任何与 MCP 兼容的应用程序(无论是客户端还是服务器)都至关重要。

参考:

1. 核心概念:客户端-服务器模型

MCP 采用标准的客户端-服务器架构,旨在促进 AI 模型与各种数据源和工具之间的标准化交互。

  • MCP 主机 (Hosts): 这些是希望通过 MCP 访问数据和功能的应用程序,例如 Claude Desktop、IDE 或其他 AI 工具。主机通常内嵌或管理一个或多个 MCP 客户端。
  • MCP 客户端 (Clients): 协议客户端,负责与 MCP 服务器建立和维护连接。它们代表主机向服务器发送请求并接收响应。
  • MCP 服务器 (Servers): 这些程序通过 MCP 协议暴露特定的能力(如数据、工具)。coze-mcp-server 就是一个 MCP 服务器的例子。

2. MCP 的目标与优势

  • 标准化集成: MCP 的核心价值在于为 AI 模型集成数据和工具提供了一个统一的接口,类似于为 AI 应用提供的"USB-C"端口。
  • 互操作性: 允许不同的 LLM 服务和工具提供商之间实现互操作,方便用户切换和组合。
  • 模块化: 促进 AI 应用的模块化设计,使得数据源和工具可以作为独立的 MCP 服务器进行开发和部署。
  • 安全性: MCP 的设计考虑了在用户基础设施内安全访问数据的需求。

3. 主要交互组件

MCP 服务器主要通过以下方式向客户端暴露其能力:

4. 开始使用

本架构指南旨在提供一个高层次的理解。具体的实现细节和最佳实践请查阅各个专门的指南文件。

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. 11d ago First seen · 45 lines · 851 tokens per session scan A 92a4f8381166

Subscribe to this mod's changes

mcp-architecture-general is a cursor rule published in the GitHub repository noveldig/mcp-xhs-publisher (1 stars, last pushed 1y ago), licensed MIT. It adds 851 tokens to every session, about $0.0043 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.