skip to content

MCP

Connect tools with MCP.

Sofuu uses the Model Context Protocol to talk to tools. It can call tools from other apps, or publish its own tools for them to use.

Both ends of the connection.

Use a tool or publish one. The protocol stays inside the runtime.

Use existing servers

Connect to an MCP server and see the tools it offers.

Publish your own

Turn a function into a tool with a name, a schema, and a handler.

Stay in process

Run a local server without starting another process.

A tool call

Connect, look, then call.

Connect to a server, list its tools, and call one. You don't have to manage the protocol by hand.

client.jsjavascript

const client = await sofuu.mcp.connect(  "npx -y @modelcontextprotocol/server-filesystem /tmp"); const tools = await client.listTools();const result = await client.call(  "read_file", { path: "/tmp/notes.txt" }); console.log(result.text);client.disconnect();

FAQ

Common questions.

Transports, servers, and limits.

Which transports work?

stdio, HTTP, and direct in-process connections.

Can Sofuu be a server?

Yes. Use sofuu.mcp.serve to register tools, resources, and prompts.

Can I limit tools per server?

Yes. Add allow and deny lists in ~/.sofuu/mcp.json.

Add a tool

Connect a server and try a call.

Start with one tool, then add more when you need them.

$ curl -fsSL https://sofuu.xyz/install | sh