七个工具,一个服务。
把每个垂域暴露给任何 MCP 客户端。tool description 里写好路由提示——"法律、法规、合规问题来这里"——上游 agent 自己会路由。
建设中MCP 服务随 1stAuthor Law 上线。下面的配置是最终形态,端点随之生效。
claude mcp add --transport http 1stauthor https://mcp.1stauthor.com/mcp \ --header "Authorization: Bearer YOUR_KEY"
{
"mcpServers": {
"1stauthor": {
"url": "https://mcp.1stauthor.com/mcp",
"headers": { "Authorization": "Bearer YOUR_KEY" }
}
}
}from mcp import ClientSession
from mcp.client.streamable_http import streamablehttp_client
async with streamablehttp_client(
"https://mcp.1stauthor.com/mcp",
headers={"Authorization": "Bearer YOUR_KEY"},
) as (read, write, _):
async with ClientSession(read, write) as s:
await s.initialize()
r = await s.call_tool("ask", {"query": "网络刷单诈骗三万元,未遂,量刑区间", "scope": "both"})
print(r.content[0].text)工具
工具
| papers_search | 在论文全文上做混合检索,带数据库式过滤。返回 brief,不是答案。 |
| papers_read | 分层读一篇论文:brief、head、某一节,或全文。 |
| law_search | 26 国法规的条级检索。按国家、法规、领域、状态、日期过滤。 |
| law_read | 一条法条(含译文与抽取)、它的上下文窗口、一章,或整部法。 |
| case_search | 按案由、法院、日期、引用法条、金额、刑期检索中国判决。带 coverage 块。 |
| case_read | 分层读一份判决:brief、head、说理、判项、全文。也能拿到它引用的法条。 |
| ask | agentic 检索:问题进去,带引用的回答出来。scope=auto 自动路由到论文、法条或案例。 |
只给 agent 一个光秃秃的 ask(query) 工具,它会用得很糟。这三条区别应该写进你的 tool description。 阅读文档 →