此包由 MCPFlow 打包并发布到npm仓库。
用于创建新的 TypeScript MCP 服务器的命令行工具
直接使用npx运行:
npx @mcpflow.io/mcp-create-typescript-server
或者先安装后使用:
# 安装
npm install @mcpflow.io/mcp-create-typescript-server
# 使用
npx @mcpflow.io/mcp-create-typescript-server
## 工具函数
### getClaudeConfigDir
Returns the directory path where Claude configuration files are stored based on the operating system.
**参数:**
### updateClaudeConfig
Updates the Claude configuration by adding a new MCP server.
**参数:**
- `name`: The name of the MCP server to add
- `directory`: The directory where the MCP server is located
### createServer
Creates a new MCP server by creating a directory, copying template files, and optionally updating Claude configuration.
**参数:**
- `options`: Optional options for server creation
- `directory`: The directory to create the server in
## 原始信息
- **开发者:** modelcontextprotocol
- **版本:** 1.0.0
- **许可证:** MIT License
- **原始仓库:** [modelcontextprotocol/create-typescript-server](https://github.com/modelcontextprotocol/create-typescript-server)
## 原始README
# create-typescript-server 
A command line tool for quickly scaffolding new MCP (Model Context Protocol) servers.
## Getting Started
```bash
# Create a new server in the directory `my-server`
npx @modelcontextprotocol/create-server my-server
# With options
npx @modelcontextprotocol/create-server my-server --name "My MCP Server" --description "A custom MCP server"
After creating your server:
cd my-server # Navigate to server directory
npm install # Install dependencies
npm run build # Build once
# or...
npm run watch # Start TypeScript compiler in watch mode
# optional
npm link # Make your server binary globally available
This project is licensed under the MIT License—see the LICENSE file for details.