Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
作者提供的说明(英文原文)
Shape-aware query language for structured data — JSON, YAML, TOML, HCL, CSV, Markdown.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
链接指向作者自己的文件;我们不托管也不重新打包它。打开文件后,Claude Desktop 会进行安装。
在终端中运行这条命令
浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日
注册名称已通过 GitHub 账户 hakimjonas 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.14.0)于2个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 MCPB。
同一分类中有:Spec Driven Development, Remote Desktop Commander, yontu
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
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.
Türkçe yazı denetimi: TDK kuralları, yapay zekâ izleri, metin türüne göre üslup.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
*A query language for structured data that shows you what you're working with.*
lam queries JSON, YAML, TOML, HCL, CSV, TSV, and Markdown. Unlike other query tools, it tells you what your query *does* before you run it — the shape at each pipe stage, which output formats can serialize the result, what would go wrong.
Use it when you don't already know the data: inspecting an unfamiliar API response, auditing a Helm chart, verifying a CI pipeline's assumptions, or asking an AI agent to extract something without guessing at the structure.
$ lam --to toml '.dependencies | keys' pubspec.yaml
Error: TOML output requires a map at the root, got list . Try appending one of: | as(toml) # Wraps the list under a single-entry map (equivalent to {items: .}).
$ lam --to toml '.dependencies | keys | as(toml)' pubspec.yaml items = ["rumil", "rumil_parsers", "rumil_expressions"]
Queries are bounded and always terminate. No recursion, no lambdas, no def. That's the tradeoff: Lambë doesn't try to be a programming language, so its shape inference, --explain, --schema, and error remediations all work.
*Lambë (pronounced "lam-beh") means "language" in Quenya (Tolkien's elvish). The package name is lambe for ASCII compatibility.*
One-line installer (Linux and macOS, no sudo, verifies SHA256 checksums):
curl -fsSL https://raw.githubusercontent.com/hakimjonas/lambe/main/install.sh | sh
This downloads lam and lam-mcp from the latest GitHub release into ~/.local/bin/. Environment variables LAMBE_VERSION (pin a version) and LAMBE_PREFIX (change install dir) are supported; see the script for details.
Other options:
# From pub.dev (Dart users)
dart pub global activate lambe
dart pub add lambe
git clone https://github.com/hakimjonas/lambe.git && cd lambe dart compile exe bin/lam.dart -o lam
See Getting started for all installation options.
Lambë checks the result of your query against the shape the target format can serialize. When they match, output is produced. When they don't, the error names the required shape and lists query fragments that would bridge it. In an interactive terminal, Lambë offers to apply the chosen fragment and retry in place.
$ lam --to toml '.name' pubspec.yaml
TOML output requires a map at the root, got string. Try appending one of: | as(toml) # Wraps the scalar under a single-entry map (equivalent to {value: .}).
Apply a bridge? [1] | as(toml) # Wraps the scalar under a single-entry map (equivalent to {value: .}). [q] cancel
1
value = "rumil"
The same flow applies to CSV and TSV (which require a list of records at the root) and HCL (which requires a map).
Suggestions surface the intent-level as( ) form. The explanation names the raw fragment ({value: .}, to_entries, etc.) the bridge composes, so --explain and manual composition stay available to anyone who wants them.
By default, nested lists or maps in CSV/TSV cells are rejected — there is no faithful delimited rendering for them. When you need a quick export and lossy is acceptable, pass --flatten-cells json (CLI) or :flatten-cells json (REPL) to encode them as JSON strings inline. Round-tripping the resulting file back into Lambë does not recover the original structure; prefer reshaping the data query-side when fidelity matters.
as(fmt) — bridging in the query languageWhen the shape of the target format is known up front, as(fmt) performs the bridge inside the query. The combinator is a no-op when the input already satisfies the target, applies a single curated bridge when one exists, and lists the candidates when more than one could apply.
$ lam --to toml '.dependencies | as(toml)' pubspec.yaml
rumil = "^0.6.0" rumil_parsers = "^0.6.0" rumil_expressions = "^0.6.0"
$ lam --to csv '.dependencies | as(csv)' pubspec.yaml key,value rumil,^0.6.0 rumil_parsers,^0.6.0 rumil_expressions,^0.6.0
as accepts json, yaml, toml, csv, tsv, and hcl.
--explain — see the shape at every pipe stage--explain walks the pipe backbone of a query and reports the shape at each stage, followed by the set of output formats the final shape can be serialized as. It performs static analysis only and does not evaluate the query; pass a data file to seed with real shape information, or omit it to trace against an unknown input.
$ lam --explain '.dependencies | keys' pubspec.yaml
.dependencies : map | keys : list
Writable as: json, yaml, csv, tsv Not writable as: toml, hcl
Explain flags provably-empty filters (filter(.missing) on a known shape) and runtime-rejection mismatches (filter on a non-list input) by default. Pass --explain-trivial to also flag sort_by/group_by/map/unique_by whose argument references a missing field (often a typo, sometimes intentional). For agent tooling and build pipelines, --explain-json emits the same information as a structured JSON document.
--schema — declare a shape and let Lambë check your workWhen you have a JSON Schema for your data — from an API contract, OpenAPI spec, or hand-written docs — point --schema at it:
$ lam --schema api.schema.json --explain '.users | map(.email)' response.json
.users : list >> | map(.email) : list >
Writable as: json, yaml, csv, tsv Not writable as: toml, hcl
The schema fills in information data alone can't express: optional fields (from JSON Schema's required), element shapes of empty lists, types shapeOf couldn't infer from sampling. --explain shows them; the evaluator trusts them.
With data present, Lambë also validates: a schema saying age: number against data with age: "30" exits 1 at load time with a JSON-path-annotated diagnostic. No silent drift, no running a query against data that doesn't match its contract.
A sibling .schema.json is auto-detected, so a project convention of placing schemas next to data works without explicit flags.
The reverse direction is symmetrical: lam --print-shape data.json emits the inferred shape as a JSON Schema document. Round-trip:
lam --print-shape data.json > data.schema.json # bootstrap a schema from data
lam --schema data.schema.json '.users' data.json # use it back
Accepted JSON Schema keywords: type, properties, items, required. Value-level constraints (minimum, pattern, enum, etc.), structural combinators (allOf, oneOf), $ref, and conditional schemas are rejected with a per-keyword error. Lambë is a shape system, not a validation engine — for richer validation, reach for ajv or check-jsonschema.
Queries start with . (the current data) and chain operations with |:
. the whole document
.name access a field .users[0] index into a list .users[0].address.city chain access .users | filter(.age > 30) pipe into an operation .users | map(.name) transform each element
Pipelines read left to right. Each | passes its result to the next operation:
.users | filter(.active) | sort_by(.name) | map(.name)
This takes .users, keeps active ones, sorts by name, and extracts names.
.price * .qty arithmetic (+, -, *, /, %)
.age > 30 comparison (<, >, <=, >=, ==, !=) .active && .verified logic (&&, ||, !) if .age > 65 then "senior" else "active" conditional {name, total: .price * .qty} construct a new object "\(.name) is \(.age)" string interpolation .[1:3] slice a list or string
Operations follow | and transform the piped value:
. | filter(.age > 30) keep matching elements
. | map(.name) transform each element . | sort_by(.age) sort by a key . | group_by(.dept) group into [{key, values}] . | length count elements . | first first element . | sum sum numbers . | keys map keys or list indices . | has("field") check if a field exists . | unique remove duplicates . | flatten flatten one level of nesting . | to_entries map to [{key, value}] pairs . | filter_values(. > 5) filter a map's values . | as(toml) bridge to an output format
See the full list in Pipeline Operations below.
# Extract values
lam '.database.host' config.toml lam '.spec.containers[0].image' deployment.yaml
lam '.users | filter(.age > 30) | map(.name)' data.json
lam '.items | map(.price) | sum' data.json
lam '.items | sort_by(.price) | first' data.json
lam '.users | map({name, senior: .age > 65})' data.json
lam '.users | map("\(.name) is \(.age)")' data.json
lam --explain '.users | map(.name)' data.json
lam --print-shape data.json
lam --schema api.schema.json '.users | map(.email)' response.json
lam --assert '.version != "0.0.0"' package.json lam --assert '.replicas >= 2' deployment.yaml
lam --to yaml '.config' data.json lam --to csv '.users | map({name, age})' data.json lam --to toml '.config | as(toml)' data.json lam --to csv --flatten-cells json '.users' data.json # encode nested cells as JSON
lam --ndjson '.user.id' events.ndjson tail -f app.log | lam --ndjson '.level'
lam '. | filter(.status != "closed")' issues.csv lam '.resource | map(._labels)' main.tf lam '.children | filter(.type == "heading") | map(.children[0].text)' README.md
curl -s https://api.example.com/users | lam '.results | filter(.active)'
lam -i data.json
lambe v0.14.0 - type :help for commands, :q to quit
Data loaded: {3 fields, 42 users}
lambe> .users | filter(.age > 30) | map(.name) ["Bob", "Carol"]
lambe> .users[0] {name: "Alice", age: 25, active: true}
lambe> :schema {users: [{name: "string", age: "number", active: "boolean"}]}
lambe> :to yaml Output format: yaml
When a query produces a result the current output format cannot serialize, the REPL lists the available bridges inline; pressing the number of a suggestion applies it and prints the bridged output. Tab completion works on field names (.us ) and pipeline operations (| fil ). The REPL also supports syntax highlighting, persistent history (~/.lambe_history), Ctrl+R reverse search, and multi-line input with \ continuation.
import 'package:lambe/lambe.dart';
// Query pre-parsed data final name = query('.users[0].name', data);
// Query a JSON string final version = queryJson('.version', '{"version": "1.0.0"}');
// Query any format final host = queryString('.database.host', tomlString, format: Format.toml);
// Parse once, evaluate many times final ast = parseAst('.users | filter(.active) | map(.name)'); final result1 = evaluateAst(ast, dataset1); final result2 = evaluateAst(ast, dataset2);
// Format conversion final yaml = formatOutput(data, OutputFormat.yaml); final csv = formatOutput(users, OutputFormat.csv);
// Shape inference and JSON Schema output final shape = shapeOf(data); // Shape ADT final schemaJson = renderJsonSchema(shape); // JSON Schema text
//
只显示了开头部分;其余内容请在仓库中阅读