原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。使用 Google 登录即可撰写评价。原型 · 每 30 分钟更新
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Pathrule

作者:pathrule版本 1.0.6i★ 5i电脑或云端
注册名称io.pathrule/pathrule

安装方法

What it does

Path-scoped project memories, rules and skills for coding agents, on your machine or Pathrule Cloud.

  • Connects 电脑或云端
  • Account or key Cloud: Sign in to the service when you connect (OAuth) · Local: No key needed
  • Category 开发者工具

安装

选择你使用的 AI 应用,然后复制设置。

通过 5/5 项检查 · 你的提问会经过开发者的服务器(cloud.pathrule.io) · ✓ 命令已检查 2026年11月13日

第一步:你用哪个 AI?

选择你用的应用,步骤会显示在下方。

可连接 Claude · 约 2 分钟

不需要密钥,不用安装程序 · 在 claude.ai 或桌面应用设置一次,即可在聊天中使用 · 免费账户可添加 1 个 · Team/Enterprise 方案由所有者(Owner)添加

  1. 打开 Claude 的 Connectors 页面

    CustomizeConnectors

    CustomizeConnectors1Add2https://…3Add4
  2. 点击“Add” → “Custom” → “Web”,填写这 2 项

    把这里的内容复制到 Claude 中同名的输入框,然后点击 Continue

    Name · 名称Pathrule
    Remote MCP server URL · 地址https://cloud.pathrule.io/mcp

    在 Claude 检测到的登录设置页点击 Continue · Authentication 按作者说明选择(Sign in now、Sign in when needed 或 No sign in),然后点击 Add

  3. 在聊天中开启

    +ConnectorsPathrule

  4. 试一试

    用 Pathrule 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude 说正在使用 Pathrule,或回答中出现 Pathrule 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

能否连接 ChatGPT 取决于方案

完整 MCP:网页版 ChatGPT Business、Enterprise 或 Edu · Pro:以读取/获取权限连接,修改数据的工具可能用不了 · Plus:官方文档尚未确认,如果在插件页看到添加自定义 MCP 的选项可以试试 · 仅限网页

  1. 在网页版 ChatGPT 打开添加 MCP 的页面

    Plugins+Add custom MCP server

    ChatGPTPlugins1+2https://…3Create4
  2. 填写名称和地址

    输入名称,在 Connection 下粘贴地址,勾选风险提示,然后点击 Create as a plugin

    Name · 名称Pathrule
    Connection · 地址https://cloud.pathrule.io/mcp
  3. 在聊天中选择 Pathrule

    开启新聊天,输入前先从插件列表中选择 Pathrule

  4. 试一试

    用 Pathrule 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 ChatGPT 说正在使用 Pathrule,或回答中出现 Pathrule 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 OpenAI 帮助页面核实 · 你的界面可能因版本略有不同

可连接 Claude Code · 约 2 分钟

不需要密钥,不用安装程序

  1. 打开终端

    Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell

  2. 粘贴这条命令并按 Enter

    claude mcp add --transport http --scope user pathrule https://cloud.pathrule.io/mcp
  3. 在 Claude Code 中输入 /mcp

    应能看到 Pathrule 在列表中并显示已连接

  4. 试一试

    用 Pathrule 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude Code 说正在使用 Pathrule,或回答中出现 Pathrule 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

可连接 Cursor · 约 2 分钟

不需要密钥,不用安装程序

  1. 点击这个按钮打开 Cursor

    在 Cursor 中打开

    Cursor 会请你确认安装,点击 Install

  2. 在 Cursor 中以 Agent 模式打开 AI 聊天

  3. 试一试

    用 Pathrule 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Cursor 说正在使用 Pathrule,或回答中出现 Pathrule 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同

可连接 VS Code · 约 2 分钟

不需要密钥,不用安装程序

  1. 点击这个按钮打开 VS Code

    在 VS Code 中打开

    VS Code 会请你确认安装,点击 Install

  2. 在 VS Code 中以 Agent 模式打开 AI 聊天

  3. 试一试

    用 Pathrule 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 VS Code 说正在使用 Pathrule,或回答中出现 Pathrule 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同

