m

my-little-mcp

@drdudda-org/my-little-mcp
0 Stars 2 次浏览 drdudda-org 更新于 2026-08-23

MCP 服务配置

复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用

{
  "mcpServers": {
    "my-little-mcp": {
      "url": "http://localhost:8004/mcp"
    }
  }
}

服务介绍

My Little MCP Server

   MCP (Model Context Protocol) .

  1. ** ** (get_current_time)

    • (KST)
    • : locale (), iso, timestamp
  2. ** ** (get_random_number)

    • 1~50
    • (1~100)

#  
npm install

# 
npm run build

stdio transport ()

#  
npm run dev

# 
npm start

HTTP transport

#   ( 8004)
npm run dev:http

#  ( 8004)
npm run start:http

#  
npm run dev -- --transport=http --port=8005

MCP

Cursor (.cursor/mcp.json)

{
  "mcpServers": {
    "my-little-mcp": {
      "command": "node",
      "args": ["/Users/swan/swan/chequer-projects/chequer-io/ironman/mcp-suite/mcp-servers/my-little-mcp/dist/index.js"]
    }
  }
}

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "my-little-mcp": {
      "command": "node", 
      "args": ["/Users/swan/swan/chequer-projects/chequer-io/ironman/mcp-suite/mcp-servers/my-little-mcp/dist/index.js"]
    }
  }
}

HTTP transport

Cursor (.cursor/mcp.json):

{
  "mcpServers": {
    "my-little-mcp": {
      "url": "http://localhost:8004/mcp"
    }
  }
}

stdio transport

# MCP Inspector 
npx @modelcontextprotocol/inspector node dist/index.js

HTTP transport

#   ( )
npm run start:http

# MCP Inspector 
npx @modelcontextprotocol/inspector http://localhost:8004/mcp

#   HTTP API 
curl http://localhost:8004/health
curl http://localhost:8004/

  • : get_current_time
  • ISO : get_current_time with {"format": "iso"}
  • : get_current_time with {"format": "timestamp"}

  • (1-50): get_random_number
  • : get_random_number with {"min": 10, "max": 30}

  • ** **: 100
  • ** MCP SDK**:
  • ** **:
  • ** **: TypeScript + Zod

  • Node.js 18.0.0+
  • TypeScript 5.0+

MIT License

相关 MCP 服务