Templetry MCP sunucusu
Commit 11 Kas 2026Derlenebilir şablonlar ve lazy pieces yapısını kullanarak AI agent'ların yazılım projelerini oluşturmasına, planlamasına, güncellemesine ve genişletmesine olanak tanır.
Ayrıca bilinen adı Templetry/engine, engine
- Yıldızlar
- 0
- Araçlar
- —
- İndirmeler, 30 gün
- —
- En son sürüm
- 1.11.1
- Son commit
- 11 Kas 2026
- Lisans
- Apache-2.0
Templetry MCP nedir?
Templetry bir MCP sunucusudur. Derlenebilir şablonlar ve lazy pieces yapısını kullanarak AI agent'ların yazılım projelerini oluşturmasına, planlamasına, güncellemesine ve genişletmesine olanak tanır.
Özet, projenin README dosyasından oluşturuldu
Templetry MCP sunucusu hakkında
Templetry, derlenebilir şablonlar aracılığıyla yazılım projesi yaşam döngülerini yönetmek için özelleşmiş bir motor sunar. Geliştiricilerin ve AI agent'ların yeni depolar oluşturmasına, yapısal değişiklikleri planlamasına ve lazy pieces sistemi kullanarak mevcut kod tabanlarını genişletmesine olanak tanır. Motor, güncellemeler sırasında üç yönlü bir birleştirme süreci kullanarak, bir şablondan gelen değişikliklerin entegre edilmesini sağlarken projede yapılan manuel düzenlemelerin korunmasını garanti eder.
Bu MCP server stdio üzerinden çalışır ve ek bir yapılandırma veya ortam değişkeni gerektirmez. list_templates, get_form_schema, plan, render, update, list_pieces ve add_piece dahil olmak üzere yedi spesifik araç sunar. Claude Desktop, Cursor veya VS Code gibi AI istemcileri; bir şablon kataloğuna göz atmak, çalışmaya hazır projeler oluşturmak veya yeni fonksiyonel birimleri canlı bir uygulamaya dahil etmek için bu araçları kullanabilir. Sistem, aynı girdilerin her zaman bayt düzeyinde aynı çıktıları üretmesini sağlayacak şekilde deterministik olarak tasarlanmıştır.
Neler yapabilirsiniz
- 1Yeni bir proje oluşturmaBir AI agent, şablon kataloğuna göz atabilir ve belirli gereksinimlere dayalı, çalışmaya hazır eksiksiz bir depo oluşturabilir.
- 2Mevcut kod tabanlarını genişletmeGeliştiriciler, bir agent'a halihazırda geliştirilmekte olan bir projeye pieces olarak bilinen yeni fonksiyonel modülleri dahil etmesi talimatını verebilir.
- 3Şablon güncellemelerini senkronize etmeAgent, geliştiricinin özel kodunun üzerine yazmadan yeni şablon özelliklerini getirmek için üç yönlü birleştirme gerçekleştirebilir.
- 4Proje bütünlüğünü doğrulamaSistem, oluşturulan şablonun doğru şekilde derlendiğinden emin olmak için bir Docker konteyneri içinde doğrulama komutu çalıştırabilir.
Projenin README dosyasından alınmıştır. Her kullanım durumu, oradaki bir alıntı ile kontrol edilir.
Yapılandırma
TEMPLETRY_DEMO_CAST
| Ad | Açıklama | Sunucu |
|---|---|---|
| TEMPLETRY_DEMO_CAST | — |
Otomatik kontroller
Çalıştırıldı 14 Kas 2026Tam rapor →Henüz doğrulanmadı. Bir sunucunun 80 puana, ciddi bir bulgu olmamasına ve kontrol edebilmemiz için yeterli veriye ihtiyacı vardır. Kontroller nasıl çalışır
- Kaynak deposu bağlantılı ve erişilebilirtempletry/engine is public and reachablegithub.com/templetry/engine ↗Geçti
- Paket bu depoyu kaynak olarak gösteriyorKontrol edilmedi
- Derleme kaynağı (Sigstore onayı)Kontrol edilmedi
- Açık kaynak lisansı (OSI)Apache-2.0spdx.org/licenses/Apache-2.0.html ↗Geçti
- Son bir yıl içinde commit veya sürüm mevcutLast commit or release 2026-11-11github.com/templetry/engine ↗Geçti
- OpenSSF ScorecardKontrol edilmedi
- Paket adı popüler bir pakete yakın değilKontrol edilmedi
- Pakette ve bağımlılıklarında kritik uyarı yokKontrol edilmedi
- Modele yönelik gizli talimat yok0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersGeçti
- Yıkıcı araçlar etiketlenmişKontrol edilmedi
- Uzak endpoint MCP el sıkışmasına yanıt veriyorKontrol edilmedi
Templetry Engine
The core of Templetry: a pure Go library + thin CLI that renders ready-to-work repositories from compilable templates.
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
| Package | Responsibility |
|---|---|
manifest |
Parse + validate template.yml, derive casings |
source |
Obtain the template as an in-memory FileSet |
planner |
(manifest, inputs, FileSet) → Plan — pure |
ops |
Operation types as data |
render |
Execute a Plan against a virtual file tree |
verify |
Run the template's verify command in Docker |
update |
The update cycle: re-render with recorded inputs, diff, three-way merge |
answers |
The .templetry-answers.yml record: one deterministic reader/emitter |
piece |
Lazy pieces (ADR-0014): decoupled units with their own lifecycle |
cmd/templetry |
Thin CLI: list, init, plan, render, verify, update, pieces, add, version |
cmd/templetry-mcp |
MCP server (stdio): the engine's verbs as tools for AI agents |
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:
templetry list # browse the official catalog
templetry list --kind database --language go --tags # filter it
templetry init kmp/single-module --out my-app \
--set "project_name=My App" --set "base_package=com.me.myapp"
templetry plan --template <dir> --set key=value --feature name
templetry render --template <dir> --out <dir> --set key=value
templetry verify --template <dir> --set key=value # render to a temp dir and compile it in Docker
templetry update ./my-app # preview a template update (--apply to write)
templetry pieces ./my-app # lazy pieces the template ships
templetry add axios-api ./my-app --set api_base=/v2 # adopt a piece into a living project
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:
| Installed with | Path |
|---|---|
| Homebrew, Apple Silicon | /opt/homebrew/bin/templetry-mcp |
| Homebrew, Intel Mac / Linux | /usr/local/bin/templetry-mcp (Linux brew: /home/linuxbrew/.linuxbrew/bin/templetry-mcp) |
install.sh |
~/.local/bin/templetry-mcp (or /usr/local/bin/templetry-mcp when run as root); write the full home path in JSON, ~ is not expanded |
| Scoop (Windows) | C:\Users\<you>\scoop\shims\templetry-mcp.exe |
| Downloaded release binary | wherever you put it |
where templetry-mcp (Windows) or command -v templetry-mcp prints the right one.
Claude Code
claude mcp add templetry -- templetry-mcp # this project, private to you
claude mcp add --scope user templetry -- templetry-mcp # every project
claude mcp list
Claude Desktop
Edit claude_desktop_config.json (Settings > Developer > Edit Config; macOS ~/Library/Application Support/Claude/, Windows %APPDATA%\Claude\) and restart the app:
{
"mcpServers": {
"templetry": {
"command": "/opt/homebrew/bin/templetry-mcp"
}
}
}
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:
{
"mcpServers": {
"templetry": {
"command": "templetry-mcp"
}
}
}
VS Code
.vscode/mcp.json in the workspace (or "MCP: Open User Configuration" for every workspace). Note the key is servers, not mcpServers:
{
"servers": {
"templetry": {
"type": "stdio",
"command": "templetry-mcp"
}
}
}
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
go build ./...
go test ./... # CI also runs -race and golangci-lint v2
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:
TEMPLETRY_DEMO_CAST=$PWD/docs/demo.cast go test ./cmd/templetry -run TestRecordDemo -count=1
npx svg-term-cli@2.1.1 --in docs/demo.cast --out docs/demo.svg --window --no-cursor
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.
Templetry MCP soruları
Templetry MCP server ile bir AI agent neler yapabilir?
Bir agent şablon kataloğuna göz atabilir, çalışmaya hazır projeler oluşturabilir, belirli parçaları (pieces) projeye dahil edebilir ve projeleri güncel tutabilir.
Templetry'da güncelleme süreci nasıl işler?
Güncelleme döngüsü, şablon değişikliklerinin projeye dahil edilmesini sağlarken yerel düzenlemelerinizi korumak için üç yönlü bir birleştirme (base render, projeniz ve yeni render) kullanır.
MCP server herhangi bir yapılandırma veya ortam değişkeni gerektiriyor mu?
Hayır, server herhangi bir bağımlılık veya yapılandırma gerektirmeden stdio üzerinden Model Context Protocol kullanarak iletişim kurar.