MCP ExplorerExplorer

Stdtool

@blurrahon a year ago
1 MIT
FreeCommunity
AI Systems
#ai#llm#mcp
The simplest way to create reusable tools for multiple formats

Overview

What is Stdtool

Stdtool is a tool designed to simplify the creation of reusable tools that can be utilized across various frameworks, including AI SDKs, MCP servers, and Langchain.

Use cases

Use cases for stdtool include developing custom tools for AI SDKs, integrating tools into MCP servers, and creating reusable components for Langchain applications.

How to use

To use stdtool, you need to install it via npm, yarn, pnpm, or bun. After installation, you can create a reusable tool using the tool() function and then adapt it for your specific use case, such as integrating it with an MCP server.

Key features

Key features of stdtool include ease of use for creating reusable tools, compatibility with multiple tool calling frameworks, and the ability to define custom parameters and execution logic.

Where to use

Stdtool can be used in various fields where reusable tools are needed, particularly in software development, AI applications, and server management.

Content

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))

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers