Dev Tools MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Dev Tools MCP ServerCalculate 12 + 34"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Dev Tools MCP Server
这是一个使用TypeScript编写的MCP(Model Context Protocol)服务器示例。
功能
这个MCP服务器提供了以下工具:
hello_world - 简单的问候工具
参数:
name(string) - 要问候的人名
calculate - 简单的计算器
参数:
operation(string) - 运算类型:add, subtract, multiply, dividea(number) - 第一个数字b(number) - 第二个数字
file_info - 获取文件信息
参数:
path(string) - 文件路径
Related MCP server: TypeScript MCP Server Boilerplate
安装和运行
1. 安装依赖
npm install2. 构建项目
npm run build3. 运行服务器
npm start开发模式运行
npm run dev测试
项目包含一个测试文件 test-mcp.js,用于验证MCP服务器的功能:
node test-mcp.js测试会验证:
服务器初始化
工具列表获取
hello_world 工具调用
calculate 工具的各种运算
file_info 工具的文件信息获取
与AI模型集成
要将此MCP服务器与支持MCP的AI模型集成,你需要在AI模型的配置文件中添加此服务器。
示例配置(Claude Desktop)
在Claude Desktop的配置文件中添加:
{
"mcpServers": {
"dev-tools": {
"command": "node",
"args": ["/path/to/your/dev-tools/dist/server.js"],
"env": {}
}
}
}示例配置(Cursor)
在Cursor的MCP配置中添加:
{
"mcpServers": {
"dev-tools": {
"command": "node",
"args": ["/path/to/your/dev-tools/dist/server.js"]
}
}
}开发
项目结构
dev-tools/
├── src/
│ └── server.ts # MCP服务器主文件
├── dist/ # 编译后的JavaScript文件
├── test-mcp.js # 测试文件
├── package.json
├── tsconfig.json
└── README.md添加新工具
在
src/server.ts中定义新的参数模式:
const NewToolArgsSchema = z.object({
// 定义参数
});在
tools数组中添加新工具:
{
name: "new_tool",
description: "工具描述",
inputSchema: NewToolArgsSchema,
}在
CallToolRequest处理函数中添加新的case:
case "new_tool": {
const args = NewToolArgsSchema.parse(request.params.arguments);
// 实现工具逻辑
return {
content: [
{
type: "text",
text: "结果",
},
],
};
}在
test-mcp.js中添加测试用例:
{
jsonrpc: "2.0",
id: 7,
method: "tools/call",
params: {
name: "new_tool",
arguments: {
// 测试参数
}
}
}许可证
ISC
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceA simple TypeScript MCP server that provides two tools: one for greeting users with a customizable name and another for adding two numbers together.211MIT
- Flicense-qualityDmaintenanceA boilerplate project for quickly developing MCP servers using TypeScript SDK, with example implementations of calculator and greeting tools, plus resource handling capabilities.
- Flicense-qualityDmaintenanceA TypeScript-based MCP server template using Express.js and Server-Sent Events, providing example tools for echoing messages, performing calculations, and retrieving server time.
- FlicenseAqualityCmaintenanceA boilerplate for building MCP servers using TypeScript, with example tools like calculator and greet, plus resource support.6
Related MCP Connectors
A TypeScript MCP server for Home Assistant, enabling programmatic management of entities, automati…
An MCP server that let you interact with Cycloid.io Internal Development Portal and Platform
A MCP server built for developers enabling Git based project management with project and personal…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/DRX-1877/dev-tools-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server