📦
Stdtool
The simplest way to create reusable tools for multiple formats
0 installs
1 stars
Trust: 41 — Fair
Ai
Installation
npx stdtoolAsk AI about Stdtool
Powered by Claude · Grounded in docs
I know everything about Stdtool. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Loading tools...
Reviews
Documentation
stdtool
Stdtool is the easiest way to create reusable tools that can be output to be used by multiple tool calling frameworks such as AI SDK, MCP servers, Langchain.
Install
# npm
npm i stdtool
# yarn
yarn add stdtool
# pnpm
pnpm add stdtool
# bun
bun add stdtool
Usage
Create a reusable tool using the tool() function:
const myTool = tool({
name: "My tool",
description: "My custom tool",
parameters: z.object({}),
execute: async () => {
return "Hello world";
}
})
Then you can use any of the adapters to generate a specific tool for your usecase, e.g. MCP server:
import { mcp } from "tools/adapters/mcp";
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
const server = new McpServer({
name: "My server"
});
server.tool(...mcp(myTool))
