- CHANGELOG.md:v2.8.0 条目(中英双语); - README.md:版本行 2.7.1→2.8.0 + 愿景第 6 条(知识可证明); - doc/releases/v2.8.0.md:双语发版说明(亮点/用法/已知限制); - skills/marqdo-dev/index.mq.md:新增 prove 任务(路径/目录模式/ require_lean/json;参数用 + 行声明升参,check 与 narrative-ratio 通过); - 设计文档 §12.5 标记已合入;发版链接统一指向 doc/releases/v2.8.0.md。
35 lines
763 B
Markdown
Executable File
35 lines
763 B
Markdown
Executable File
---
|
|
markup: occlusion
|
|
title: agent mcp server smoke
|
|
description: Offline assemble mcp_server + one tool (no serve).
|
|
import:
|
|
agent: ext/ai/agent.mq.md
|
|
plugin: lib/plugin.mq.md
|
|
sys: lib/sys.mq.md
|
|
demo: agent-mcp-server-helpers.mq.md
|
|
---
|
|
|
|
# main
|
|
|
|
**p = > plugin.native_path name="agent"**
|
|
1. `p`
|
|
> plugin.load path=`p`
|
|
2. *
|
|
> sys.exit code=1
|
|
|
|
**srv = > agent.mcp_server name="marqdo-test"**
|
|
**srv = > `srv`.tool name="ping" fn="demo.ping" description="ping tool"**
|
|
**tools = [tools](access(srv, "tools"))**
|
|
**n = > len value=`tools`**
|
|
1. `n` == 1
|
|
> print text=mcp-tool-ok
|
|
2. *
|
|
> print text=mcp-tool-fail
|
|
|
|
**t0 = [1](access(tools, "1"))**
|
|
**fn = [fn](access(t0, "fn"))**
|
|
1. `fn` == "demo.ping"
|
|
> print text=mcp-fn-ok
|
|
2. *
|
|
> print text=mcp-fn-fail
|