optiflow-mcp
optiflow-mcp
一个单一的 Claude Code 插件,一个 MCP 服务器,一个仓库——不是围绕独立安装工具的包装器。它真正地将两个上游项目的真实源码合并到自己的代码库中:
token-optimizer-mcp 的 76 个真实
smart_*/分析/仪表盘监控 MCP 工具,以及其PreToolUse/PreCompact强制钩子,直接移植到src/optimizer/中——无需npx安装,无需独立进程。headroom 的实际 Rust 压缩核心(
SmartCrusher)分支到native/headroom-core/,经过功能精简并编译为真实的 WebAssembly(native/headroom-wasm/),由 Node 插件直接加载——是真正的 Rust 算法,而非重写。headroom 的 CodeCompressor 和 Kompress ML 模型则改用 TypeScript 在本地重新实现(src/native/)。五个两个上游工具均未覆盖的自有模块:chop 风格的 Bash/CLI 输出拦截、会话报告转录分析、状态栏上下文指示器、
/optiflow:compact-continue会话交接检查点,以及针对大型 JSON/CSV/YAML 负载的 TOON 转换。
两个上游项目仍作为 git 子模块引用在 vendor/ 下,用于来源/许可证文本,但 src/ 或 native/ 下的任何内容均不从 vendor/ 导入——参见 docs/ADR/0002-real-merge-not-orchestration.md 了解为何这取代了最初的编排包装器设计(v1),以及 docs/architecture.md 了解完整的权限映射和锁定决策。
状态
两个主要合并已完成并连接:来自 token-optimizer-mcp 的 76 个工具 + 强制钩子合并,以及 headroom 的压缩核心(WASM SmartCrusher + TS CodeCompressor/Kompress)实际在发布的流水线中被调用,而非仅独立构建。npm run build、npm test 和 npx tsc --noEmit 均通过——参见 docs/modules.md 了解每个模块的详细信息和当前测试数量。从源码构建需要 Rust 工具链(rustup、wasm32-unknown-unknown 目标、wasm-pack)以及 Node;插件安装则不需要(编译后的 .wasm 已提交,理由与 plugin/dist/ 相同)。
Related MCP server: claude-engineering-coach
快速开始
发布于 github.com/kristijankopacevic/optiflow-mcp。通过本地路径市场进行端到端验证(无需 gh 认证):
在 Claude Code 会话中,将此仓库添加为市场并安装插件:
/plugin marketplace add C:\path\to\optiflow-mcp /plugin install optiflow@optiflow检查你的环境:
optiflow doctor报告 Node/npm 版本、配置解析以及
gh存在性/认证状态。激活状态栏(可选,选择加入——仅安装插件不会修改你的 settings.json):
optiflow install --statusline在写入前备份你的
~/.claude/settings.json,以原子方式写入,并在没有--force的情况下拒绝覆盖不同的现有状态栏。optiflow uninstall可撤销此操作。参见docs/statusline-manual-setup.md了解详情(包括手动操作),以及docs/modules.md了解其余模块。
参见 docs/ 了解架构、配置以及超出此快速入门范围的每个模块的参考深度。
许可证
optiflow-mcp 自身代码采用 MIT 许可证(参见 LICENSE)。此仓库还从 MIT 许可证(token-optimizer-mcp)和 Apache-2.0 许可证(headroom)的上游项目复制了源码——参见 THIRD_PARTY_LICENSES.md 和 NOTICE。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceToken-optimized MCP server that reduces context window usage by 59.5% by grouping 12 tools into 5 semantic operations, preserving all original functionality for AI assistants.81MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server plugin for Claude Code that analyzes local AI session logs to provide coaching on coding patterns, tool usage, and productivity insights via tools and slash commands.1MIT
- FlicenseNot gradedqualityCmaintenanceToken-optimized persistent memory MCP server for Claude Pro users, providing 9 essential tools for memory management with 87% token reduction compared to full version.3
- FlicenseNot gradedqualityCmaintenanceSemantic compression MCP server that reduces document token usage by 60-80% using structured symbolic notation, enabling Claude to efficiently store, retrieve, diff, and summarise documents across PRD, CODE, PAPER, and MEETING domains.
Related MCP Connectors
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
A paid remote MCP for OpenAI Codex context compressor, built to return verdicts, receipts, usage log
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kristijankopacevic/optiflow-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server