@takeokunn/gbrainx-mcp 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +26 -2
- package/dist/bin.cjs +17219 -0
- package/package.json +21 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 takeokunn
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @takeokunn/gbrainx-mcp
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
GbrainX のローカル API を MCP クライアントから使うためのサーバーです。Node.js 20 以上が必要です。先に Node.js 22 以上でローカル版を起動してください。
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
npx @takeokunn/gbrainx
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Claude Code に登録します。
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
claude mcp add gbrainx -- npx -y @takeokunn/gbrainx-mcp
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
既定では `http://127.0.0.1:4747` に接続します。接続先を変える場合は、MCP サーバーを起動する環境に `GBRAINX_API_URL` を設定してください。
|
|
16
|
+
|
|
17
|
+
## ツール
|
|
18
|
+
|
|
19
|
+
- `gbrainx.search` はパックを検索し、一致度と購入済みかどうかを返します。
|
|
20
|
+
- `gbrainx.buy` は直前の検索結果を使って購入します。ローカル API が購入を拒否し HTTP 402 を返した場合、結果は `bought: false` と `needsApproval: true` になります。
|
|
21
|
+
- `gbrainx.load` は購入済みパックの要約を返します。`page` を指定すると、そのページだけを返します。キャッシュに内容がなく未購入の場合、ローカル API は HTTP 402 を返し、MCP ツールはエラーを返します。
|
|
22
|
+
|
|
23
|
+
読み込んだ内容は `~/.gbrainx/cache/` に保存されます。キャッシュは `npx @takeokunn/gbrainx cache clear` で消せます。
|
|
24
|
+
|
|
25
|
+
## License
|
|
26
|
+
|
|
27
|
+
MIT
|