mcpTools from @restatedev/harness/mcp inside a handler, and pass them to the run:
Options
Tool names and limits
Restate Harness renames a server tool whose prefixed name isn’t a valid tool name, by replacing invalid characters, shortening it, and adding a hash. It skips tools with a duplicate name, an input schema over 64000 characters, or an unsupported input schema, and lists them in the result’swarnings.
mcpTools fails with a TerminalError if more than 128 of the server’s tools pass allow. For a large server, use allow to select the tools that the agent needs.