
Templetry
io.github.Templetry由 GitHub 帳號 Templetry 發布v1.11.1更新於 Nov 6, 2026
Scaffold, plan, update and extend projects from Templetry templates.
概覽
Templetry 的 MCP 伺服器讓助理瀏覽範本目錄、從範本產生可直接開發的專案、加入可選元件並讓專案保持更新。
- 可以做什麼
- 瀏覽與篩選範本目錄,讀取範本的表單結構
- 依填寫內容規劃並算繪出新專案
- 預覽並以三方合併方式把範本更新套用到現有專案
- 列出專案可用的延遲載入元件,並把元件導入現有專案
- 適用情境
- 適合讓助理從持續維護的範本建立新的程式碼儲存庫,或把範本後續的變更合併進已產生的專案,而不覆蓋自己的修改。
- 執行需求
- 以本機 stdio 執行檔 templetry-mcp 執行,可透過 Homebrew、Scoop、安裝腳本、發行檔、Go 或提供的 mcpb 套件安裝;不需參數、環境變數或驗證。用戶端需能找到該執行檔,通常要填絕對路徑。套用更新依賴 git merge-file,因此 PATH 中需有 git;verify 會在 Docker 中編譯範本。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Templetry,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Templetry Engine
The core of Templetry: a pure Go library + thin CLI that renders ready-to-work repositories from compilable templates.
[CI] [Latest release] [License: Apache-2.0]
Scaffold, edit, then update: the template's new commit is merged three ways (base render, your project, new render), so its changes land and your edit stays. Recorded from the real CLI against a small fixture template (see Development).
Status: 🚀 stable v1 (latest release) — the manifest, directives, answers-file and registry schemas plus the CLI surface are stable public API under the compatibility policy (ADR-0013).
Since v1.0: templetry update (three-way merge), templetry verify in Docker, lazy pieces (pieces/add), YAML/TOML patches, feature requires/conflicts and presets, multi-forge template hosting (github:, gitlab:, gitea: source schemes) and the templetry-mcp server. Since v1.10 forms carry a taxonomy (kinds/languages/frameworks) and templetry list filters on it. Output paths are hardened against escapes and platform quirks; the directive scanner is fuzz-tested.
Principles (from the wiki)
- The engine doesn't know what a framework is — all knowledge lives in each template's
template.yml(ADR-0002). - Templates compile — three transformation mechanisms: identity-map renaming, comment directives, structured patches (ADR-0003).
- Pure core, effectful edges — deterministic: same inputs, byte-identical output.
Architecture
Design rationale: study I · study II.
Install
Pick one (Homebrew, Scoop, the install script and the release archives also ship templetry-mcp):
- Homebrew (macOS, Linux) —
brew install Templetry/tap/templetry(tap). - Scoop (Windows) —
scoop bucket add templetry https://github.com/Templetry/scoop-bucketthenscoop install templetry(bucket). - Install script (macOS, Linux) —
curl -fsSL https://raw.githubusercontent.com/Templetry/engine/main/install.sh | sh(seeinstall.sh;TEMPLETRY_VERSIONpins a tag,TEMPLETRY_BIN_DIRpicks the folder). - Binary — download your platform's executable from Releases, rename it to
templetry(ortempletry.exe) and put it on yourPATH. - Go toolchain —
go install github.com/Templetry/engine/cmd/templetry@latest(installs to$(go env GOPATH)/bin). - From source — clone and
go build -o templetry ./cmd/templetry.
Then:
MCP server (AI agents)
templetry-mcp (in the same releases) speaks the Model Context Protocol over stdio — no dependencies, no configuration. It exposes seven tools: list_templates, get_form_schema, plan, render, update, list_pieces and add_piece, so an agent can browse the catalog, scaffold a ready-to-work project, adopt pieces and keep it all updated. Copy-paste configuration for the common clients follows; the server is a plain executable, so any other MCP client works the same way. It is listed on the official MCP registry as io.github.Templetry/templetry-mcp and published automatically after each release.
Where the binary is
If templetry-mcp is on your PATH, use the bare name templetry-mcp as the command. Some apps (Claude Desktop especially) do not inherit your shell PATH, so give them the absolute path:
where templetry-mcp (Windows) or command -v templetry-mcp prints the right one.
Claude Code
Claude Desktop
Edit claude_desktop_config.json (Settings > Developer > Edit Config; macOS ~/Library/Application Support/Claude/, Windows %APPDATA%\Claude\) and restart the app:
On Windows use "command": "C:\Users\<you>\scoop\shims\templetry-mcp.exe".
Cursor
.cursor/mcp.json in a project, or ~/.cursor/mcp.json for all projects:
VS Code
.vscode/mcp.json in the workspace (or "MCP: Open User Configuration" for every workspace). Note the key is servers, not mcpServers:
The server takes no arguments and no environment; to work against a private catalog the agent passes registry on each tool call.
Documentation
Usage guides live in the wiki: getting started, using templates, using pieces, keeping projects updated, authoring templates, AI agents and MCP. Normative behaviour is in spec/.
Development
update merges with git merge-file, so git must be on PATH for its tests. No test touches the network or needs Docker:
internal/forgetestis an in-memory GitHub (codeload tarballs and the commits API) behindhttp.DefaultClient, soinit→ edit →updateruns end to end against templates the test publishes, commit by commit.internal/fakedockerputs a copy of the test binary onPATHasdocker, recording whatverifywould have run.- Both binaries are tested in-process:
templetrythroughrun(args, stdout, stderr)andtempletry-mcpthroughserve(in, out), a JSON-RPC session over pipes.
The demo above is recorded the same way, so it always shows real output. To regenerate it:
License
Apache License 2.0 — use it for anything, including commercially, with an explicit patent grant. The templates and the desktop app live in their own repos under MIT.
來源:README.md,提交 5886aa1
工具
0版本歷史
1- v1.11.1最新Oct 30, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分