
datuma_k
io.github.marthvon由 GitHub 帳號 marthvon 發布v1.0.0更新於 Oct 24, 2026
Query, validate, preview, and generate source from *.dtct data contracts and *.ngin templates.
概覽
本機 MCP 伺服器,讓助理在專案中查詢、驗證、預覽並依據 datuma_k 資料契約與範本產生原始碼。
- 可以做什麼
- 列出專案目錄以及契約與範本路徑,可指定根目錄。依 trait、model、field、attribute 或 type 查詢契約目錄。驗證契約與範本,需要專案中的關鍵字檔案。預覽產生計畫而不寫入任何內容。依範本產生原始碼並寫入產生的片段。提供何時使用 ngin 範本而非手寫程式的建議,並推斷 trait、widget、關聯說明、同步風險與別名等模式。讀取內建的 dtct、ngin 與規範語言資源及實務文件。
- 適用情境
- 適用於使用 datuma_k 資料契約與 ngin 範本的程式碼儲存庫,希望助理檢視契約目錄、檢查契約、試跑產生流程,或建立新的模型與欄位時。
- 執行需求
- 透過 npx 從 npm 套件以 stdio 在本機執行,需要 Node.js。必須已安裝 datuma_k 二進位檔並位於 PATH 中,或透過 DATUMA_K 環境變數提供其絕對路徑。行程工作目錄應為包含 .env 的 datuma_k 專案目錄,或在每次工具呼叫時傳入 root。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 datuma_k,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
datuma_k MCP
stdio MCP server for agents using the installed datuma_k binary in an app repo. It does not link the compiler crate. Set DATUMA_K to the binary if it is not on PATH.
Install
Published to npm as @marthvon/datuma-k-mcp and to the MCP Registry as io.github.marthvon/datuma-k.
Cursor / Claude example (mcp.json):
datuma_k must be on PATH. If it is not, point DATUMA_K at the binary:
From source
Then use "command": "node" with "args": ["/ABS/PATH/TO/datuma_k/mcp/dist/index.js"].
The process cwd should be the datuma_k project (the directory with .env), or pass root on each tool call.
Tools
Resources
datuma://language/dtctdatuma://language/ngindatuma://language/standardsdatuma://docs/keywordsdatuma://docs/practicesdatuma://docs/when-ngin
Prompts
add-model, add-field, scaffold-ngin, should-use-ngin, infer-contract-patterns
Tests
Publishing
Two registries, in this order. npm hosts the tarball; the MCP Registry hosts only metadata and verifies it against the published npm package, so npm must go first or the second publish fails with Registry validation failed for package.
The io.github.marthvon/ prefix is not cosmetic: GitHub device-flow auth only grants that namespace. A different prefix needs DNS or HTTP auth.
One-time setup
npm requires 2FA to publish. If the account does not have it, npm publish fails with 403 ... Two-factor authentication or granular access token with bypass 2fa enabled is required, before it ever looks at the tarball. Check with npm profile get; enable with npm profile enable-2fa auth-and-writes or on npmjs.com, and keep the recovery codes.
Release
Bump the version in three places — the registry rejects a version it has already seen, and a mismatch between the npm package version and server.json packages[0].version fails verification:
package.json→versionserver.json→versionserver.json→packages[0].version
Then:
mcp-publisher login persists a token, so day-to-day releases are npm publish then mcp-publisher publish.
Verify:
What ships
files in package.json limits the tarball to dist, resources, and README.md. resources/ is required at runtime — server.ts resolves it as dist/../resources — so dropping it from files produces a package that installs cleanly and fails on every resource read. Confirm with npm pack --dry-run before publishing.
Troubleshooting
來源:mcp/README.md,提交 1e55220
工具
0版本歷史
1- v1.0.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分