一个与Everything搜索引擎集成的MCP服务器,通过模型上下文协议提供强大的文件搜索功能。
注意:如果您需要使用不同的端口,请在src/server.ts中修改连接到http://127.0.0.1:8011/的端口号。
npm install
npm run build
该服务器通过MCP提供单一工具:
use_mcp_tool:
- server_name: everything-search
- tool_name: search
- arguments:
{
"query": "search string", // 必需:要搜索的文本
"scope": "C:", // 可选:搜索范围(默认:C:)
"caseSensitive": false, // 可选:是否区分大小写
"wholeWord": false, // 可选:是否仅匹配整个单词
"regex": false, // 可选:是否使用正则表达式
"path": false, // 可选:是否在路径中搜索
"maxResults": 100, // 可选:最大结果数(1-1000,默认:1100)
"sortBy": "name", // 可选:按名称/路径/大小/修改日期排序
"ascending": true // 可选:排序方向
}
{
"query": "*.txt",
"maxResults": 5
}
{
"query": "test",
"scope": "C:\\Users",
"caseSensitive": true,
"wholeWord": true,
"maxResults": 10,
"sortBy": "date_modified",
"ascending": false
}
{
"query": ".*\\.js$",
"regex": true,
"path": true,
"maxResults": 5
}
ISC </中文翻译>