Server, Console & MCP
Run and inspect the complete workspace from one local process.
Server
Server() registers the services in your workspace and mounts applications using the active Node.js or Bun runtime. By default it chooses an available local port and creates an API key.
import { Console } from "@taskwish/console"; import { Server } from "@taskwish/server"; await Server("My workspace", { apps: [Console()], workspace: [Todos, Researcher], mcp: true, });
Console
Console is a TaskWish server app. Use it to browse actors, inspect schemas and state, run actions, and follow streamed step and agent output.
MCP
Set mcp: true to expose all registered actions at /actor, or mcp: false to disable MCP.
Testing
Call public actions with an injected context so providers and state remain outside unit tests.
const result = await Greeter.greet .ctx({ ...mocks }) .run({ name: "Ada" }); expect(result).toBe("Hello, Ada!");