1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

minimaをclineから使う

Last updated at Posted at 2025-03-24

minimaでRAGをやりたい

動機

  1. VScodeでClineを使用して開発している
  2. MCPサーバでいろいろ拡張したい
  3. ローカル完結でRAGを組んで、いろいろ情報みてほしい

下準備

uvのインストール
dockerのインストール
.envファイルの設定

LOCAL_FILES_PATH = C:\\Users\\yuzup\\source\\repos\\minima\\local_files
EMBEDDING_MODEL_ID = sentence-transformers/all-mpnet-base-v2
EMBEDDING_SIZE = 768
OLLAMA_MODEL = mistral
RERANKER_MODEL = sentence-transformers/ms-marco-MiniLM-L-12-v2

最初にはまったこと

公式ReadMeの通りに設定してみても動かない

{
  "mcpServers": {
    "minima": {
      "command": "uv.exe",
      "args": [
        "--directory",
        "C:\Users\yuzup\source\repos\minima\mcp-server",
        "run",
        "minima"
      ]
    }
  }
}

ダメ
image.png

解決策=パスの書き方

cline_mcp_settings.json

{
  "mcpServers": {
    "minima": {
      "command": "uv.exe",
      "args": [
        "--directory",
        "C:\\Users\\yuzup\\source\\repos\\minima\\mcp-server",
        "run",
        "minima"
      ]
    }
  }
}

image.png

この表示がでていても、mcp serverとして機能する

image.png

Retry Connectionと表示されてしまうのは
https://github.com/cline/cline/issues/1272 に回答あり
minimaに特有でなく、cline側のバグ

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?