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

Angular token saver

作者:Alex88Ryabov版本 0.2.0i★ 0i在你的电脑上运行代码仓库 ↗
注册名称io.github.Alex88Ryabov/ng-token-saver

安装方法

What it does

Compiler-backed Angular template answers, component contracts and version facts for AI agents

  • Connects 在你的电脑上运行
  • Account or key Needs NG_TOKEN_SAVER_IDLE_MS, NG_TOKEN_SAVER_PREWARM, NG_TOKEN_SAVER_TRACE
  • Category 文档、表格与办公

可搭配使用

教 AI 做这类工作的 Skill,可与本项一起使用

MinerU

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

作者:opendatalab★ 83,9191 个 skill

Skill · 操作手册未注明许可证

watermarks-remover

A privacy-first app that strips AI watermarks from content you own.

作者:guillaumemeyer★ 27,7231 个 skill

Skill · 操作手册

obsidian-skills

Agent skills for Obsidian. Teach your agent to use Obsidian CLI and open formats including Markdown, Bases, JSON Canvas.

作者:kepano★ 53,104 (whole repo)5 个 skill

Skill · 操作手册

为什么排在这里

列表按使用分(满分 100)排序,由以下部分组成

热度0/80GitHub 星标或每周下载量:较大的计 60,较小的计 20
新鲜度12/1230 天内有发布或代码更新得满分
仍在响应0/8上次检查时云端端点有响应
使用分12/100

质量: 基础检查通过 3/3 项(仅展示,不用于排序) · 上升势头: 暂无数据 (只用于“上升中”标签)

安装

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

通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月14日

第一步:你用哪个 AI?

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

可连接 Claude,但需要先准备

需要 Angular token saver 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用

让 AI 帮你安装

把这段话复制到 Claude 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。

请在这台电脑上为 Claude 安装 MCP server Angular token saver,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "ng-token-saver": { "command": "npx", "args": [ "-y", "@alex-apps/ng-token-saver" ], "env": { "NG_TOKEN_SAVER_IDLE_MS": "your-value", "NG_TOKEN_SAVER_PREWARM": "your-value", "NG_TOKEN_SAVER_TRACE": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) NG_TOKEN_SAVER_IDLE_MS, NG_TOKEN_SAVER_PREWARM, NG_TOKEN_SAVER_TRACE 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Angular token saver 的工具真的出现了。

这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。

  1. 安装 Node.js(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    node -v
    • 显示版本号(例如 v26.13.1)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令

    打开 Node.js 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v

    安装一次,所有需要 Node.js 的工具都能用

  2. 注册并创建 Angular token saver 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 Angular token saver 网站 ↗

  3. 打开电脑版 Claude 应用的设置文件

    SettingsDeveloperEdit Config

  4. 粘贴这些设置并保存文件

    {
      "mcpServers": {
        "ng-token-saver": {
          "command": "npx",
          "args": [
            "-y",
            "@alex-apps/ng-token-saver"
          ],
          "env": {
            "NG_TOKEN_SAVER_IDLE_MS": "your-value",
            "NG_TOKEN_SAVER_PREWARM": "your-value",
            "NG_TOKEN_SAVER_TRACE": "your-value"
          }
        }
      }
    }

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  5. 退出 Claude 再重新打开

  6. 试一试

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

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

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

ChatGPT 暂时无法连接 Angular token saver

Angular token saver 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器

你可以改用这些方式

A · 使用能连接 Angular token saver 的应用

  • 需要 Angular token saver 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
  • 需要 Angular token saver 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)
  • 需要 Angular token saver 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)
  • 需要 Angular token saver 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)

B · 文档、表格与办公 类中能连接 ChatGPT 的其他服务器

从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的

可连接 Claude Code,但需要先准备

需要 Angular token saver 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)

让 AI 帮你安装

把这段话复制到 Claude Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。

请在这台电脑上为 Claude Code 安装 MCP server Angular token saver,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):claude mcp add --scope user ng-token-saver --env NG_TOKEN_SAVER_IDLE_MS=your-value --env NG_TOKEN_SAVER_PREWARM=your-value --env NG_TOKEN_SAVER_TRACE=your-value -- npx -y @alex-apps/ng-token-saver 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) NG_TOKEN_SAVER_IDLE_MS, NG_TOKEN_SAVER_PREWARM, NG_TOKEN_SAVER_TRACE 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Angular token saver 的工具真的出现了。

