clew
Clew
穿越棕地迷宫的一根线。hop 就是这根线上的一个节点(docs/hops.md)。
棕地服务已经在运行。编码智能体每次会话仍要付出代价去重新发现同样的多服务流程。Clew 保留你已有的四张图——code、catalog、loadout、traces——并把它们连成一条你可以行走的路径。
Input → Branches → Output
measure → one P0 → capture → measure until reflectedgo install github.com/jeunessegamesee/clew/cmd/clew@v0.1.1无需 Scale 许可证,无需 Neo4j,无需 OpenSearch。
任意棕地,三条命令
clew init --root /path/to/repo # .clew.yaml + CLEW.md
clew stub --root /path/to/repo # IN+else for every gRPC / GraphQL / OpenAPI port
clew score --root /path/to/repo # P0 = missing IN; P1 = uncaptured branches
clew loadout --root /path/to/repo --in /package.Service/Method桩(Stub)让你可以引用每一个入站端口。没有 when 的树保持 P1 未捕获状态。用 clew loop 加深——不要凭空发明分支。
Related MCP server: PrecisionContextEngine
从源码构建
go test ./...
go build -o clew ./cmd/clew
./clew score --root examples/shop --fail-p0
./clew loadout --root examples/shop --use-case place-order --payload '{"paymentMethod":"CARD"}'
./clew loop --root testdata/incomplete-shop./clew score --root examples/shop --by-service
./clew score --root examples/shop --fail-p1
./clew watch --root examples/shop --traces traces/live.jsonl --follow
./clew watch --root examples/shop --listen 127.0.0.1:4318
./clew mcpclew mcp 是一个 stdio MCP 服务器(loadout、who_consumes、who_calls、next_p0、drift、score)。每个工具都有自己的输入模式。
适配文件
.clew.yaml 就是让陌生仓库变成地图的方式:
roots:
- .
- ../other-repo
services:
checkoutservice: src/checkoutservice # OTel service.name → hops folder
traces:
- traces/*.json通用入口(无需按框架解析器):OpenAPI / proto / GraphQL、OTLP(clew watch)或 clew ingest --file doors.json。可选的 http: [auto] 会猜测 Actix/Spring/……,但这不是添加新技术栈的方式。
语言
Clew 使用 Go 编写。CBM 保持为代码图。我们连接 HTTP/ASYNC/CROSS、OpenAPI/AsyncAPI 和 OTLP——我们不会重建索引器。
地图格式
参见 SPEC.md。每个服务:docs/hops.md。覆盖率:clew score --fail-p0。可执行之后:--fail-p1 会冻结未捕获的桩。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceProvides persistent architectural memory and structural cognition for AI coding agents, enabling efficient orientation, graph-aware context, and drift detection across codebase evolution.1,242290MIT
- AlicenseNot gradedqualityFmaintenanceEnables AI coding agents to efficiently navigate and understand large codebases by providing tools for entry point location, call chain analysis, and impact assessment, reducing context consumption and model costs.3GPL 3.0
- AlicenseNot gradedqualityDmaintenanceEnables AI coding assistants to perform high-speed structural codebase analysis and dynamic context management by mapping repositories as byte-streams and detecting architectural chaos.MIT
- AlicenseAqualityCmaintenanceEnables AI agents to map cross-repository dependencies, detect breaking changes in API contracts, and assess impact across services.10MIT
Related MCP Connectors
AI Agent with Architectural Memory. Impact analysis (free), tests and code from the graph (pro).
Codebase intelligence for agents: 152 structured artifacts across 21 programs, one call.
Deterministic context layer for your codebase: change impact, blast radius, answers with receipts.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jeunessegamesee/clew'
If you have feedback or need assistance with the MCP directory API, please join our Discord server