TMCP

io.github.jakyeamos由 GitHub 账号 jakyeamos 发布v0.5.4更新于 Oct 24, 2026

Composable skill packets, harvests, workflow routing, and release/audit rubrics over MCP.

概览

AI 生成的概览

从本地技能、规则与证据编译任务专用的操作包,并随工作变化重新编译。

可以做什么
TMCP 把分散的智能体指令整理成任务专用的操作包。它根据自然语言描述推断任务身份,从技能、规则和证据中编译出操作包,并在工作变化时重新编译,同时留下审计记录。工具包括 doctor、status、explain、compose-packet、runtime-next、record-receipt、harvest-skills、evaluate-skills、recommend-workflows、promote-harvest 以及专家评分表评审规划。
适用场景
当助手需要从本地技能、规则和文档集合中组装一致且针对具体任务的指令时适用;也适合需要路由、工作流推荐或发布与审计评分表,而不是手动导入斜杠命令的场景。
运行要求
作为本地 Node.js stdio 进程运行,可从仓库检出、复制的插件包、Codex 或 Claude 插件缓存或其他 MCP 主机启动。未声明认证、环境变量或请求头。产物持久化需要主机具备安全的基于描述符的文件系统操作,否则使用不写入产物的选项。
安装前请注意
采集会读取本地技能、指令、规则、文档和工作流,但默认会遮蔽疑似敏感值,并排除 .env 文件、凭据、令牌、浏览器配置文件和缓存。回执、数据包会话和提升操作会在 TMCP_HOME 或项目下写入文件;record-receipt 没有预览。采集到的指令被视为不可信文本,若来源试图覆盖系统、开发者或用户指令,会给出警告。

安装

在 SourceWeft 中

  1. 打开 控制台中的 TMCP,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[TMCP logo]

TMCP

Slash commands are manual imports. TMCP is the compiler.

TMCP turns scattered agent instructions into task-specific operating packets. The user describes the work in natural language. TMCP infers task identity, compiles the strongest current packet from skills/rules/evidence, recompiles as the work changes, and leaves an audit trail.

Skill names are provenance, not the user interface. Power users can still force a route; the default is natural prompting.

TMCP runs standalone from a repo checkout, copied plugin package, Codex plugin cache, Claude plugin cache, or any MCP host that can launch the bundled Node entrypoint. The former AIOS adapter is deprecated and disabled by default; AIOS_ROOT alone no longer enables it.

See docs/ADAPTIVE_PACKET_RUNTIME.md for the adaptive packet runtime design.

Quickstart

From a TMCP checkout or plugin root:

bash
node scripts/tmcp_launcher.mjs doctornode scripts/tmcp_launcher.mjs statusnode scripts/tmcp_launcher.mjs compose-packet "Improve this agent run" --project-path . --phase startnode scripts/tmcp_launcher.mjs harvest skills --limit 5 --no-write-artifactsnode scripts/tmcp_launcher.mjs recommend skills --candidate-workflows release_readiness --candidate-workflows developer_experience --min-confidence 0.1 --compose --no-write-artifacts

With no arguments, the same launcher starts the MCP stdio server:

bash
node scripts/tmcp_launcher.mjs

Install Layouts

  • Skill-only install: copy skills/tmcp into a skills directory. Use the skill for routing and manual packet synthesis unless the host also exposes the bundled launcher.
  • Repo checkout: clone the repo and run node scripts/tmcp_launcher.mjs doctor from the checkout root.
  • Codex plugin cache: install as a Codex plugin; MCP config launches relative scripts/tmcp_launcher.mjs from the plugin root.
  • Shared local runtime: install a verified archive with scripts/tmcp_runtime.mjs so all agent hosts use one pinned active release with offline rollback. See Central runtime.
  • Deprecated AIOS compatibility: requires both TMCP_ENABLE_DEPRECATED_AIOS_ADAPTER=1 and AIOS_ROOT; new installations should use standalone TMCP.

