灵光宝石套装MCP服务端(GemSuite-MCP)是一个基于 Model Context Protocol(模型上下文协议)构建的高性能 Gemini 服务器。它将 Gemini 的强大功能与 MCP 标准相结合,支持智能模型选择和文件处理,为开发者打造了一个灵活且高效的工具集。
GemSuite-MCP 是一个融合了 Gemini 强大功能与 MCP 标准的高性能服务器,能为开发者提供便捷的模型使用与文件处理体验。以下是快速安装和使用示例:
npm install gem-suite-mcp
const { gemProcess } = require('gem-suite-mcp');
async function example() {
try {
const response = await gemProcess({
file: '/path/to/your/file.pdf',
operation: 'summarize'
});
console.log(response);
} catch (error) {
console.error('Error:', error.message);
}
}
example();
使用以下命令进行快速安装:
npm install gem-suite-mcp
const { gemProcess } = require('gem-suite-mcp');
async function example() {
try {
const response = await gemProcess({
file: '/path/to/your/file.pdf',
operation: 'summarize'
});
console.log(response);
} catch (error) {
console.error('Error:', error.message);
}
}
example();
手动指定模型版本进行文件分析:
const response = await gemProcess({
file: '/path/to/document.pdf',
operation: 'analyze',
modelId: 'models/gemini-2.0-flash-thinking'
});
GemSuite-MCP 默认会根据任务需求自动选择合适的 Gemini 模型版本。若需要手动选择模型,可通过指定 model_id
参数实现:
const response = await gemProcess({
file: '/path/to/document.pdf',
operation: 'analyze',
modelId: 'models/gemini-2.0-flash-thinking'
});
支持多种文件处理操作,具体如下:
summarize
:生成摘要extract
:提取信息restructure
:重新组织内容simplify
:简化复杂内容expand
:添加细节或上下文critique
:提供批判性分析feedback
:给出建设性反馈analyze
:通用内容分析GemSuite-MCP 支持与所有符合 MCP 标准的平台无缝对接,例如:
可通过指定 model_id
参数覆盖自动模型选择:
const response = await gemProcess({
file: '/path/to/document.pdf',
operation: 'analyze',
modelId: 'models/gemini-2.0-flash-thinking'
});
该项目遵循 MIT 许可证,详情请参阅 LICENSE 文件。
由 ❤️ [PV-Bhat](https://github.com/PV-Bhat) 开发