Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Drive devices and APIs from their W3C Thing Description. You gate every operation.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
THINGCTX_POLICY, THINGCTX_APPROVE_WHEN, THINGCTX_FS_ROOTต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"thingctx": {
"command": "uvx",
"args": [
"thingctx",
"--from",
"thingctx[mcp,http,mqtt,media,filesystem,authz]",
"thingctx-mcp",
"https://td.thingctx.com/index.json"
],
"env": {
"THINGCTX_POLICY": "ใส่ค่าของคุณ",
"THINGCTX_APPROVE_WHEN": "ใส่ค่าของคุณ",
"THINGCTX_FS_ROOT": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add thingctx --env THINGCTX_POLICY='ใส่ค่าของคุณ' --env THINGCTX_APPROVE_WHEN='ใส่ค่าของคุณ' --env THINGCTX_FS_ROOT='ใส่ค่าของคุณ' -- uvx thingctx --from 'thingctx[mcp,http,mqtt,media,filesystem,authz]' thingctx-mcp https://td.thingctx.com/index.jsonเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"thingctx": {
"command": "uvx",
"args": [
"thingctx",
"--from",
"thingctx[mcp,http,mqtt,media,filesystem,authz]",
"thingctx-mcp",
"https://td.thingctx.com/index.json"
],
"env": {
"THINGCTX_POLICY": "ใส่ค่าของคุณ",
"THINGCTX_APPROVE_WHEN": "ใส่ค่าของคุณ",
"THINGCTX_FS_ROOT": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"thingctx": {
"type": "stdio",
"command": "uvx",
"args": [
"thingctx",
"--from",
"thingctx[mcp,http,mqtt,media,filesystem,authz]",
"thingctx-mcp",
"https://td.thingctx.com/index.json"
],
"env": {
"THINGCTX_POLICY": "ใส่ค่าของคุณ",
"THINGCTX_APPROVE_WHEN": "ใส่ค่าของคุณ",
"THINGCTX_FS_ROOT": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
THINGCTX_POLICY envTHINGCTX_APPROVE_WHEN envTHINGCTX_FS_ROOT envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569
ชื่อใน registry ยืนยันโดเมน thingctx.com แล้ว (registry ตรวจความเป็นเจ้าของโดเมน)
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.2.2) เข้า registry 3 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย
ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, 오늘냥이 (Oneul Nyangi)
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Real cat photos, diaries, profiles, age and food reference calculators, and breeds.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
thingctx turns a description of any API, device, or local process into tools an AI agent can call: authorized per operation, over the system's own transport, and the agent never holds your keys. The description is a W3C Web of Things Thing Description (a TD), a plain JSON file naming what the system can do. Write one, or compile it from an OpenAPI spec. The described system is the server, so you run no server per integration.
A "Thing" is whatever you want to describe: a REST API, an app, a sensor, a media server, a local object, or one system that is several of those at once. A media server takes commands over HTTP and serves its stream over RTSP. The pump in examples/ reads over MQTT and acts through a local call. Each is one Thing and one description.
A description names actions, properties, and events, and gives each one a form: the entry that says where and how to reach it. The URL scheme in that address picks the transport per call, so however many protocols one Thing spans, the agent still sees one tool set.
docs/BINDINGS.md covers the transports and how to add your own. A subprocess transport, exec, also ships, and it ships locked: it refuses every command until you hand it an explicit allowlist.
Those three stay distinct all the way to the call. A read, a write, and a subscribe do not collapse into one undifferentiated function, which is why the gate can allow the read and refuse the write on the same system. A flat list of functions has no such handle.
Pick your path: use it as a library if you own the agent loop, the command line if you do not want to write code, the MCP bridge if your host only speaks MCP, or add a transport if thingctx does not speak your protocol yet.
Stuck, or wondering whether something is possible? Ask in Discussions. Want to build something small? The open issues say what would help.
One paste shows the whole idea. The description is inline and the handler ships with the package, so nothing here needs a key, a network, or a second file:
pip install thingctx
import asyncio
import thingctx from thingctx.contrib.time import make_time_handler
TD = { "@context": "https://www.w3.org/2022/wot/td/v1.1", "id": "urn:thingctx:time", "title": "Time", "securityDefinitions": {"nosec_sc": {"scheme": "nosec"}}, "security": ["nosec_sc"], "actions": { "getCurrentTime": { "description": "Current time in an IANA timezone (default UTC).", "input": { "type": "object", "properties": {"timezone": {"type": "string"}}, }, "safe": True, "idempotent": True, "forms": [{"href": "local://getCurrentTime"}], } }, }
async def main(): client = thingctx.ThingClient(tds=[TD], bindings=[thingctx.LocalBinding(make_time_handler())]) tools, invoke = client.as_tools() # specs for your model; invoke runs a call print("tools:", t["function" for t in tools]) print(await invoke("time__getCurrentTime", {"timezone": "UTC"}))
asyncio.run(main())
tools: ['time__getCurrentTime'] {'timezone': 'UTC', 'datetime': '2026-07-26T15:59:03.233080+00:00', 'utc_offset': '+0000'}
That is the whole loop: a description in, tools out, calls routed. LocalBinding is a binding, a transport implementation; this one routes the local:// address to the handler you pass it. Every other transport works the same way; only the form's href changes.
pip install 'thingctx[llm,http,validate]'
Quote the argument; unquoted brackets fail in zsh. Base pip install thingctx has no dependencies; it already includes the local and exec transports. Redis support is pip install 'thingctx[redis]'. Every optional transport and capability has an extra, listed in pyproject.toml; each one this page uses is named next to the code that needs it.
A description can be small. This one drives the live, key free Open-Meteo forecast API, so it runs as written. Save it as weather.td.json, a later example uses it:
{
"@context": "https://www.w3.org/2022/wot/td/v1.1", "id": "urn:example:weather:v1", "title": "Weather", "securityDefinitions": { "nosec_sc": { "scheme": "nosec" } }, "security": ["nosec_sc"], "actions": { "forecast": { "input": { "type": "object", "properties": { "latitude": { "type": "number" }, "longitude": { "type": "number" }, "current": { "type": "string" } }, "required": ["latitude", "longitude"] }, "forms": [{ "href": "https://api.open-meteo.com/v1/forecast", "htv:methodName": "GET" }] } } }
thingctx projects each action to a tool named __ : this file yields weather__forecast (a version segment on the id is dropped). docs/MAPPING.md specifies the full projection. The description carries no secrets, so it is safe to commit and share. The secret is supplied at runtime to the binding that carries the call. Secrets are keyed per Thing.
If your system already has an OpenAPI 3.x spec, you do not have to author a description at all:
pip install 'thingctx[openapi]'
thingctx import openapi https://api.example.com/openapi.json --out api.td.json
The spec can be a file or a URL, JSON or YAML; --base-url, --id, and --title override what the spec says. The result is a normal description, so everything else here applies to it unchanged.
Ready made descriptions for common apps, developer tools, and devices live at td.thingctx.com.
Own the agent loop? Read descriptions, hand the specs to your model, and route each call back through invoke. ThingClient needs no LLM and has no opinion on what chose the action; any code can drive it. This sketch shows the surface against a folder describing a pump; from_arg turns a path or URL into a registry of descriptions:
import thingctx
async def run(): # a sketch, not a program: call it from your own loop client = thingctx.ThingClient.from_registry(thingctx.from_arg("./descriptions/")) specs, invoke = client.as_tools()
await invoke("pump__set_speed", {"rpm": 1500}) await client.read_property("pump__rpm") await client.write_property("pump__target_rpm", 1500) # gated like invoke async for evt in await client.subscribe( "pump__overheat" ): # subscribe returns an async iterator ...
The form picks the transport per call, so one client can read over HTTP, subscribe over MQTT, and read or write cached properties over Redis. Bindings that pull optional dependencies, including MQTT and Redis, are off by default: install the extra and pass bindings=thingctx.BindingRegistry.default(mqtt=True, redis=True).
Want the loop handled for you? The llm extra runs any provider through litellm; add the http extra, since the weather file's form is HTTPS. Set your provider key in its usual variable (OPENAI_API_KEY, ANTHROPIC_API_KEY, and so on) and pick a model with THINGCTX_MODEL:
import asyncio
import thingctx
async def main():
host = thingctx.from_file("weather.td.json") print(await host.chat("What is the forecast for Cairo? Latitude 30.0, longitude 31.2."))
asyncio.run(main())
The model calls weather__forecast itself and answers in prose:
The forecast for Cairo is clear, around 34 C.
Two opt in layers stand between an agent and a real system; both run before any transport is selected. Neither layer handles a credential. The binding holds the secret and the model never sees it.
Approval gates risky calls behind a human. Risk is read from the description, and when to gate is yours: declared (only actions the description marks risky; the default), destructive (adds non idempotent actions and every property write), all, or never. A gated call with no approver is denied: a gate with nobody to open it stays shut. The check sits inside invoke and write_property, so it covers the LLM loop, direct callers, and the MCP bridge alike.
Carrying on from the first example above, with the same TD:
def approve(req): # sync or async; return True to allow
return input(f"run {req.tool_name}{req.arguments}? [y/N] ").lower() == "y"
client = thingctx.ThingClient( tds=[TD], bindings=[thingctx.LocalBinding(make_time_handler())], approve=approve, approve_when="all", )
Authorization decides from policy, per caller, per operation. Pass a pdp and an identity and every call authorizes the resolved (thing, affordance, operation) before it reaches the system; an affordance is an action, property, or event named in the description. This snippet condenses examples/14_authz.py, which runs as is on the core install. It defines the TD and Pump used below: a pump with one property, target_rpm.
from thingctx import LocalBinding, ThingClient
from thingctx.authz import LocalPolicyGrantSource, PolicyDecisionPoint, build_vocabulary
reader = ThingClient( tds=[TD], bindings=[LocalBinding(Pump())] ) # no pdp yet; parsed only to read the description vocab = build_vocabulary(reader.things) # the closed set the description declares
grants = LocalPolicyGrantSource({"operator": {("urn:demo:pump", "target_rpm", "readproperty")}}) pdp = PolicyDecisionPoint(vocabulary=vocab, grant_source=grants) identity = {"sub": "alice", "roles": ["operator"]} # claims, validated upstream
client = ThingClient(tds=[TD], bindings=[LocalBinding(Pump())], pdp=pdp, identity=identity)
Alice's operator role grants read on target_rpm and nothing else, so her reads pass and her writes are refused. The vocabulary is closed: a grant is honored only for operations the description declares. thingctx.authz imports no crypto and runs on the dependency free core. Identity is claims that something upstream validated, never the credential itself.
Running the example prints:
vocabulary (grantable tuples the TD declares):
(urn:demo:pump, target_rpm, readproperty) (urn:demo:pump, target_rpm, writeproperty)
READ target_rpm -> ALLOWED, device returned 1200 WRITE target_rpm -> DENIED, grant does not include ('urn:demo:pump', 'target_rpm', 'writeproperty')
RE-READ target_rpm -> 1200 (unchanged: the denied write never ran)
The full model is in docs/SECURITY.md.
Some agents only take tools over MCP. For those, thingctx ships one generic MCP server, with no per integration server. It serves any registry of descriptions: a folder, a URL, or a W3C Thing Description Directory. A Directory is the standard catalog server for descriptions.
pip install 'thingctx[mcp,http]'
thingctx-mcp ./descriptions/
For Claude D
ตัดมาแค่ช่วงต้น อ่านต่อใน repo