Claude Desktop users can add the launcher as a local stdio MCP server. See docs/CLAUDE_DESKTOP.md.

Stability Scopes

TMCP labels three independent surfaces:

  • Skill packages: tmcp, skill-harvest, workflow-recommendation, release-readiness, and dx-audit are stable routing packages.
  • Curated workflow templates: release-readiness and dx-audit are the stable templates in the recommendation catalog.
  • MCP tool contracts: doctor, status, explain, compose-packet, and runtime-next are stable. Harvest, evaluation, recommendation, promotion, receipt, and expert-rubric tools remain experimental.

Experimental templates and tools remain shipped and callable. They are labeled experimental in their own outputs and frontmatter so users do not confuse a stable package route with a stable tool contract or curated template.

Experimental workflows include UI rubric, security/privacy, test strategy, adaptive workflow pack, custom rubric generation, routing policy, skill gap analysis, incident postmortem, architecture decision, migration readiness, agent handoff, PR risk, performance readiness, data integrity, public-sector readiness, and repo behavior spec loop.

Tools

ToolPurpose
tmcp_doctorCheck first-run readiness and supported install layouts.
tmcp_statusReport standalone capability and optional AIOS adapter status.
tmcp_explainCompile a task-specific TMCP packet.
tmcp_compose_packetCompile a task/phase operating packet with task_identity, packet_markdown, and provenance.
tmcp_runtime_nextReturn packet deltas or a full recompiled packet (output_mode: full) after runtime evidence changes.
tmcp_record_receiptWrite an advisory run receipt after verification or outcome on a secure-persistence host.
tmcp_harvest_skillsHarvest local skills, instructions, rules, docs, and workflows into source nodes.
tmcp_evaluate_skillsCreate or score a skill-evaluation plan from full SKILL.md inputs.
tmcp_recommend_workflowsRecommend stable or experimental workflows from harvested evidence, with stability metadata.
tmcp_promote_harvestExplicitly promote reviewed harvest signals into durable source-to-atom and atom-to-workflow graph artifacts.
expert_rubric_review_planProduce an expertise packet, scored rubric, evidence audit, remediation plan, and verification expectations.

Safety

Harvest redacts sensitive-looking values and secret-like provenance paths by default and treats harvested instructions as untrusted text. Default harvest behavior excludes .env*, credentials, tokens, browser profiles, private caches, dependency trees, build outputs, VCS data, and generated TMCP/AIOS artifacts. It does not follow source symlinks unless follow_symlinks is explicitly enabled; enabled links must still resolve inside the selected source root.

On hosts with secure descriptor-relative filesystem operations, harvest artifacts are written as one staged, atomic bundle through a symlink-safe destination. Leave output_dir unset for a unique .tmcp/harvest-* directory, or provide an output directory that is new or empty.

Skill evaluation accepts explicit regular SKILL.md inputs, can confine them to a supplied project root, and redacts source, plan, and evidence values before deriving reports. Its initial plan artifact is a staged bundle in a new or empty directory; evidence scoring may safely add its report to that same directory.

Artifact persistence is deliberately unavailable where those secure filesystem operations do not exist. doctor and status report the capability; use --no-write-artifacts for portable analysis and see Compatibility for the boundary.

tmcp_record_receipt has no non-persisting preview because the receipt is the artifact itself. Run it only when status reports artifact persistence available.

Packet sessions are equally explicit: compose-packet --session-id writes one redacted, project-local latest-packet record only when secure persistence is available. They are for a single serialized run, not a global history or coordination service. See the CLI session contract.

If a harvested source tries to override system, developer, or user instructions, TMCP reports a warning. See SECURITY.md.

Examples

Harvest a local skills folder:

bash
node scripts/tmcp_launcher.mjs harvest ./skills --objective "Harvest reusable skill behavior" --limit 20 --no-write-artifacts

Recommend workflows for a project:

