- the fake host serves a subset of @endo/agent-mcp-stdio's catalog, with its names, schemas and answers; evaluate takes only E(name).method(arg, ...), and __getMethodNames__ - demo.py --host endo: a real Endo daemon (endo-but-for-bots, llm), its guest served by the package's broker - a downloads folder: the host writes, Hermes reads at ~/Downloads; BindReadOnlyPaths on Linux, a virtiofs share on macOS - .#demo-tools: Hermes and the checks get their whole PATH from the store - each run saves its MCP messages and a transcript - the guide: tools as system calls, names as file descriptors; no Linux networking, but WebApps - grants match a named URL before "download" Generated-by: Claude Opus 5.5
28 lines
839 B
JavaScript
28 lines
839 B
JavaScript
#!/usr/bin/env node
|
|
// Print @endo/agent-mcp-stdio's tool catalog (name, description, inputSchema)
|
|
// as JSON, from an Endo checkout: the snapshot endo-catalog.json, which the
|
|
// fake host serves from so its tools are Endo's.
|
|
//
|
|
// usage: node endo_catalog.mjs ENDO_CHECKOUT > endo-catalog.json
|
|
import { pathToFileURL } from 'node:url';
|
|
import { join } from 'node:path';
|
|
|
|
const [endo] = process.argv.slice(2);
|
|
const at = rel => pathToFileURL(join(endo, rel)).href;
|
|
await import(at('packages/init/index.js'));
|
|
const { makeAgentTools } = await import(
|
|
at('packages/agent-mcp-stdio/src/agent-interface.js')
|
|
);
|
|
const tools = makeAgentTools().tools ?? makeAgentTools();
|
|
console.log(
|
|
JSON.stringify(
|
|
tools.map(({ name, description, inputSchema }) => ({
|
|
name,
|
|
description,
|
|
inputSchema,
|
|
})),
|
|
null,
|
|
2,
|
|
),
|
|
);
|