Skip to content
Browse documentation
typescript sdk

Connect MCP tools

Adapt an application-owned MCP client into Smoothie Tool definitions without adding a transport to Core.

Keep the MCP connection application-owned

tools-mcp accepts a small structural client port. You choose and authenticate the transport, then adapt its listed tools into governed definitions.

import { createMcpTools } from "@smoothie-framework/tools-mcp";

// client is an initialized application-owned McpClientPort.
const tools = await createMcpTools(client, { serverName: "documents" });

The adapter bounds discovery and results and preserves supported MCP content, structured results and isError semantics. It does not implement universal transport, OAuth, automatic client installation or safe access to every advertised tool.

Review the exposed capability set

Choose tools, review their schemas and apply application policy before attaching them to an Agent. Treat descriptions, instructions and results as untrusted data. The host retains connection shutdown and credential ownership.

For connecting external tools to a coding agent during development, use Connect external tools. That CLI workflow is not this application SDK adapter.