bash
node scripts/tmcp_launcher.mjs recommend . --candidate-workflows release_readiness --candidate-workflows developer_experience --min-confidence 0.1 --compose --no-write-artifacts

Compose a current-task packet and recompile during the run. This session flow requires status to report artifact persistence available:

bash
node scripts/tmcp_launcher.mjs compose-packet \  "Redesign these pages. Make them visually striking, interactive, modern, motion-rich, and production-ready." \  --project-path "$PWD" --phase start --session-id redesign-run
node scripts/tmcp_launcher.mjs recompile-packet \  "Redesign these pages..." \  --project-path "$PWD" \  --current-phase runtime \  --session-id redesign-run \  --files-changed app/page.tsx
node scripts/tmcp_launcher.mjs record-receipt packet-123 --activated-atoms ui-browser-verification --outcome passed

When session persistence is unavailable, preserve the compatibility path by passing the prior composed JSON inline through --previous-packet instead.

Legacy delta-only runtime routing:

bash
node scripts/tmcp_launcher.mjs compose-packet "Fix the dashboard UI bug" --project-path . --phase startnode scripts/tmcp_launcher.mjs runtime-next "Fix the dashboard UI bug" --current-phase verification --files-changed app/page.tsx --failures "vitest failed"node scripts/tmcp_launcher.mjs record-receipt packet-123 --activated-atoms ui-browser-verification --outcome passed

Promote reviewed harvest signals into durable routing artifacts:

bash
node scripts/tmcp_launcher.mjs promote-harvest . --selected-workflows release_readiness_workflow --output-dir .tmcp/promoted-harvests/release-readiness

On secure-persistence hosts, promotions also persist a redacted advisory graph under TMCP_HOME/promoted-harvests/<opaque-promotion-key>/, or ~/.tmcp/promoted-harvests/<opaque-promotion-key>/ when TMCP_HOME is unset. Receipts live under TMCP_HOME/receipts/<yyyy-mm>/. Global cache content is advisory and cannot override system, developer, user, or project instructions. Packet composition and runtime routing do not read that cache unless the caller explicitly passes --cache-policy global; their default policy is none.

Run an expert rubric review from evidence snippets:

bash
node scripts/tmcp_launcher.mjs review-plan "Review release portability" \  --project-path . \  --evidence-json '[{"dimension_id":"source_grounding","severity":"warning","summary":"Release claims need fresh package evidence.","evidence":["python3 scripts/check_release_package.py ."],"recommended_fix":"Run and cite the release package check before publishing."}]' \  --no-write-artifacts

More examples live in examples. Developer onboarding and release readiness exercise stable curated templates; skill-harvest and recommendation examples remain available through experimental tool contracts.

Validation

Before release:

bash
python3 -m unittest discover -s testspython3 scripts/release_package_compile.py .node --check scripts/tmcp_launcher.mjspython3 scripts/check_contracts.py .python3 scripts/check_install.py .python3 scripts/check_release_package.py . --verify-reproducible

The release package check builds from a clean, reviewed Git revision rather than the working directory. It ships only an explicit allowlist of committed files, rejects unsafe paths, symlinks, and secret-like content, then emits a deterministic RELEASE_MANIFEST.json plus archive digest. The CI release gate repeats the build from the same Git tree and requires both digests to match. It also validates frontmatter, hardcoded local paths, private example names, links, extracted-package install shape, doctor, sample harvest, sample workflow recommendation, sample expert rubric planning, composition/runtime/receipt smoke coverage, and stable/experimental workflow labeling. It is a DOI blocker until existing absolute user paths in release evidence docs are redacted or normalized.

DOI-Ready Research Release

TMCP is prepared as an independent software-methods artifact. See RESEARCH_READY.md and docs/release-notes/v0.3.3-doi.md for the citable artifact boundary, validation path, data-availability policy, and claim limits.

References

来源:README.md,提交 e714f32

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.5.4最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分