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>
1010 B
1010 B
title, description, import
| title | description | import | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| agent MCP stdio client (offline) | Oneshoot list+call against python mock MCP server. |
|
main
p = > plugin.native_path name="agent"
p
plugin.load path=
p
print text=no-agent-plugin sys.exit code=1
argv = > json.parse text=["tests/ext/fixtures/mcp-stdio-mock.py"]
listed = > agent.mcp_client_list command="python3" args=argv
tools = > json.get value=listed key="tools"
n = > len value=tools
n== 1
print text=mcp-client-list-ok
print text=mcp-client-list-fail print text=
listed
call_args = > json.parse text={"msg":"hi"}
called = > agent.mcp_client_call command="python3" args=argv tool="echo" arguments=call_args
auth = > json.get value=called key="authority"
auth== "workbook"
print text=mcp-client-call-ok
print text=mcp-client-call-fail print text=
called