1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Pleasanter MCPを試してみた

1
Posted at

内容

こちらのPlesanter MCPを試してみました。

手順

Pleasanter MCPの有効化

まず、こちらのマニュアルに従い、プリザンターサーバ側の設定を行います。下記、MCPサーバの設定ファイルのパラメータをEnableに変更後、サーバの再起動を行います。

# cd /web/pleasanter/Implem.Pleasanter/App_Data/Parameters
# vim McpServer.json
McpServer.json
{
    "Enabled": true
}
# reboot

APIキーの発行

プリザンターにログイン後、APIキーの発行を行います。

pst01.png

ここからは、Pleasanter MCPをClaude Desktopで使う(設定ファイル)の方法で試してみました。

Node.js、Claude Desktopのインストール

こちらは、手順に沿ってインストールをしていきます。

MCPファイルの設定

MCP設定ファイルを修正します。Claude Desktopの設定から開発者を選択して、設定を編集を選択します。

pst02.png

claude_desktop_config.jsonファイルに下記を追加します。

{
  "mcpServers": {
    "pleasanter": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "http://{サーバ名}/{パス}/mcp",
        "--transport",
        "http-first",
        "--header",
        "X-Api-Key:${PLEASANTER_API_KEY}",
        "--allow-http"
      ],
      "env": {
  	    "PLEASANTER_API_KEY": "xxxx"
      }
    }
  }
}

マニュアルではX-APIKeyと記載がありますが、X-Api-Keyです。

追加後、タスクトレイの終了をクリックして、Claude Desktopを終了後、起動します。

pst04.png

再度、設定→開発者の項目よりPleasanter MCPが追加されていてrunningになっていることを確認します。

pst03.png

テスト用レコードの作成

検証用に作成した環境で現在何もレコードが入っていない状態なので適当に「問合せ」テーブルを作成してレコードを追加します。

pst10.png

pst11.png

MCPツールの使用

Claude DesktopからPleasanter MCPツールが利用出来ることを確認します。

pst12.png

先ほど追加したレコードを問い合わせてみます。

pst14.png

レコードが表示されました。

pst13.png

1
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?