简单 MCP 服务器
使用 fastMCP 构建的最小 TypeScript MCP 服务器,返回“hello”响应。
特征
使用fastMCP实现简单的 MCP 服务器
TypeScript 支持
Biome 用于格式化和 linting
pnpm 作为包管理器
入门
先决条件
Node.js 18+
下午
安装
发展
项目结构
src/server.ts
- 主要的 MCP 服务器实现biome.json
- 用于 linting 和格式化的 Biome 配置tsconfig.json
- TypeScript 配置
关于服务器
这是一个简单的 MCP(模型上下文协议)服务器,提供“hello”工具。它使用 fastMCP TypeScript 框架来简化服务器实现。
已知问题
客户端功能警告:使用
pnpm mcp:dev
或直接运行服务器时,您可能会看到类似[warning] FastMCP could not infer client capabilities
警告。这是正常现象,当客户端未提供功能信息时会发生。服务器仍可正常运行。
如何与 Claude Desktop 一起使用
要将此 MCP 服务器与 Claude Desktop 一起使用,请添加以下配置:
执照
国际学习中心
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
一个最小的 TypeScript MCP 服务器,使用 fastMCP 框架提供“hello”工具。
Related MCP Servers
- AsecurityAlicenseAqualityTypeScript-based MCP server designed to enhance code editing experiences by providing features such as hover information, code completion, and diagnostics.Last updated -325MIT License
- AsecurityFlicenseAqualityA TypeScript-based MCP server designed for experimentation and integration with Calude Desktop and Cursor IDE, offering a modular playground for extending server capabilities.Last updated -25957
- AsecurityFlicenseAqualityA TypeScript-based MCP server that implements a simple notes system, allowing users to create, access, and generate summaries of text notes.Last updated -123
- AsecurityAlicenseAqualityA TypeScript-based server that connects MCP Clients to Dify applications, dynamically exposing Dify applications as tools that can be used directly within the MCP Client.Last updated -4MIT License