Files
marqdo/tests/ext/agent-mcp-server-smoke.mq.md

763 B

markup, title, description, import
markup title description import
occlusion 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