Close GAP-01–05 with ext/web streaming reverse proxy and HTTP→## invoke, transitive object method lookup, corpus_search plugin ensure, and agent MCP server stdio so downstream apps can drop Python side relays. Co-authored-by: Cursor <cursoragent@cursor.com>
692 B
692 B
title: agent mcp server smoke description: Offline assemble mcp_server + one tool (no serve). import agent:ext/ai/agent.mq.md import plugin:lib/plugin.mq.md import sys:lib/sys.mq.md import demo:agent-mcp-server-helpers.mq.md
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 = srv[^tools]
n = > len value=tools
n== 1
print text=mcp-tool-ok
print text=mcp-tool-fail
t0 = tools[^1] fn = t0[^fn]
fn== "demo.ping"
print text=mcp-fn-ok
print text=mcp-fn-fail