Files
marqdo/tests/ext/agent-mcp-server-smoke.mq.md
T
cflmyandCursor 687c168014 feat(parse): use nested YAML import: maps instead of one-liner binds
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>
2026-10-23 19:33:58 +08:00

701 B

title, description, import
title description import
agent mcp server smoke Offline assemble mcp_server + one tool (no serve).
agent plugin sys demo
ext/ai/agent.mq.md lib/plugin.mq.md lib/sys.mq.md agent-mcp-server-helpers.mq.md

main

p = > plugin.native_path name="agent"

  1. 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

  1. n == 1

print text=mcp-tool-ok

print text=mcp-tool-fail

t0 = 1 fn = fn

  1. fn == "demo.ping"

print text=mcp-fn-ok

print text=mcp-fn-fail