其他支持 MCP 的应用(如 Windsurf、Zed、Gemini CLI)添加方式各不相同,请在应用列表中查看

查看所有支持 MCP 的应用 →

通过网页连接的应用使用的地址

地址https://cloud.pathrule.io/mcp

JSON 设置在下方“开发者专用”中

卡住了?问问正在用 Pathrule 的人💬 讨论 →
开发者专用:终端命令和 JSON 设置

通过网页连接

Claude Code

claude mcp add --transport http --scope user pathrule https://cloud.pathrule.io/mcp

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "pathrule": {
      "url": "https://cloud.pathrule.io/mcp"
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "pathrule": {
      "type": "http",
      "url": "https://cloud.pathrule.io/mcp"
    }
  }
}

安装在电脑上

Claude Code

claude mcp add --scope user pathrule -- npx -y @pathrule/mcp

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "pathrule": {
      "command": "npx",
      "args": [
        "-y",
        "@pathrule/mcp"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "pathrule": {
      "command": "npx",
      "args": [
        "-y",
        "@pathrule/mcp"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "pathrule": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@pathrule/mcp"
      ]
    }
  }
}

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

一览

每周下载量i
51/周
已验证域名
✓ pathrule.io
许可证i
Apache-2.0
连接方式
电脑或云端
传输方式
stdio, streamable-http
最新版本i
1.0.6
发布到注册中心i
2026年10月20日
代码最后更新i
2026年11月10日
作者
pathrule
软件包
npm: @pathrule/mcp
注册状态
活跃

哪些应用可以使用它

依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。

通过互联网连接,适用于

ClaudeChatGPTGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatOpen WebUIRaycast

在你的电脑上运行,适用于

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

全部应用及其优缺点 →

它能做什么

服务器要求先登录,才会列出它的工具。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月15日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过域名 pathrule.io 验证(注册中心会核实域名所有权)

  • ✓ 通过

    仍在维护

    代码最后更新于5天前

  • ✓ 通过

    有许可证

    使用 Apache-2.0

  • ✓ 通过

    端点有响应

    在 243 毫秒内响应(HTTP 401)

  • ✓ 通过

    使用 OAuth 登录

    声明支持 OAuth 登录,你的 AI 应用可以带你去登录

  • … 尚未检查

    工具描述中没有隐藏指令

    尚未检查;我们会在检查端点时读取工具列表

已公开的漏洞(OSV.dev)

OSV.dev 中没有 @pathrule/mcp@1.0.6 的记录

只检查这个版本的包本身,不包括所有依赖 · 检查于 2026年11月15日

我们检查什么 → · JSON

作者:申请重新检查或报告信息错误

讨论

提问、分享技巧或报告无法使用。按“有帮助”数量排序。

还没有帖子,欢迎第一个提问或分享。

此处内容由用户撰写,不代表 PopNx 团队。

登录后发帖

用户评价

还没有评价

登录后写评价

与“开发者工具”中的其他服务器比较i

  • 星标数多于此分类中其他 5917 个服务器的 85%
  • 发布到注册中心的时间比此分类中其他 5917 个服务器的 53% 更新
  • 基础检查结果等于或优于此分类中其他 5917 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Pathrule 安全吗?

它在 5 项适用的基础检查中通过了 5 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

两种方式都可以:安装在你的电脑上,或者连接云端版本。

它还在维护吗?

GitHub 仓库最后更新于5天前,最新版本(1.0.6)于26天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,因此也能用于接受远程 MCP 的应用,例如网页版 ChatGPT(Business 及以上为完整 MCP;Pro 为只读)。

有什么可以替代它?

同一分类中有:GitDiagram, Appllama, Cloudflare MCP, Omnara, Repowise

功能相近的其他选择

同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

GitDiagram

Architecture diagrams, explanations and Mermaid source for public GitHub repositories.

作者:ahmedkhaleel2004广泛使用★ 1.9万2个月前更新

在云端运行✓ 服务方 · gitdiagram.comPopNx 团队已实际试用

Appllama

Study screens, flows and paywalls from top-earning iOS apps, then build from what wins.

作者:Appllama广泛使用★ 51743个月前更新

