INNER CODE UNIT · TypeScript

createDaemonOnlyRuntime

openclaw/mcporter · src/cli.ts:634

function createDaemonOnlyRuntime(daemonClient: import('./daemon/client.js').DaemonClient): Runtime {
  return {
    listServers: () => [],
    getDefinitions: () => [],
    getDefinition: (server: string) => {
      throw new Error(`Server '${server}' is only available through the keep-alive daemon fast path.`);
    },
    registerDefinition: () => {
      throw new Error('Ad-hoc servers are not supported by the keep-alive daemon fast path.');
    },
    getInstructions: async () => undefined,
    listTools: async (server, options) =>
      (await daemonClient.listTools({
        server,
        includeSchema: options?.includeSchema,
        autoAuthorize: options?.autoAuthorize,
        allowCachedAuth: options?.allowCachedAuth,
        disableOAuth: options?.disableOAuth,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…