
Delaware Code
io.github.pipeworx-iov0.1.0更新于 Oct 8, 2026
Delaware Code — state statutes by citation, full-text search, and
概览
让助手按引注查询特拉华州法典条文,并对该州成文法文本进行全文检索。
- 功能
- 提供两个工具:de_statute(citation) 返回特拉华州法典某一条的全文及其修正历史,可把 11-636 或 11 Del. C. § 636 这类引注解析到对应章节页面并实时抓取。de_search(query, limit?) 通过特拉华州议会的官方检索接口对成文法文本做真正的全文检索,匹配的是条文正文而非仅标题。不提供条文的历史版本,只提供当前在线版本。
- 适用场景
- 适合助手需要引用、核对或检索特拉华州成文法时使用,例如查看某一条的具体内容,或查找提到某个词的条文。它只是单一州的法条参考,不是通用的法律研究工具。
- 运行要求
- 可作为网关地址上的远程 streamable HTTP 端点使用,也可通过 npx 以 @pipeworx/mcp-delaware-code 包在本地运行,需要 Node.js。该包自身的工具无需账号、API 密钥或环境变量;网关端点还会额外暴露共享的元工具。
安装
在 SourceWeft 中
- 打开 控制台中的 Delaware Code,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"delaware-code": {
"type": "http",
"url": "https://gateway.pipeworx.io/delaware-code/mcp"
}
}
}README
@pipeworx/delaware-code
Delaware Code — state statutes by citation, full-text search, and amendment history. Keyless.
Part of Pipeworx — an MCP gateway connecting AI agents to 1715+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.
Tools
de_statute(citation)— full text of a Delaware Code section by citation ("11-636" is murder in the first degree; "6-2734" is contracts with automatic renewal provisions). Resolves the citation to its one chapter/subchapter page via a baked index, fetches that page live, and slices out the section's text plus its amendment history.de_search(query, limit?)— real full-text search over Delaware Code statutory text, via the Delaware General Assembly's own live search API (not a baked catchline index — see below).
Auth
Keyless.
The survey trap was half right
The recorded trap for Delaware was "indexes name chapters but publish no section ranges" — true: a citation like "11 Del. C. 636" does not say which of Delaware's ~2,200 chapter/subchapter HTML pages holds it, and unlike North Dakota there is no single combined index page to bake from. But every one of those ~2,200 pages is small, plain, keyless HTML (no PDF, no login, no JS rendering required), and the whole tree is walkable:
So the fix is the same shape as mcps/north-dakota-code (crawl once,
bake a citation index, fetch live per call) even though the underlying page
layout is completely different — see scripts/bake-index.mjs for the
crawl and src/de-index-data.ts (generated) for the baked table. The
table stores citation + official catchline + chapter/subchapter/title
context + the ONE content-page URL for that citation — never the
statutory text itself, which de_statute fetches live on every call.
Refresh path
Re-run the bake script whenever Delaware's General Assembly recodifies (adds, renumbers, or splits a chapter/subchapter):
It fails loudly if the root index parses to fewer than 25 titles, or the
whole crawl yields suspiciously few content pages or sections — both would
mean delcode.delaware.gov changed its markup rather than that the Code got
smaller. It also prints one WARNING: line per chapter/subchapter it found
with no section content (reserved placeholder chapters, or a chapter
transferred elsewhere whose old page carries nothing) — these are skipped,
not treated as failures, because the on-site index itself still lists them.
de_search calls a REAL full-text search API, not a baked catchline index
Unlike the ND/IA/KY sibling packs, Delaware's Legislature runs a genuine full-text search behind its on-site search box — found only by reading the search page's own Kendo grid configuration (there is no documented public endpoint):
Verified live: calling it cold, with no prior page load, no cookie, and no
anti-forgery token, still returns results — it is stateless. A search for
"landlord" returns 308 total matches across the whole Code, including
sections whose own title never contains the word "landlord" (it matches
statutory TEXT, not just section captions). de_search therefore calls
this endpoint directly instead of falling back to a baked catchline index —
the baked table in this pack exists only to resolve a citation to its one
content page for de_statute, not to support search.
Slicing a section and its history
A leaf page's markup wraps each section as:
The statutory text is every <p> between one SectionHead and the
next. The amendment history is the plain-text + <a> citation chain
that follows the last </p>, up to the </div><br> that closes the
Section wrapper — that closing pair is the one reliable boundary,
verified to hold both for a middle section (</div><br><div class="Section">
follows) and the page's last section (</div><br></div> follows, into the
page's own closing tags). Reserved placeholder sections (e.g.
"637-640. [Reserved.]") have no <p> at all, so text and history both come
back empty — correctly, not as a parse failure.
Four capabilities — three available, one is not
- Section by citation — available (
de_statute). - Topic/keyword search — available (
de_search), and it is REAL full-text search (see above), not caption-only. - Amendments/history — available, inside
de_statute's response (historyfield): the session-law citation chain Delaware prints at the end of every section, whether or not it is still in force. - Historical version (a section's text as it read before a specific
amendment) — not available. delcode.delaware.gov publishes only the
current online edition; there is no per-year archive the way Iowa or
Indiana publish. A small number of sections carry a forward-looking
[Effective until <date>]/[Effective <date>]label pair when a future amendment is already scheduled (both current and prospective text are then both "current," just not yet both in force) — that is the live page's own labeling, not a historical archive, andde_searchpasses those labels through verbatim when present.
Citations
Delaware cites by title-section, e.g. "11-636" (Title 11, Section 636:
murder in the first degree) or "6-2734" (Title 6, Section 2734:
automatic-renewal contracts). de_statute also accepts "11 Del. C. § 636",
"11 Del. C. 636", and "Title 11 § 636". A small number of sections carry a
letter suffix ("11-607A") or are indexed under a shared id for a reserved
range ("637-640") — de_statute expands ranges and lets a letter-suffixed
citation be looked up directly against the baked index, matching however
delcode.delaware.gov itself prints the section id.
Data sources
https://delcode.delaware.gov/index.htmland its title/chapter/ subchapter index pages — crawled once intosrc/de-index-data.ts(citation, catchline, chapter/subchapter/title context, and the one content-page URL per citation); never fetched per call.https://delcode.delaware.gov/title<N>/.../index.html— the one chapter or subchapter page holding a given section's full text.de_statutefetches this live on every call.https://legis.delaware.gov/json/DelCodeSearch/GetDelCodeSearchResults— the Delaware General Assembly's own full-text search API.de_searchcalls this live on every call.
All three are plain, keyless, public — no login, no API key, no rate limit observed during development.
Quick Start
Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
What this endpoint actually serves
tools/list at https://gateway.pipeworx.io/delaware-code/mcp returns the tools in the table
above plus the shared Pipeworx meta-tools — ask_pipeworx,
discover_tools, search_within, remember/recall and the rest of the
gateway-wide set. So the tool count you see is larger than this table: a
single-pack endpoint currently lists roughly 30 shared tools alongside the
pack's own. The connection's initialize response states its exact scope, and
is the authoritative answer for a given day.
This is deliberate, not multiplexing by accident. The meta-tools are what let a
scoped connection answer a question this pack does not cover — via
ask_pipeworx, which routes across the whole catalog — without you adding a
second MCP server. There is currently no way to mount a pack endpoint without
them; if the extra schemas cost you more context than the routing is worth,
connect to the full gateway once rather than to several pack endpoints.
Or connect to the full Pipeworx gateway to get every pack's tools listed directly, instead of just this one's:
Both URLs reach the same gateway and the same 1715+ data sources. The
only difference is which pack's tools are listed directly; ask_pipeworx
reaches all of them from either one.
No MCP client? Call it over HTTP
No account needed for the first calls. Inspect any tool: GET https://gateway.pipeworx.io/v1/tools/de_statute. Find one: POST https://gateway.pipeworx.io/v1/tools/search_packs with {"query":"..."}.
Standalone (no gateway account)
This package also runs as a local stdio MCP server — no Pipeworx account, no gateway round-trip:
Or run it directly to confirm it starts:
It speaks MCP over stdin/stdout and answers initialize/tools/list/tools/call
for only this pack's tools — none of the shared meta-tools the gateway
connection above adds. Same source, same tools, no ask_pipeworx routing.
Using with ask_pipeworx
Instead of calling tools directly, you can ask questions in plain English — this works on the pack endpoint above as well as on the full gateway:
The gateway picks the right tool and fills the arguments automatically.
More
License
MIT
来源:README.md,提交 bb2c6b4
工具
0版本历史
1- v0.1.0最新Oct 8, 2026