在云端运行✓ 服务方 · appllama.io

Cloudflare MCP

Cloudflare MCP servers

作者:cloudflare广泛使用★ 446614个月前更新

在云端运行✓ 服务方 · mcp.cloudflare.comPopNx 团队已实际试用

Omnara

Deploy durable AI agents with Omnara, an open-source managed-agent platform.

作者:omnara-ai广泛使用★ 34002个月前更新

在云端运行✓ 服务方 · omnara.com

Repowise

Codebase intelligence for AI coding agents: graph, git history, docs, decisions, code health.

作者:repowise-dev广泛使用↓ 6506/周★ 8138 整个仓库的星标前天更新

电脑或云端✓ 服务方 · repowise.dev
  • GitDiagram — 在云端运行,无需安装 · 不需要密钥
  • Appllama — 在云端运行,无需安装 · 不需要密钥
  • Cloudflare MCP — 在云端运行,无需安装 · 不需要密钥 · 在 Claude 的目录中
  • Omnara — 在云端运行,无需安装 · 不需要密钥
  • Repowise — 云端或安装在电脑上都可以 · 不需要密钥

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

English · Español · Français · Deutsch · 日本語 · Italiano · Türkçe · Português (Brasil)

Your AI forgets. Pathrule remembers.

The open-source knowledge layer for coding agents. Pathrule keeps what your project has learned as memories, rules and skills scoped to paths in your code, and gives Claude Code, Codex, Cursor, GitHub Copilot and Windsurf only what the task in front of them needs, before they act.

PathruleBench, 2,000 items: 55% lower cost a chain · 2.7× fewer input tokens · 97% of memory probes passed · the numbers

Website · Docs · Quickstart · Benchmarks · Smarter over time · Changelog

Same request, same agent. On the right, Pathrule's hook hands over the three notes filed for apps/web/dashboard before the agent writes a line.

Works with Claude Code · Codex · Cursor · GitHub Copilot · Windsurf · any MCP client

Quickstart

Node.js 22.14.0 or newer, on macOS, Linux or Windows.

npm i -g @pathrule/cli

pathrule setup --local # no account: knowledge stays on this machine pathrule doctor # see what each agent receives

Restart your agent. From the next session on, it gets the notes for the path it is about to touch, and writes new ones as it works.

Other ways inCommandGood for
VS Code extensioncode --install-extension Pathrule.pathrule-vscodeKnowledge beside the code. Marketplace and Open VSX.
Claude Code / Codex plugin/plugin marketplace add pathrule/pathrule · codex plugin marketplace add pathrule/pathruleInstalling from inside the agent. Setup shows a plan before it changes anything.
Cursor pluginCursor Marketplace → PathruleThe same hooks, MCP and skills inside Cursor.
Gemini CLI / OpenCode plugingemini extensions install https://github.com/pathrule/gemini-cli-extension · opencode plugin @pathrule/opencode --globalThe same setup in Gemini CLI and OpenCode.
Any MCP clientnpx -y @pathrule/mcpAgents without a plugin system. Listed in the official MCP Registry.
Local Consolepathrule uiBrowse and edit knowledge on 127.0.0.1. No account.
Remote MCPclaude mcp add --transport http pathrule https://cloud.pathrule.io/mcpTrying it with nothing installed. No hooks, no local mode.
From sourcepnpm install && pnpm cli:bundleHacking on Pathrule. See docs/quickstart.md.

Explain it once

Coding agents start every session blank. So the same correction comes back, day after day, agent after agent:

DayAgentWhat you typed
MonClaude Code“use our api client, not fetch”1st
TueClaude Code“again: api client, not fetch”2nd
WedCodex“we use the api client.”3rd
ThuCursor“I told you yesterday. api client.”4th
FriClaude Code“API CLIENT. NOT FETCH.”5th

Five sessions, three agents, nothing remembered. With Pathrule you say it once:

  1. You fix it once, the way you normally would.
  2. Pathrule files it next to the code it is about: a memory on features/, not a line in a file every session has to read.
  3. Every agent knows from the next session on, whichever one you open.

Only what matters

A workspace collects hundreds of notes. An agent editing features/orders needs four of them.

Knowledge is matched by path, scope and relevance, then fit to a per-prompt budget. Enforced rules are never cut for space. Whatever does not fit is listed by title, so the agent can ask for it. When a prompt names a function or a type, the hook also points the agent to the file and line where it is defined (JS/TS, Python, Go).

Three kinds of knowledge
KindWhat it holdsExample on features/
MemoryDecisions, gotchas and incidents, in short markdown.“Use the api client. It handles auth and retries.”
RuleConstraints the agent must follow, ranked above advice.“Data loading goes through React Query.”
SkillReusable procedures and checklists an agent can run.“Run the checks before calling it done.”
Three ways in
ChannelWhen it reaches the agentCost
Path-scoped rule filesClaude Code reads Pathrule's own .claude/rules/pathrule/ at session start, each file scoped to its paths. Your CLAUDE.md and AGENTS.md are left as they are.Cached by the client.
HooksBefore the agent acts: on session start, on each prompt and on file tools. Only new or changed context is sent again.Budgeted per prompt.
MCP get_contextWhen the agent asks, at the depth the request needs.Every MCP client has it.

Why not just CLAUDE.md?

A CLAUDE.md file is read whole on every step, so every note your team adds makes every session cost more. Pathrule sends each prompt only what the path and the task need. PathruleBench measured the difference with the same agent, the same prompts and the same hidden checks, from 500 to 2,000 items of team knowledge.

At 2,000 items of team knowledgeCLAUDE.mdPathrule
Cost a chain of 8 sessions$3.89–$4.21$1.76–$1.89
Input tokens a chain11.8–12.5 M4.3–4.7 M
Memory probes passed89%97%
Chains that passed every memory probe0 of 95 of 9
A habit said once, followed later78%97%
What a failing command taught, kept33%78%
The work each prompt asked for100%100%

From 500 to 2,000 items, a chain with CLAUDE.md costs 89–98% more. With Pathrule it moves between −1% and +10%. Your knowledge base can grow; the bill does not.

Claude Code with claude-sonnet-5-5 in Python, Go and TypeScript; nine chains an arm at 2,000 items (three per language); executable tests decide every pass, no model judges. The Pathrule arm is this repository's open-source CLI in local mode: no Cloud, no model.

[Every condition, chain and check, and how to run it yourself → pathrule/benchmark](https://github.com/pathrule/benchmark)

Smarter the longer you use it.

Day one needs no account, no network and no model. Everything after builds on what you and your agents already did in this repository.

WhenWhat Pathrule doesWhere it runs

| Day 0 Foundation | Hooks and the local MCP server are wired into your agents. What you write is delivered per path, within a budget, through the hooks and Claude Code's path-scoped rules; your own CLAUDE.md and AGENTS.md are left as they are. | Open source, this machine | | Week 1 Memory | A decision you state in a prompt (“from now on…”, “we decided…”) is saved in your own words. A lesson a failing command taught is saved once. Each note is filed next to the code it is about, and only new or changed context is sent again. | Open source, this machine | | Month 1 Your habits | A preference you state lives in a local file of your own. Said once in passing, it waits; said again in another session, it reaches every agent. One you call lasting is in force at once. A project rule always wins over a personal one. | Open source, this machine | | Month 3 At scale | Thousands of notes, and a session stays the same size: the root rules file stays around 6k characters and the rest arrives per prompt. A sentence that says where code lives is marked (as of writing), so when a teammate moves the file the agent follows the code. When an edit writes a value a newer decision replaced, the hook quotes the decision at that edit. | Open source, this machine | | When you choose Team | The same knowledge on every machine and for every member. For a Cloud workspace, a model also reads the prompts Pathrule's phrase rules found nothing in and keeps the sentence you meant to last, still in your words. It is paid from AI Credits. | Pathrule Cloud, opt-in |

No model runs on your machine. Everything before Team is the open-source CLI, the same path the benchmark above measured.

Switch agents. Keep the knowledge.

<source media="(prefers-color-scheme: dark)" srcset="docs/assets/readme/en/

只显示了开头部分;其余内容请在仓库中阅读