New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@mcp-typescript-simple/example-tools-basic

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mcp-typescript-simple/example-tools-basic

Example: Basic MCP tools for demonstration and testing

latest
Source
npmnpm
Version
0.9.0
Version published
Weekly downloads
3
-25%
Maintainers
1
Weekly downloads
 
Created
Source

@mcp-typescript-simple/tools-basic

Example MCP Tool Pack - Basic tools for demonstration and testing

Purpose

This package provides simple, example MCP tools that serve multiple purposes:

  • Example: Demonstrate how to build MCP tools with the framework
  • Testing: Validate the framework functionality
  • Reference: Provide a starting point for building your own tools

⚠️ Note: These tools are intentionally simple and have no real-world utility beyond serving as examples and test fixtures.

Tools Included

hello

Greets a user by name

Input:

  • name (string): Name of the person to greet

Example:

const result = await basicTools.call('hello', { name: 'World' });
// Returns: "Hello, World! 👋"

echo

Echoes back the provided message

Input:

  • message (string): Message to echo back

Example:

const result = await basicTools.call('echo', { message: 'Test' });
// Returns: "Echo: Test"

current-time

Returns the current server timestamp in ISO 8601 format

Input: None

Example:

const result = await basicTools.call('current-time', {});
// Returns: "Current time: 2025-10-20T12:34:56.789Z"

Usage

import { basicTools } from '@mcp-typescript-simple/tools-basic';

// Get all tools as MCP Tool list
const tools = basicTools.list();

// Invoke a tool
const result = await basicTools.call('hello', { name: 'Alice' });

// Use individual tools
import { helloTool } from '@mcp-typescript-simple/tools-basic';
const result = await helloTool.handler({ name: 'Bob' });

Building Your Own Tool Pack

Use this package as a template for creating domain-specific tool packs:

  • Define tools using defineTool() from the framework
  • Create a registry and add your tools
  • Export both the registry and individual tools
  • Add comprehensive tests

See the source code for implementation details.

License

MIT

Keywords

mcp

FAQs

Package last updated on 19 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts