@yuihub/mcp-server 1.0.0-beta.3 → 1.0.0-beta.5

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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 YuiHub / vemikrs
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 ADDED
@@ -0,0 +1,84 @@
1
+ # @yuihub/mcp-server
2
+
3
+ **YuiHub MCP Protocol Adapter**
4
+
5
+ Model Context Protocol (MCP) を通じて YuiHub のセマンティックメモリ機能を AI エージェント (Antigravity, Cursor, Claude Desktop) に提供。
6
+
7
+ ## クイックスタート
8
+
9
+ ```bash
10
+ # stdio モードで起動
11
+ npx @yuihub/mcp-server
12
+
13
+ # グローバルインストール
14
+ npm install -g @yuihub/mcp-server
15
+ yuihub-mcp
16
+ ```
17
+
18
+ ## 設定
19
+
20
+ ### Antigravity
21
+
22
+ `~/.gemini/antigravity/mcp_config.json`:
23
+
24
+ ```json
25
+ {
26
+ "mcpServers": {
27
+ "yuihub": {
28
+ "command": "npx",
29
+ "args": ["-y", "@yuihub/mcp-server"]
30
+ }
31
+ }
32
+ }
33
+ ```
34
+
35
+ ### Cursor
36
+
37
+ `~/.cursor/mcp.json`:
38
+
39
+ ```json
40
+ {
41
+ "mcpServers": {
42
+ "yuihub": {
43
+ "command": "npx",
44
+ "args": ["-y", "@yuihub/mcp-server"]
45
+ }
46
+ }
47
+ }
48
+ ```
49
+
50
+ ## 前提条件
51
+
52
+ `@yuihub/server` が起動している必要があります:
53
+
54
+ ```bash
55
+ npx @yuihub/server
56
+ ```
57
+
58
+ ## MCP ツール
59
+
60
+ | ツール | 説明 |
61
+ | :------------------ | :------------------- |
62
+ | `save_thought` | メモリに保存 |
63
+ | `search_memory` | セマンティック検索 |
64
+ | `start_session` | セッション作成 |
65
+ | `fetch_context` | コンテキスト取得 |
66
+ | `create_checkpoint` | チェックポイント作成 |
67
+
68
+ ## MCP リソース
69
+
70
+ | URI | 説明 |
71
+ | :----------------------- | :----------- |
72
+ | `yuihub://recent` | 最近のメモリ |
73
+ | `yuihub://system/status` | システム状態 |
74
+
75
+ ## 環境変数
76
+
77
+ | 変数 | デフォルト | 説明 |
78
+ | :--------------- | :---------------------- | :-------------- |
79
+ | `YUIHUB_API_URL` | `http://localhost:4182` | Backend API URL |
80
+ | `YUIHUB_TOKEN` | (自動取得) | 認証トークン |
81
+
82
+ ## ライセンス
83
+
84
+ MIT
package/dist/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuihub/mcp-server",
3
- "version": "1.0.0-beta.3",
3
+ "version": "1.0.0-beta.5",
4
4
  "description": "YuiHub MCP Server - Protocol Adapter for Semantic Memory",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -25,26 +25,25 @@
25
25
  "files": [
26
26
  "dist"
27
27
  ],
28
- "scripts": {
29
- "build": "tsc",
30
- "dev": "tsx watch src/index.ts",
31
- "dev:stdio": "tsx src/index.ts",
32
- "dev:sse": "tsx src/sse-server.ts",
33
- "start": "node dist/index.js",
34
- "start:sse": "node dist/sse-server.js",
35
- "test": "vitest run",
36
- "test:integration": "vitest run tests/integration",
37
- "prepublishOnly": "npm run build"
38
- },
39
28
  "dependencies": {
40
29
  "@modelcontextprotocol/sdk": "^1.25.2",
41
- "@yuihub/core": "^1.0.0-beta.3",
42
- "zod": "^4.3.5"
30
+ "zod": "^4.3.5",
31
+ "@yuihub/core": "1.0.0-beta.5"
43
32
  },
44
33
  "devDependencies": {
45
34
  "@types/node": "^25.0.9",
46
35
  "tsx": "^4.21.0",
47
36
  "typescript": "^5.9.3",
48
37
  "vitest": "^4.0.17"
38
+ },
39
+ "scripts": {
40
+ "build": "tsc",
41
+ "dev": "tsx watch src/index.ts",
42
+ "dev:stdio": "tsx src/index.ts",
43
+ "dev:sse": "tsx src/sse-server.ts",
44
+ "start": "node dist/index.js",
45
+ "start:sse": "node dist/sse-server.js",
46
+ "test": "vitest run",
47
+ "test:integration": "vitest run tests/integration"
49
48
  }
50
- }
49
+ }