Token导航 LogoToken导航TokenDH.com
Local MCP Context Kit logo
AI代理stdio官方级别未说明来源级核验

Local MCP Context Kit

MCP Server

一个可以与任何聊天窗口或大型语言模型(如Codex、Claude、ChatGPT等)一起使用的提示编译器,用于从项目的内存文件中构建一个令牌预算的上下文包,并生成角色切换提示。

工具数

0

提示词数

0

GitHub Stars

0

资源数

0
开发工具PythonClaude上下文管理Claude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

Mixers28

提供方

Mixers28

最后核验

2026/5/17 20:23

运行时

Python

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

python -m venv .venv

详细介绍

Universal Handoff Kit (Local MCP compatible)

A tiny prompt compiler you can use with *any chat window / any LLM* (Codex, Claude, ChatGPT, etc.). It builds a token-budgeted Context Pack from your repo’s memory files and prints a role handoff prompt you copy/paste.

This version is adapted to your local-mcp-context-kit layout:

  • Reads: docs/PROJECT_CONTEXT.md, docs/NOW.md, docs/SESSION_NOTES.md
  • Includes: docs/AGENT_SESSION_PROTOCOL.md (excerpt)
  • If present, uses your repo role prompts: .github/agents/*.agent.md
  • Can be run from anywhere inside the repo (auto-finds project root)

Install

Option A (recommended, venv)

From the repo root:

python -m venv .venv
source .venv/bin/activate
python -m pip install -e .

This exposes a handoffkit CLI (you can also use python -m handoffkit).

Option B (no install)

Run directly from the repo root:

python -m handoffkit --help

If you see externally-managed-environment, use a venv or install via pipx.

Usage

Run from *any* directory; just point --root somewhere inside the repo (or omit it if you’re already inside). If you didn’t install, replace handoffkit with python -m handoffkit.

Architect

handoffkit architect "Turn my idea into SPEC.md + phases/sprints" --root .

Coder

handoffkit coder "Implement Sprint 1 from SPEC.md" --root .

Reviewer (diff file)

git diff > patch.diff
handoffkit reviewer "Review this patch vs SPEC.md and best practices" --root . --diff patch.diff

Reviewer (pipe diff from stdin)

git diff | handoffkit reviewer "Review this patch vs SPEC.md and best practices" --root . --diff -

QA/Tester

handoffkit qa_tester "Write a lightweight test plan + edge cases" --root .

Polish

handoffkit polish "One-pass polish for clarity/consistency" --root .

Session Flow

Start Session

handoffkit session start --agent-role Coder --open-docs

This now runs mandatory startup drift checks (git status --porcelain and git diff --name-status HEAD --) and exits non-zero if the tree is dirty. If you intentionally want to continue with a dirty tree:

handoffkit session start --agent-role Coder --open-docs --allow-dirty

End Session (writeback + commit)

handoffkit session end --commit

Safety behavior:

  • requires docs/NOW.md and docs/SESSION_NOTES.md changes before commit
  • stages only docs/NOW.md, docs/SESSION_NOTES.md, and docs/PROJECT_CONTEXT.md by default
  • use --stage-all only when intentional:
handoffkit session end --commit --stage-all

Config (optional)

If no config is found, defaults are aligned to local-mcp-context-kit.

Example handoffkit.config.json:

{
  "token_budget": 7000,
  "baseline_files": ["docs/PROJECT_CONTEXT.md", "docs/NOW.md"],
  "session_notes_file": "docs/SESSION_NOTES.md",
  "session_notes_tail_lines": 120,
  "protocol_file": "docs/AGENT_SESSION_PROTOCOL.md",
  "protocol_tail_lines": 120
}

Notes

  • For best token efficiency, add summary blocks to your memory files:

- ... - Recommended in docs/PROJECT_CONTEXT.md, docs/NOW.md, and docs/SESSION_NOTES.md

  • The output ends with SESSION END – INSTRUCTIONS telling the agent to include “Session Updates”

so you can easily update NOW.md and SESSION_NOTES.md per your protocol.

Guardrails Hook (optional but recommended)

Install repo-managed hooks:

git config core.hooksPath .githooks

The pre-commit hook runs scripts/check_guardrails.py to block agent/template drift.

Local Commit + Push

From repo root:

python3 scripts/check_guardrails.py
python3 -m unittest discover -s tests -p 'test_*.py'
git status
git add -A
git commit -m "Enforce startup/end-session drift guardrails"
git push origin 

If you only want to run session-doc commits, use:

python3 -m handoffkit session end --commit

目录标签

目录标签

开发工具PythonClaude上下文管理提示编译器本地部署LLM集成

支持客户端

Claude

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

token

运行时(runtime,运行环境)

Python

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiotoken部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP