Token导航 LogoToken导航TokenDH.com
MCP Framework 101 logo
AI代理未说明官方级别未说明来源级核验

MCP Framework 101

MCP Server

一个基于mcp-framework构建的模型上下文协议(MCP)服务器,用于开发和集成自定义工具。

工具数

0

提示词数

0

GitHub Stars

0

资源数

0
TypeScriptClaudeClaude DesktopClaude DesktopClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

cadugrillo

提供方

cadugrillo

最后核验

2026/5/17 20:22

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

mcp-framework-101(可译为“MCP框架-101”,具体翻译可能根据上下文有所调整)

使用mcp-framework构建的模型上下文协议(MCP)服务器。

快速入门

# Install dependencies
npm install

# Build the project
npm run build

项目结构

mcp-framework-101/
├── src/
│   ├── tools/        # MCP Tools
│   │   └── ExampleTool.ts
│   └── index.ts      # Server entry point
├── package.json
└── tsconfig.json

添加组件

该项目附带了一个示例工具 src/tools/ExampleTool.ts你可以使用命令行界面(CLI)添加更多工具:

# Add a new tool
mcp add tool my-tool

# Example tools you might create:
mcp add tool data-processor
mcp add tool api-client
mcp add tool file-handler

工具开发

示例工具结构:

import { MCPTool } from "mcp-framework";
import { z } from "zod";

interface MyToolInput {
  message: string;
}

class MyTool extends MCPTool {
  name = "my_tool";
  description = "Describes what your tool does";

  schema = {
    message: {
      type: z.string(),
      description: "Description of this input parameter",
    },
  };

  async execute(input: MyToolInput) {
    // Your tool logic here
    return `Processed: ${input.message}`;
  }
}

export default MyTool;

发布到 npm

  1. 更新你的 package.json:

- 确保 name 是独一无二的,并遵循npm的命名规范 - 设置适当的 version - 添加 descriptionauthorlicense等。 - 检查 bin 指向正确的入口文件

  1. 本地构建和测试:
   npm run build
   npm link
   mcp-framework-101  # Test your CLI locally
  1. 登录到npm(如需请创建账户):
   npm login
  1. 发布您的软件包:
   npm publish

发布后,用户可以将其添加到他们的Claude桌面客户端(见下文)中,或者使用npx来运行它


## Using with Claude Desktop

### Local Development

Add this configuration to your Claude Desktop config file:

**MacOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
**Windows**: `%APPDATA%/Claude/claude_desktop_config.json`

{ "mcpServers": { "mcp-framework-101": { "command": "node", "args":["/absolute/path/to/mcp-framework-101/dist/index.js"] } } }


### 发布后

将此配置添加到您的Claude Desktop配置文件中:

**MacOS(苹果电脑操作系统)**: `~/Library/Application Support/Claude/claude_desktop_config.json`
**Windows**: `%APPDATA%/Claude/claude_desktop_config.json`

{ "mcpServers": { "mcp-framework-101": { "command": "npx", "args": ["mcp-framework-101"] } } }


## 构建与测试

1. 对你的工具进行更改
1. 跑 `npm run build` 编译
1. 服务器将在启动时自动加载您的工具

## 了解更多

- 
- [MCP框架文档](https://mcp-framework.com)

目录标签

目录标签

TypeScriptClaudeClaude DesktopMCP框架本地部署工具开发模型上下文协议服务器自定义工具

支持客户端

Claude DesktopClaude

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

session

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明session部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP