基本能力
产品定位
Custom MCP Server 是一个为AI助手提供多种工具集成的MCP服务器,旨在扩展AI助手的功能范围,使其能够执行更复杂的任务。
核心功能
- Brave Search:提供网页和本地搜索能力。
- Secure Filesystem:支持文件操作,包括读写、编辑、创建目录等,并具备安全控制。
- GitHub Integration:支持仓库和代码管理,包括创建仓库、搜索仓库、读取文件内容等。
- Sequential Thinking:提供逐步解决问题的功能。
- Download Utility:支持从互联网下载文件。
适用场景
- AI助手需要执行复杂的文件操作任务时。
- AI助手需要进行网页或本地搜索时。
- AI助手需要与GitHub进行交互时。
- AI助手需要逐步解决复杂问题时。
- AI助手需要下载文件时。
工具列表
- Brave Search:
brave_web_search
(网页搜索)、brave_local_search
(本地搜索)。 - Filesystem Operations:
read_file
、write_file
、edit_file
、create_directory
、list_directory
等。 - GitHub Integration:
create_repository
、search_repositories
、get_file_contents
、push_files
等。 - Sequential Thinking:
sequentialthinking
。 - Download Utility:
download_file
、download_multiple_files
。
常见问题解答
- 如何添加新功能?
- 在
functions
目录中创建处理程序。 - 将函数定义添加到
mcp-schema.json
。 - 更新
index.js
中的路由。
使用教程
使用依赖
```bash
Clone the repository
git clone https://github.com/degenhero/custom-mcp-server.git
cd custom-mcp-server
Install dependencies and set up environment
npm run install:all
```
安装教程
```bash
Start both servers
npm run start:both
```
调试方式
bash
curl -X POST http://localhost:3000/mcp \
-H "Content-Type: application/json" \
-d '{"functionName": "brave_web_search", "parameters": {"query": "test query"}}'