这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。

  1. 安装 Node.js(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    node -v
    • 显示版本号(例如 v26.13.1)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令

    打开 Node.js 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v

    安装一次,所有需要 Node.js 的工具都能用

  2. 注册并创建 Angular token saver 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 Angular token saver 网站 ↗

  3. 打开终端

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

  4. 粘贴这条命令并按 Enter

    claude mcp add --scope user ng-token-saver --env NG_TOKEN_SAVER_IDLE_MS=your-value --env NG_TOKEN_SAVER_PREWARM=your-value --env NG_TOKEN_SAVER_TRACE=your-value -- npx -y @alex-apps/ng-token-saver

    按 Enter 前,把“your-value”改成你的密钥

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  5. 在 Claude Code 中输入 /mcp

    应能看到 Angular token saver 在列表中并显示已连接

  6. 试一试

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

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

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

可连接 Cursor,但需要先准备

需要 Angular token saver 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)

让 AI 帮你安装

把这段话复制到 Cursor 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。

请在这台电脑上为 Cursor 安装 MCP server Angular token saver,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "ng-token-saver": { "command": "npx", "args": [ "-y", "@alex-apps/ng-token-saver" ], "env": { "NG_TOKEN_SAVER_IDLE_MS": "your-value", "NG_TOKEN_SAVER_PREWARM": "your-value", "NG_TOKEN_SAVER_TRACE": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) NG_TOKEN_SAVER_IDLE_MS, NG_TOKEN_SAVER_PREWARM, NG_TOKEN_SAVER_TRACE 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Angular token saver 的工具真的出现了。

这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。

  1. 安装 Node.js(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    node -v
    • 显示版本号(例如 v26.13.1)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令

    打开 Node.js 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v

    安装一次,所有需要 Node.js 的工具都能用

  2. 注册并创建 Angular token saver 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 Angular token saver 网站 ↗

  3. 点击这个按钮打开 Cursor

    在 Cursor 中打开

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

  4. 填写你的密钥

    在 Angular token saver 的设置中,NG_TOKEN_SAVER_IDLE_MS, NG_TOKEN_SAVER_PREWARM, NG_TOKEN_SAVER_TRACE 还是空的,填入你的密钥并保存

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

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

  6. 试一试

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

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

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

可连接 VS Code,但需要先准备

需要 Angular token saver 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)

让 AI 帮你安装

把这段话复制到 VS Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。

请在这台电脑上为 VS Code 安装 MCP server Angular token saver,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "servers": { "ng-token-saver": { "type": "stdio", "command": "npx", "args": [ "-y", "@alex-apps/ng-token-saver" ], "env": { "NG_TOKEN_SAVER_IDLE_MS": "your-value", "NG_TOKEN_SAVER_PREWARM": "your-value", "NG_TOKEN_SAVER_TRACE": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) NG_TOKEN_SAVER_IDLE_MS, NG_TOKEN_SAVER_PREWARM, NG_TOKEN_SAVER_TRACE 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Angular token saver 的工具真的出现了。

这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。

  1. 安装 Node.js(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    node -v
    • 显示版本号(例如 v26.13.1)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令

    打开 Node.js 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v

    安装一次,所有需要 Node.js 的工具都能用

  2. 注册并创建 Angular token saver 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 Angular token saver 网站 ↗

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

    在 VS Code 中打开

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

  4. 填写你的密钥

    在 Angular token saver 的设置中,NG_TOKEN_SAVER_IDLE_MS, NG_TOKEN_SAVER_PREWARM, NG_TOKEN_SAVER_TRACE 还是空的,填入你的密钥并保存

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

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

  6. 试一试

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

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

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

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

查看所有支持 MCP 的应用 →

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

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

安装在电脑上

Claude Code

claude mcp add --scope user ng-token-saver --env NG_TOKEN_SAVER_IDLE_MS=your-value --env NG_TOKEN_SAVER_PREWARM=your-value --env NG_TOKEN_SAVER_TRACE=your-value -- npx -y @alex-apps/ng-token-saver

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "ng-token-saver": {
      "command": "npx",
      "args": [
        "-y",
        "@alex-apps/ng-token-saver"
      ],
      "env": {
        "NG_TOKEN_SAVER_IDLE_MS": "your-value",
        "NG_TOKEN_SAVER_PREWARM": "your-value",
        "NG_TOKEN_SAVER_TRACE": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "ng-token-saver": {
      "command": "npx",
      "args": [
        "-y",
        "@alex-apps/ng-token-saver"
      ],
      "env": {
        "NG_TOKEN_SAVER_IDLE_MS": "your-value",
        "NG_TOKEN_SAVER_PREWARM": "your-value",
        "NG_TOKEN_SAVER_TRACE": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "ng-token-saver": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@alex-apps/ng-token-saver"
      ],
      "env": {
        "NG_TOKEN_SAVER_IDLE_MS": "your-value",
        "NG_TOKEN_SAVER_PREWARM": "your-value",
        "NG_TOKEN_SAVER_TRACE": "your-value"
      }
    }
  }
}

需要你填写的值

  • NG_TOKEN_SAVER_IDLE_MS 机密 必填 env
    Idle milliseconds before a language server session shuts down; 0 disables the shutdown. Default 900000.
  • NG_TOKEN_SAVER_PREWARM 机密 必填 env
    1 lets ng_workspace_map with a path inside an app load that app into the language server in the background. Costs ~1 GB of memory until the idle shutdown.
  • NG_TOKEN_SAVER_TRACE 机密 必填 env
    用于追加原始 LSP 通信数据以便调试的文件路径。
    查看英文原文Path to a file to append raw LSP traffic to, for debugging.

说明为自动翻译,变量名保持原样;不确定时请查看原文。

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

一览

每周下载量i
67/周
许可证i
GPL-3.0
连接方式
在你的电脑上运行
最新版本i
0.2.0
发布到注册中心i
2026年9月25日
代码最后更新i
2026年11月10日
作者
Alex88Ryabov
软件包
npm: @alex-apps/ng-token-saver
注册状态
活跃

哪些应用可以使用它

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

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

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

全部应用及其优缺点 →

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

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

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 Alex88Ryabov 验证,该账户拥有此仓库

  • ✓ 通过

    仍在维护

    代码最后更新于8天前

  • ✓ 通过

    有许可证

    使用 GPL-3.0

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

已公开的漏洞(OSV.dev)

OSV.dev 中没有 @alex-apps/ng-token-saver@0.2.0 的记录

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

我们检查什么 → · JSON

作者:申请重新检查或报告信息错误
给作者:在 README 中加徽章

如果你是作者,可把这段代码贴到 README。徽章会链接回本页。

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/alex88ryabov-ng-token-saver.svg)](https://mcp.popnx.com/en/servers/alex88ryabov-ng-token-saver)

讨论

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

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

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

登录后发帖

用户评价

还没有评价

登录后写评价

与“文档、表格与办公”中的其他服务器比较i

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

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

常见问题

Angular token saver 安全吗?

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

它需要哪些密钥或代码?

你需要填写:NG_TOKEN_SAVER_IDLE_MS, NG_TOKEN_SAVER_PREWARM, NG_TOKEN_SAVER_TRACE

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

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于8天前,最新版本(0.2.0)于2个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Puter MCP, XcodeBuildMCP, Vexa, Atlassian Rovo MCP Server, Anki MCP Server

功能相近的其他选择

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

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

Puter MCP

Puter MCP enables AI tools to interact with Puter: manage files, websites, workers, and more

作者:HeyPuter广泛使用★ 4.4万5个月前更新

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

XcodeBuildMCP

XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.

作者:getsentry广泛使用↓ 13万/周 共用包的下载量★ 65854个月前更新

在你的电脑上运行✓ 服务方 · xcodebuildmcp.com

Vexa

Meeting bot and transcripts for Google Meet, Teams and Zoom. Live or after, speakers labelled.

作者:Vexa-ai广泛使用★ 29942个月前更新

在云端运行✓ 服务方 · vexa.ai

Anki MCP Server

MCP server for Anki flashcards: adaptive review, notes, media, and deck management via AnkiConnect.

作者:ankimcp正在增长↓ 1136/周★ 56744天前更新

在你的电脑上运行✓ 服务方 · ankimcp.ai
与相似项目对比
本项
Angular token saver
Puter MCPXcodeBuildMCPVexaAtlassian Rovo MCP ServerAnki MCP Server
运行位置需要安装在电脑上在云端运行,无需安装需要安装在电脑上在云端运行,无需安装在云端运行,无需安装需要安装在电脑上
需要密钥是否否是否否
可在 Claude 中按 + 添加否否否否是否
基础检查3/34/43/32/44/43/3
许可证GPL-3.0AGPL-3.0MITApache-2.0Apache-2.0MIT
价格登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用

作者的 README

打开 README

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

ng-token-saver

An MCP server that lets an AI agent understand Angular templates by asking the same compiler that builds the project, instead of guessing from file text. The token saving is measured, not promised.

Angular ships a first-class language server, but no official AI integration exposes it — the Angular CLI MCP (ng mcp) works at the docs-and-build level and does not touch templates. This server is that missing layer, and it answers for the Angular version the project actually runs.

Everything below marked as measured was produced by running code against six real Angular workspaces (17.3.12, 18.2.14, 19.2.25, 20.3.26, 21.2.18, 22.0.8) and two production projects. Every number can be reproduced with the commands in Reproducing the measurements.

Measured on a production Nx monorepoResult
A component's contract instead of its whole file67% fewer tokens over 1298 components
Where one input is bound on a component used 577 times50 527 → 1 035 tokens against the grep path
Errors of one template81 tokens, 1 ms warm against a 395-token compiler listing
Whole Claude Code sessions, five read-only questions × 3no saving: +15% input tokens, −4% cost, 60 of 60 answers right in every arm — why

The last row stays in the table: a per-call saving is not a per-session one, and the difference is explained below.

Quick start

The language server ships as a regular dependency — nothing to install besides the package:

npm install -g @alex-apps/ng-token-saver

Claude Code:

claude mcp add ng-token-saver -- ng-token-saver

Or, in Claude Code, as a plugin — the same server through npx, plus the one-line hints toward it; no global install needed:

/plugin marketplace add Alex88Ryabov/alex-apps-ng-token-saver

/plugin install ng-token-saver@ng-token-saver

A server already registered with claude mcp add would then run twice; remove it with claude mcp remove ng-token-saver. The plugin's tools carry a plugin prefix (mcp__plugin_ng-token-saver_ng-token-saver__…), so permission rules and agent tool lists written for the bare names need the new ones.

Codex CLI:

codex mcp add ng-token-saver -- ng-token-saver

Any other MCP client:

{ "mcpServers": { "ng-token-saver": { "command": "ng-token-saver" } } }

Or skip the install and let the client fetch it through npx:

{ "mcpServers": { "ng-token-saver": { "command": "npx", "args": ["-y", "@alex-apps/ng-token-saver"] } } }

In Cursor that npx form is one click:

The npm and npx paths are verified by running: the packed tarball (79 kB, dist only) was installed into a clean prefix and all four tool kinds answered through a real MCP client, and the npx form connects in 1.2–2.0 s from a warm npm cache (the very first run on a machine also downloads the dependency tree — the language server alone unpacks to 13.6 MB).

A first question to ask it — the contract of a component whose members are scattered across an extends chain. Asked for fixtures/v17/src/app/derived-card.component.ts (a fixture in this repository), ng_component_info answers, verbatim:

{"found":true,"angularVersion":"17.3.12","className":"DerivedCardComponent","kind":"component","selector":"app-derived-card","standalone":true,"inlineTemplate":true,"styleUrls":[],"imports":[],"hostDirectives":[],"extends":"BasePanel","ancestors":[{"name":"BasePanel","file":"<repo>\\fixtures\\v17\\src\\app\\base-panel.ts"},{"name":"BaseWidget","file":"<repo>\\fixtures\\v17\\src\\app\\base-widget.ts"}],"inputs":[{"name":"accent","type":"boolean"},{"name":"heading","type":"string"},{"name":"disabled","type":"boolean"}],"outputs":[{"name":"blurred","type":"void"}],"publicMembers":[{"name":"focus","kind":"method","signature":"focus(): void","noop":true},{"name":"collapse","kind":"method","signature":"collapse(animated: boolean): void","noop":true}]}

811 characters with this checkout's absolute paths in place of , 305 ms on the session's first call (it loads the project's own TypeScript), single-digit milliseconds after. The asked file declares one input and an extends clause; heading, disabled, the output and both methods live in BasePanel and BaseWidget and are resolved statically, with their files named in ancestors for the next edit. "noop": true on focus() is the subclass shadowing it with an empty body — the kind of fact that otherwise costs a whole file read per ancestor.

Configs for Cursor, VS Code, Windsurf, Codex CLI and JetBrains, the Node floor, and running from source are in Requirements and setup.

The two problems it solves

1. No template awareness. grep over an .html file cannot tell you where {{ user().fullName }} is declared, and no amount of reading gives you TS2339 Property 'emailAddress' does not exist on type 'UserVm'. That is compiler output, not text.

2. Version drift. The AI context files on angular.dev (llms.txt) describe only the newest major and carry no version markers; the versioned archive sites serve none at all. On v17–v21 they hand the agent instructions that produce APIs which do not exist. Measured examples are in Version facts.

Tools

Six tools, 1040 characters of descriptions in total. Answers are dense JSON with no markdown.

ToolWhat it answersNeeds the language server
ng_template_definitionwhere a symbol on a template line is declared — the line as Read shows it, the symbol by nameyes
ng_template_diagnosticsAngular compiler errors for a template, or for a files batch; an entry anchored in the companion .ts carries file, a message repeated on several lines comes once with its linesyes
ng_component_infothe public contract of a component or directiveno
ng_workspace_mapprojects, versions, strictTemplates and zone.js per projectno
ng_version_ruleswhat exists and what does not in this project's Angular versionno
ng_find_usageswhere a component, directive, pipe or service is used; with input — where that input is boundno

Four of the six never start the language server, so they answer in milliseconds and keep working on workspaces where the server refuses to load.

Since 0.2.0 every position is 1-based, as Read shows it: ng_template_definition takes the line that way and the symbol by name (character is an alternative for a name that repeats on the line). 0.1.x took a 0-based line and character, the LSP convention — the same numbers now point one line lower.

Measured: contract instead of the whole file

ng_component_info returns the public contract of a component rather than its source. Measured across two production codebases through a real MCP client:

Nx monorepoCLI workspace\*
Angular / TypeScript19.2.18 / 5.8.317.3.8 / 5.3.3
Components in the tally1298407
Parse errors00
Sources5 404 708 chars1 735 223 chars
Contracts (base-class members included)1 759 331 chars463 563 chars
Saved67%73%
Saved in tokens (o200k_base proxy)67%71%
Contract shorter than source1201 of 1298 (93%)386 of 407 (95%)
Flagged as partial1 of 12983 of 407
First call (loads the project's TypeScript)306 ms564 ms

\* measured with the pre-0.1.2 wire format; the current format is leaner, so this saving is a floor.

The largest component in the monorepo shrinks from 177 863 to 10 770 characters while listing 117 contract members. Contracts include members inherited from base classes — the extends chain is resolved through relative imports, tsconfig path aliases and barrels. Before that resolver, 91 of 1298 monorepo contracts were flagged as partial; now 1 is.

Three caveats that travel with these numbers:

  • Tokens are counted through a proxy — OpenAI's o200k_base, since Claude's tokenizer is not public; cl100k_base agrees within one point on this data. Characters are exact.
  • The baseline is reading the whole file, which is what an agent does by default.
  • JSON tokenizes slightly worse than TypeScript, so token savings sit a point or two below character savings. The table carries both.

On small components there is no saving at all: a 17-line component produces a 578-character contract against a 315-character source. The contract grows with the number of members, the source with method bodies — and on production code the second wins almost always.

Measured: rename and diagnose

Renaming an input across usages. The grep path an agent actually takes — read the component file to learn the selector, then grep the selector and the binding spellings repo-wide — against ng_component_info plus ng_find_usages with its input filter, which returns only the tags that bind the name, each entry pointing at the binding itself. On the production monorepo, 6243 files scanned:

Componentgrep pathbridgesaved (o200k)
577 usages, mask bound on 5 tags50 527 tokens1 035 tokens98%
466 usages, icon bound on 463 tags41 698 tokens22 566 tokens46%
1211 usages, name bound on 1134 tags129 227 tokens30 650 tokens76%\*

\* the tool returns at most 500 entries per answer, and the answer says so.

The saving is decided by how many of the usages actually bind the input: mask is bound on 5 of 568 tags, and grep still prints every selector line plus 67 binding-shaped lines from across the repo — 62 of them somebody else's mask — while the bridge answers with exactly those five sites.

Diagnosing a template that will not compile. A whole-project compiler listing costs 395 tokens and 1321 ms; one ng_template_diagnostics call answers with the asked file's diagnostics in 81 tokens, 1 ms warm. The gap only widens with project size: the listing grows with the project, the answer does not. After an edit, fresh diagnostics arrive as a 340–400 ms push — against a rebuild.

Measured: whole sessions

The numbers above are per call. Whether they reach the bill was measured on whole sessions: five read-only questions on the production monorepo — an inherited contract, a plain contract, where one input is bound, where a component is used, which APIs the installed version has as stable — each answered three times by claude -p (Claude Code 2.1.322, claude-opus-5-5) in four arms, isolated from the machine's own CLAUDE.md, memory, hooks and MCP servers, with read-only tools and no subagents. Every one of the 60 answers was right.

ArmInput tokensOutput tokensCost\*Turns
A — no server1 322 30620 560$1.2765
B — no server, told to read only what the question needs1 347 28021 062$1.3970
C — B plus this server1 552 42921 634$1.3483
D — C plus the plugin hints1 537 52820 828$1.2379

\* Claude Code's own estimate at API list prices; cached input is cheap, so cost and token totals move apart.

Against the control (C versus B) the server **added 15% input tokens and saved 4%

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