Imperal MCP
概览
作者提供的说明(英文原文)
Build, validate, smoke-test & deploy Imperal declarative IR apps from any LLM or agent.
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i1 项中通过 1 项依据公开信息检查;尚未扫描代码
- 使用情况i起步阶段↓ 1673/周 · ★ –
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio
- 分类: 搜索与 AI 记忆
- 你需要填写:IMPERAL_TOKEN
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:1 项中通过 1 项
- 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
- 需要你自己填写:
IMPERAL_API_URL,IMPERAL_TOKEN
标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
- PyPI已安装 Python 的 uv(用于 uvx 命令)
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"imperal": {
"command": "uvx",
"args": [
"imperal-mcp"
],
"env": {
"IMPERAL_API_URL": "your-value",
"IMPERAL_TOKEN": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add imperal --env IMPERAL_API_URL=your-value --env IMPERAL_TOKEN=your-value -- uvx imperal-mcp运行前请先填写空着的值。
或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"imperal": {
"command": "uvx",
"args": [
"imperal-mcp"
],
"env": {
"IMPERAL_API_URL": "your-value",
"IMPERAL_TOKEN": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"imperal": {
"type": "stdio",
"command": "uvx",
"args": [
"imperal-mcp"
],
"env": {
"IMPERAL_API_URL": "your-value",
"IMPERAL_TOKEN": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
需要你填写的值
IMPERAL_API_URLenvOverride the Imperal API base URL (default: https://auth.imperal.io). Leave unset for production.- Optional service token for CI or headless environments. When set, skips browser login. Obtain from panel.imperal.io → Developer → Access tokens.
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月10日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 imperalcloud 验证,该账户拥有此仓库
- … 尚未检查
仍在维护
我们还没有从 GitHub 读取这个仓库
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与“搜索与 AI 记忆”中的其他服务器比较i
- 星标数多于此分类中其他 5789 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 5789 个服务器的 97% 更新
- 基础检查结果等于或优于此分类中其他 5789 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Imperal MCP 安全吗?
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
你需要填写:IMPERAL_TOKEN
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于–,最新版本(0.9.13)于昨天进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
有什么可以替代它?
同一分类中有:Context7, Codebase Memory, Exa
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Codebase Memory
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Exa
Connect AI agents to Exa for web search, content fetching, and multi-step research.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
imperal-mcp - The Exoskeleton for Your AI Coding Agent 🐝
Stop babysitting your AI. Put it in an exoskeleton: it remembers everything, sees your whole codebase, can undo any change and can't fake a result - or hallucinate one past you. Fewer wasted tokens, fewer broken builds. Works with Claude Code, Cursor, OpenAI Codex, Gemini CLI, Windsurf, Claude Desktop, Cline and Goose.
pipx install "imperal-mcp[code]" && imperal-mcp login && imperal-mcp setup
Keep the quotes: zsh (the macOS default) reads [code] as a file pattern without them. No pipx yet? uv tool install "imperal-mcp[code]" does the same, or see Quick start.
The code tools work offline, no account needed. Memory across sessions, the kernel's frame and the hallucination check run on an Imperal Cloud account (imperal-mcp login) - sign-up is free, plans and credits: imperal.io/pricing.
The problem
AI coding agents are brilliant - and work blind:
- They forget. Every new session, every switch from Cursor to Claude Code, starts from zero. You explain your architecture again. And again.
- They burn tokens. To look at one function they read the whole 2,000-line file, then
grepthe repo and read three more files. - They hallucinate. A function that doesn't exist. A file it never opened. "I updated the caller" - which one? "All tests pass" - nobody ran them. Said with total confidence, and you only find out in production.
- They break things. They edit a shared helper without knowing who calls it, and a failed experiment leaves your working tree dirty.
The fix: put your agent in an exoskeleton
imperal-mcp wraps the agent you already use. Same model, new abilities:
| Your agent today | In the exoskeleton |
|---|---|
| Forgets everything between sessions and tools | Total memory - every step, finding and decision of every session, across terminals, IDEs, the web panel and Telegram |
| Reads whole files to find one function | X-ray vision - a live map of your code: it reads the 28 lines it needs, not 2,000 |
| Edits blind | Knows the blast radius - every caller and file a change reaches, *before* the edit |
| Leaves broken experiments behind | A safety net - invisible checkpoints; any change undone in one call, your .git untouched |
| Invents functions, files and results | Hallucination check - every name, file and result it states is matched against what it really read and ran |
| Says "done" when it isn't | A referee - a task closes only with proof the kernel saw: a diff, a check that passed, a finding with sources |
| Works alone | A team - sees your other agents working right now and talks to them |
An illustration of one task - your own numbers: token_savings() measures them in every session.
WITHOUT the exoskeleton
- cat service.py (1,800 lines) -> 72,000 chars dumped into context
- grep -rn "process_order" . -> 140 noisy matches
- read 3 more files to trace callers -> +95,000 chars burned
- edit a shared function blind -> 2 callers broken, a syntax error left behind
- "I also updated retry_backoff()" -> that function doesn't exist
- "Done, tests pass!" -> it never ran them
- open Cursor tomorrow -> total amnesia
WITH the exoskeleton
- frame -> the task, what is proven, the code around your focus, the world
- read_symbol("service.py", "Order.run") -> only the 28 lines that matter
- impact_of_change(["Order.run"]) -> every caller, before you touch a line
- checkpoint("before-refactor") -> undo in one call if it goes wrong
- task(goal, items) -> an item closes only when the kernel saw the proof
- "I also updated retry_backoff()" -> held back: no file it read holds that name
- tomorrow, any tool -> recall: the whole history is there
Hallucinations: caught before they reach you
You can't trust a sentence just because it sounds sure. So the exoskeleton doesn't trust the model's words - it checks them against the record of what actually happened in this task.
On every step, the names the agent's thinking leans on - functions, files, sizes - are matched against what the task really read, what its commands really returned and what your code map really holds. A name found nowhere comes back in the next frame as NAMED BUT NOT FOUND, before the agent builds on it.
On the final answer, the same check runs once more. Name a symbol nobody read, a file nobody opened, a size nobody measured - and the answer doesn't reach you. It goes back to the agent:
KERNEL FACTS: your answer states what the kernel did not see happen:
retry_backoff-- no file this task read and no output it got contains this name
Correct the answer to the facts, or do the missing work first.
The agent then reads the code it skipped, or corrects the claim. Either way, what you get is backed by something real.
On "done", words count for nothing: a plan item closes only on a proof the kernel measured - a diff, a check that exited 0, a finding with its sources. "Tests pass" without a test run is not a pass.
What it can't do - and we'd rather tell you: it doesn't make the model smarter. An agent can still draw a wrong conclusion from true facts. What it can no longer do is pass off what it never saw.
Powered by ICNLI - the new HTTP for AI
HTTP gave every computer one way to talk to every other. ICNLI gives people and AI agents - and agents among themselves - one way to work together that can be proven: whatever the model, whatever the tool.
[ICNLI](https://icnli.org) (Infrastructure Contextual Natural Language Interface) is the open protocol at the heart of the exoskeleton - and the reason it can promise honesty, not just speed.
Under ICNLI, an agent's work is a state the kernel can prove, not a story the model tells:
- Every step is measured. What a call read, changed or returned is recorded by the kernel - never taken from the model's words.
- Proven vs. claimed. The step frame shows what is proven and what is only claimed; a plan item is done only when its proof (a diff, a check that exited 0, a finding with sources) was seen.
- Decisions from facts. Progress, loops and stalls are computed from what the steps returned, and stated to the agent in plain words.
- One state, every surface. The same session state serves the terminal, the IDE, the web panel and Telegram.
MCP is how your agent talks to the exoskeleton. ICNLI is how the exoskeleton thinks. The specification is open (CC BY-SA 4.0) at icnli.org.
Quick start
# 1. Install (Python 3.7 - 3.14; the code map included) -- quotes required in zsh
pipx install "imperal-mcp[code]"
or: uv tool install "imperal-mcp[code]"
or: pip install "imperal-mcp[code]" only INSIDE a virtual environment: a bare pip install into the system
Python is refused on Debian 12+/Ubuntu 23.04+/Homebrew (error: externally-managed-environment)
no pipx? macOS: brew install pipx · Debian/Ubuntu: sudo apt install pipx · then: pipx ensurepath
2. Sign in to Imperal Cloud (memory, the kernel's frame, apps)
imperal-mcp login
3. Wire every shell found on this machine: server + hooks + protocol
imperal-mcp setup # Claude Code, Codex, Antigravity CLI, Gemini CLI
That's it. From the next prompt on, your agent starts each step from the kernel's frame, remembers across sessions and gets its final answer checked.
Other ways to connect
Claude Code only, in this project:
imperal-mcp claude-setup --with-hooks
Adds the imperal server to .mcp.json (keeps your entries, refuses to overwrite malformed JSON), appends the exoskeleton protocol to CLAUDE.md, and installs a PostToolUse hook that syntax-checks every Edit/Write.
Claude Code CLI:
claude mcp add imperal -- imperal-mcp
Cursor / Claude Desktop / Windsurf / Cline (.mcp.json or claude_desktop_config.json):
{
"mcpServers": { "imperal": { "command": "imperal-mcp", "args": [], "env": { "IMPERAL_WORKSPACE": "/absolute/path/to/your/repo" } } } }
Any other MCP stdio client: run imperal-mcp with IMPERAL_WORKSPACE set to your repository root.
Pricing: sign-up is free; plans and credits are on imperal.io/pricing. In imperal-mcp
only
framespends credits; every other tool is free, and the local code tools work offline.
For the geeks: how it works
The loop
- `frame` - at the start and after each change. The kernel's step frame: the task and plan with what is proven, the code around the focus from the exact graph, what the change reaches, the machines and repos, the path so far, and a DECISION section to act on first. With
imperal-mcp setup, the shell's prompt hook puts it in context automatically. - `task(goal, items)` - declare the request and the plan; an item closes only by a proof the kernel saw. An item that cannot be finished is marked blocked with the reason.
- Code -
orient->outline->read_symbol;search_code/grep_codefor exact text;impact_of_changebefore editing a shared symbol. The same tools reach a server's repo withtarget="host: "ortarget="ssh: ". - Safety -
checkpointbefore risky edits,checkpoint_diff,checkpoint_rollback;check_syntaxafter. - Memory - every call, thought and answer is written to the vault by the shell's hooks; look back with
recall,search_history,state_lens,vault_log_read. - The final check - the stop hook sends the final answer to the kernel: an answer that names a file, symbol or size the task never read is handed back to the agent, and open plan items are listed to you.
Hooks (installed by imperal-mcp setup)
| Event | What happens |
|---|---|
session-start | The session is bound to its kernel state; a missing install is reported |
prompt | Your request is recorded; the kernel's frame for this step is put in context |
post-tool | Every call and its result go to the vault; edits are syntax-checked |
stop | The final answer is checked against the facts; open plan items are named |
Tool catalog (34 tools, 4 resources, 1 prompt)
Kernel & task (Imperal Cloud)
| Tool | What it does |
|---|---|
frame(root?, target?) | The kernel's step frame - task, proofs, code around the focus, reach of the change, world, path |
task(goal, items?) | Declare the request and the plan; items close only by a measured proof |
| state_lens(section?, focus?, conversation?) | What the kernel holds, by section (law, plan, reality, memory, conversation, path) - yours or another live sessio
只显示了开头部分;其余内容请在仓库中阅读