Frontmatter imports are now valid YAML (`import:` / `导入:` with bind→target entries), removing spaced keys. Add `marqdo migrate imports`, hard-error the old one-liner form, and migrate lib/ext/examples/tests/docs accordingly. Co-authored-by: Cursor <cursoragent@cursor.com>
701 B
701 B
title, description, import
| title | description | import | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| agent mcp server smoke | Offline assemble mcp_server + one tool (no serve). |
|
main
p = > plugin.native_path name="agent"
p
plugin.load path=
p
sys.exit code=1
srv = > agent.mcp_server name="marqdo-test"
srv = > srv.tool name="ping" fn="demo.ping" description="ping tool"
tools = tools
n = > len value=tools
n== 1
print text=mcp-tool-ok
print text=mcp-tool-fail
fn== "demo.ping"
print text=mcp-fn-ok
print text=mcp-fn-fail