Gemini CLI

效果简述:通过Gemini CLI在本地访问Zotero中文章,并按用户要求(自定义command,skills等)对文章进行操作并生成内容。

Gemini CLI 对于 Google 免费账户仍有 2.5系列模型和一定额度。see https://developers.google.com/gemini-code-assist/resources/quotas?hl=zh-cn

image.png

image.png

Step 1 安装 Gemini CLI 并登录

  1. 安装 nodejs from https://nodejs.org/zh-cn;运行 node -v 确认安装成功
  2. 打开终端安装 Gemini CLI npm install -g @google/gemini-cli
  3. 登录时选择验证谷歌账号(或使用API),注意必须用干净ip的梯子且打开TUN模式

Step 2 下载 Zotero MCP 插件

option 1

https://github.com/54yyyu/zotero-mcp

900+ star

不确定是否支持 Gemini CLI,see https://stevenyuyy.us/zotero-mcp/installation.html,但是支持 Claude Desktop 和 GPT

GPT setting see https://github.com/54yyyu/zotero-mcp/blob/main/docs/getting-started.md#new-integrating-with-openais-chatgpt(可能要api)

image.png

option 2 (Recommend for Gemini CLI currently)

此为公众号文章中使用的,https://mp.weixin.qq.com/s/mh9gU7pX_wC7D3COoMYDug

https://github.com/cookjohn/zotero-mcp

200+ star