paput-mcp 2.3.0 → 2.5.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/README.md +151 -93
- package/dist/check-http.js +27 -0
- package/dist/check-http.js.map +1 -0
- package/dist/cli/index.js +6 -6
- package/dist/cli/setup-ai.js +124 -126
- package/dist/cli/setup-ai.js.map +1 -1
- package/dist/handlers/add-knowledge-candidates/handler.js +11 -9
- package/dist/handlers/add-knowledge-candidates/handler.js.map +1 -1
- package/dist/handlers/add-knowledge-candidates/tool.js +4 -4
- package/dist/handlers/add-knowledge-candidates/tool.js.map +1 -1
- package/dist/handlers/cache-status/tool.js +1 -1
- package/dist/handlers/cache-status/tool.js.map +1 -1
- package/dist/handlers/create-memo/handler.js +25 -14
- package/dist/handlers/create-memo/handler.js.map +1 -1
- package/dist/handlers/create-memo/tool.js +6 -6
- package/dist/handlers/create-memo/tool.js.map +1 -1
- package/dist/handlers/create-note/handler.js +19 -9
- package/dist/handlers/create-note/handler.js.map +1 -1
- package/dist/handlers/create-note/tool.js +4 -4
- package/dist/handlers/create-note/tool.js.map +1 -1
- package/dist/handlers/delete-skill-sheet-project/handler.js +7 -2
- package/dist/handlers/delete-skill-sheet-project/handler.js.map +1 -1
- package/dist/handlers/delete-skill-sheet-project/tool.js +2 -2
- package/dist/handlers/delete-skill-sheet-project/tool.js.map +1 -1
- package/dist/handlers/discard-pending-candidate/handler.js +9 -7
- package/dist/handlers/discard-pending-candidate/handler.js.map +1 -1
- package/dist/handlers/discard-pending-candidate/tool.js +6 -3
- package/dist/handlers/discard-pending-candidate/tool.js.map +1 -1
- package/dist/handlers/get-categories/handler.js +4 -4
- package/dist/handlers/get-categories/handler.js.map +1 -1
- package/dist/handlers/get-categories/tool.js +1 -1
- package/dist/handlers/get-categories/tool.js.map +1 -1
- package/dist/handlers/get-memo/handler.js +11 -11
- package/dist/handlers/get-memo/handler.js.map +1 -1
- package/dist/handlers/get-memo/tool.js +2 -2
- package/dist/handlers/get-memo/tool.js.map +1 -1
- package/dist/handlers/get-note/handler.js +16 -16
- package/dist/handlers/get-note/handler.js.map +1 -1
- package/dist/handlers/get-note/tool.js +2 -2
- package/dist/handlers/get-note/tool.js.map +1 -1
- package/dist/handlers/get-session-transcript/handler.js +3 -3
- package/dist/handlers/get-session-transcript/handler.js.map +1 -1
- package/dist/handlers/get-session-transcript/tool.js +4 -4
- package/dist/handlers/get-session-transcript/tool.js.map +1 -1
- package/dist/handlers/get-skill-sheet/handler.js +29 -29
- package/dist/handlers/get-skill-sheet/handler.js.map +1 -1
- package/dist/handlers/get-skill-sheet/tool.js +1 -1
- package/dist/handlers/get-skill-sheet/tool.js.map +1 -1
- package/dist/handlers/list-pending-candidates/tool.js +2 -2
- package/dist/handlers/list-pending-candidates/tool.js.map +1 -1
- package/dist/handlers/save-pending-candidate/handler.js +12 -9
- package/dist/handlers/save-pending-candidate/handler.js.map +1 -1
- package/dist/handlers/save-pending-candidate/tool.js +6 -6
- package/dist/handlers/save-pending-candidate/tool.js.map +1 -1
- package/dist/handlers/scan-sessions/tool.js +3 -3
- package/dist/handlers/scan-sessions/tool.js.map +1 -1
- package/dist/handlers/search-memo/handler.js +8 -8
- package/dist/handlers/search-memo/handler.js.map +1 -1
- package/dist/handlers/search-memo/tool.js +8 -8
- package/dist/handlers/search-memo/tool.js.map +1 -1
- package/dist/handlers/search-notes/handler.js +9 -9
- package/dist/handlers/search-notes/handler.js.map +1 -1
- package/dist/handlers/search-notes/tool.js +5 -5
- package/dist/handlers/search-notes/tool.js.map +1 -1
- package/dist/handlers/sync-remote-memos/handler.js +9 -5
- package/dist/handlers/sync-remote-memos/handler.js.map +1 -1
- package/dist/handlers/sync-remote-memos/tool.js +3 -3
- package/dist/handlers/sync-remote-memos/tool.js.map +1 -1
- package/dist/handlers/update-memo/handler.js +22 -11
- package/dist/handlers/update-memo/handler.js.map +1 -1
- package/dist/handlers/update-memo/tool.js +8 -8
- package/dist/handlers/update-memo/tool.js.map +1 -1
- package/dist/handlers/update-note/handler.js +23 -13
- package/dist/handlers/update-note/handler.js.map +1 -1
- package/dist/handlers/update-note/tool.js +5 -5
- package/dist/handlers/update-note/tool.js.map +1 -1
- package/dist/handlers/update-skill-sheet-basic-info/handler.js +6 -1
- package/dist/handlers/update-skill-sheet-basic-info/handler.js.map +1 -1
- package/dist/handlers/update-skill-sheet-basic-info/tool.js +5 -5
- package/dist/handlers/update-skill-sheet-basic-info/tool.js.map +1 -1
- package/dist/handlers/update-skill-sheet-self-pr/handler.js +6 -1
- package/dist/handlers/update-skill-sheet-self-pr/handler.js.map +1 -1
- package/dist/handlers/update-skill-sheet-self-pr/tool.js +2 -2
- package/dist/handlers/update-skill-sheet-self-pr/tool.js.map +1 -1
- package/dist/handlers/update-skill-sheet-skills/handler.js +7 -2
- package/dist/handlers/update-skill-sheet-skills/handler.js.map +1 -1
- package/dist/handlers/update-skill-sheet-skills/tool.js +7 -7
- package/dist/handlers/update-skill-sheet-skills/tool.js.map +1 -1
- package/dist/handlers/upsert-skill-sheet-project/handler.js +5 -5
- package/dist/handlers/upsert-skill-sheet-project/handler.js.map +1 -1
- package/dist/handlers/upsert-skill-sheet-project/tool.js +16 -16
- package/dist/handlers/upsert-skill-sheet-project/tool.js.map +1 -1
- package/dist/http.js +149 -0
- package/dist/http.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/schemas/tool-input.js +97 -80
- package/dist/schemas/tool-input.js.map +1 -1
- package/dist/server.js +20 -21
- package/dist/server.js.map +1 -1
- package/dist/services/api/client.js +9 -4
- package/dist/services/api/client.js.map +1 -1
- package/dist/services/api/memo.js +3 -3
- package/dist/services/api/memo.js.map +1 -1
- package/dist/services/api/note.js +3 -3
- package/dist/services/api/note.js.map +1 -1
- package/dist/services/api/skill-sheet.js +2 -2
- package/dist/services/api/skill-sheet.js.map +1 -1
- package/dist/services/local-cache/index.js +2 -2
- package/dist/services/local-cache/index.js.map +1 -1
- package/dist/tool.js +8 -8
- package/dist/tool.js.map +1 -1
- package/dist/types/constants.js +12 -12
- package/dist/types/constants.js.map +1 -1
- package/docs/directory-submission.md +91 -0
- package/docs/privacy-policy.md +60 -0
- package/docs/tools.md +59 -0
- package/docs/usage-examples.md +83 -0
- package/package.json +6 -1
package/README.md
CHANGED
|
@@ -1,177 +1,235 @@
|
|
|
1
|
-
# PaPut MCP
|
|
1
|
+
# PaPut MCP Server
|
|
2
2
|
|
|
3
|
-
[PaPut](https://paput.io)
|
|
4
|
-
Claude、Codex、Cursor などの AI アシスタントから PaPut のメモ、ノート、アイデア、スキルシートを操作できます。
|
|
3
|
+
PaPut MCP Server connects [PaPut](https://paput.io) to AI assistants through the Model Context Protocol (MCP). It lets Claude, Codex, Cursor, and other MCP clients work with PaPut memos, notes, skill sheets, reusable knowledge candidates, and the local PaPut cache.
|
|
5
4
|
|
|
6
|
-
##
|
|
5
|
+
## Features
|
|
7
6
|
|
|
8
|
-
### PaPut
|
|
7
|
+
### PaPut Data Management
|
|
9
8
|
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
- スキルシートのスキル/プロジェクト管理
|
|
9
|
+
- Create, search, read, and update memos
|
|
10
|
+
- Create, search, read, and update notes
|
|
11
|
+
- Read and update skill sheet profile fields, self PR, skills, and projects
|
|
12
|
+
- Delete skill sheet projects when explicitly requested
|
|
15
13
|
|
|
16
|
-
### AI
|
|
14
|
+
### Knowledge Capture From AI Sessions
|
|
17
15
|
|
|
18
|
-
- Claude
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
- pending
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
- Claude/Codex
|
|
16
|
+
- Scan local Claude and Codex session logs
|
|
17
|
+
- Add reusable knowledge candidates to a local pending queue
|
|
18
|
+
- Sync existing PaPut memos to the local cache for duplicate detection
|
|
19
|
+
- Prevent duplicate candidates with fingerprints
|
|
20
|
+
- Save pending candidates to PaPut only after explicit user approval
|
|
21
|
+
- Preserve the source session updated timestamp as the PaPut memo creation timestamp
|
|
22
|
+
- Link pending candidates to PaPut projects through `PAPUT_PROJECT_MATCH`
|
|
23
|
+
- Install Claude/Codex skills and global rules for PaPut workflows
|
|
26
24
|
|
|
27
|
-
##
|
|
25
|
+
## Installation
|
|
28
26
|
|
|
29
|
-
npx
|
|
27
|
+
Run directly with `npx`:
|
|
30
28
|
|
|
31
29
|
```bash
|
|
32
30
|
npx -y paput-mcp
|
|
33
31
|
```
|
|
34
32
|
|
|
35
|
-
|
|
33
|
+
Or install globally:
|
|
36
34
|
|
|
37
35
|
```bash
|
|
38
36
|
npm install -g paput-mcp
|
|
39
37
|
```
|
|
40
38
|
|
|
41
|
-
## MCP
|
|
39
|
+
## MCP Configuration
|
|
42
40
|
|
|
43
|
-
API
|
|
41
|
+
Create an API key in your PaPut account settings and pass it through the MCP
|
|
42
|
+
server environment when you want to run tools that call the PaPut API.
|
|
44
43
|
|
|
45
44
|
```json
|
|
46
45
|
"paput": {
|
|
47
46
|
"command": "npx",
|
|
48
47
|
"args": ["-y", "paput-mcp"],
|
|
49
48
|
"env": {
|
|
50
|
-
"PAPUT_API_KEY": "
|
|
51
|
-
"PAPUT_PROJECT_MATCH": "
|
|
49
|
+
"PAPUT_API_KEY": "your-api-key",
|
|
50
|
+
"PAPUT_PROJECT_MATCH": "optional project name fragment"
|
|
52
51
|
}
|
|
53
52
|
}
|
|
54
53
|
```
|
|
55
54
|
|
|
56
|
-
###
|
|
55
|
+
### Environment Variables
|
|
57
56
|
|
|
58
|
-
- `PAPUT_API_KEY` -
|
|
59
|
-
- `PAPUT_API_URL` -
|
|
60
|
-
- `PAPUT_PROJECT_MATCH` -
|
|
61
|
-
- `PAPUT_HOME` -
|
|
62
|
-
- `PAPUT_CACHE_DIR` -
|
|
57
|
+
- `PAPUT_API_KEY` - Optional at startup. Required when executing tools that call the PaPut API.
|
|
58
|
+
- `PAPUT_API_URL` - Optional API URL. Defaults to `https://api.paput.io`.
|
|
59
|
+
- `PAPUT_PROJECT_MATCH` - Optional project name fragment for automatic project linking when creating or updating memos.
|
|
60
|
+
- `PAPUT_HOME` - Optional PaPut local data directory. Defaults to `~/.paput`.
|
|
61
|
+
- `PAPUT_CACHE_DIR` - Optional cache directory for knowledge capture data.
|
|
63
62
|
|
|
64
|
-
`PAPUT_PROJECT_MATCH`
|
|
63
|
+
When `PAPUT_PROJECT_MATCH` is set, memo create and update operations search skill sheet projects whose title contains the configured text and link the first match.
|
|
65
64
|
|
|
66
|
-
## AI
|
|
65
|
+
## AI Setup
|
|
67
66
|
|
|
68
|
-
|
|
67
|
+
Run this command to install PaPut skills and global rules for Claude and Codex:
|
|
69
68
|
|
|
70
69
|
```bash
|
|
71
70
|
npx -y paput-mcp setup-ai
|
|
72
71
|
```
|
|
73
72
|
|
|
74
|
-
|
|
73
|
+
The setup command:
|
|
75
74
|
|
|
76
|
-
- `~/.paput/skills`
|
|
77
|
-
-
|
|
78
|
-
-
|
|
79
|
-
- Claude/Codex
|
|
75
|
+
- Creates canonical PaPut skills under `~/.paput/skills`
|
|
76
|
+
- Creates symlinks under `~/.claude/skills` when Claude is available
|
|
77
|
+
- Creates symlinks under `~/.agents/skills` when Codex is available
|
|
78
|
+
- Adds PaPut usage rules to Claude/Codex global instruction files
|
|
80
79
|
|
|
81
|
-
|
|
80
|
+
Options:
|
|
82
81
|
|
|
83
82
|
```bash
|
|
84
|
-
#
|
|
83
|
+
# Do not update global rules
|
|
85
84
|
npx -y paput-mcp setup-ai --no-rules
|
|
86
85
|
|
|
87
|
-
# PaPut
|
|
86
|
+
# Refresh PaPut-managed links and rule blocks
|
|
88
87
|
npx -y paput-mcp setup-ai --force
|
|
89
88
|
|
|
90
|
-
# Claude
|
|
89
|
+
# Configure only Claude or only Codex
|
|
91
90
|
npx -y paput-mcp setup-ai --claude-only
|
|
92
91
|
npx -y paput-mcp setup-ai --codex-only
|
|
93
92
|
```
|
|
94
93
|
|
|
95
|
-
|
|
94
|
+
Generated skills:
|
|
96
95
|
|
|
97
|
-
- `paput-init` -
|
|
98
|
-
- `paput-sync` -
|
|
99
|
-
- `paput-capture` -
|
|
100
|
-
- `paput-save` - pending
|
|
96
|
+
- `paput-init` - Initialize PaPut usage, sync existing memos, and inspect unprocessed sessions.
|
|
97
|
+
- `paput-sync` - Sync existing PaPut memos into the local cache.
|
|
98
|
+
- `paput-capture` - Extract reusable knowledge candidates from the current conversation or a specified topic and add them to pending.
|
|
99
|
+
- `paput-save` - Review pending candidates first, then save only candidates explicitly approved by the user.
|
|
101
100
|
|
|
102
|
-
##
|
|
101
|
+
## Knowledge Workflow
|
|
103
102
|
|
|
104
|
-
|
|
103
|
+
Knowledge capture uses a two-step flow to avoid accidental memo creation.
|
|
105
104
|
|
|
106
105
|
```text
|
|
107
|
-
|
|
106
|
+
Extract reusable knowledge candidates
|
|
108
107
|
↓
|
|
109
|
-
pending
|
|
108
|
+
Add candidates to pending
|
|
110
109
|
↓
|
|
111
|
-
|
|
110
|
+
Save approved candidates to PaPut
|
|
112
111
|
```
|
|
113
112
|
|
|
114
|
-
|
|
113
|
+
The global rules installed by `setup-ai` ask the AI assistant to automatically check whether completed work, solved problems, or settled design decisions produced reusable knowledge. Candidates that are reusable, non-duplicate, non-sensitive, and not project-specific may be added to pending without asking for approval. The assistant should report the title, categories, and candidate ID after adding them.
|
|
115
114
|
|
|
116
|
-
|
|
115
|
+
If a candidate may be duplicate, sensitive, project-specific, or too ambiguous, the assistant should ask before adding it to pending.
|
|
117
116
|
|
|
118
|
-
|
|
117
|
+
Use `paput-capture` when the assistant did not automatically suggest candidates.
|
|
119
118
|
|
|
120
119
|
```text
|
|
121
|
-
PaPut
|
|
120
|
+
Create PaPut knowledge candidates from this conversation
|
|
122
121
|
```
|
|
123
122
|
|
|
124
|
-
|
|
123
|
+
Use `paput-save` when you want to save pending candidates to PaPut.
|
|
125
124
|
|
|
126
125
|
```text
|
|
127
|
-
PaPut
|
|
126
|
+
Review my PaPut pending candidates
|
|
128
127
|
```
|
|
129
128
|
|
|
130
|
-
Claude
|
|
129
|
+
Claude can call skills such as `/paput-save`. Codex can call `$paput-save` or use natural language.
|
|
131
130
|
|
|
132
|
-
##
|
|
131
|
+
## Available Tools
|
|
133
132
|
|
|
134
|
-
|
|
133
|
+
Detailed public tool documentation is available in [docs/tools.md](docs/tools.md).
|
|
135
134
|
|
|
136
|
-
|
|
137
|
-
- `paput_search_memo` - メモを検索
|
|
138
|
-
- `paput_get_memo` - メモの詳細を取得
|
|
139
|
-
- `paput_update_memo` - メモを更新
|
|
140
|
-
- `paput_get_categories` - カテゴリー一覧を取得
|
|
135
|
+
### Memo Management
|
|
141
136
|
|
|
142
|
-
|
|
137
|
+
- `paput_create_memo` - Create a PaPut memo directly.
|
|
138
|
+
- `paput_search_memo` - Search PaPut memos by keyword, category, IDs, date, visibility, or pagination.
|
|
139
|
+
- `paput_get_memo` - Get full details for a memo.
|
|
140
|
+
- `paput_update_memo` - Update an existing memo.
|
|
141
|
+
- `paput_get_categories` - List available categories.
|
|
143
142
|
|
|
144
|
-
|
|
145
|
-
- `paput_search_notes` - ノートを検索
|
|
146
|
-
- `paput_get_note` - ノートの詳細を取得
|
|
147
|
-
- `paput_update_note` - ノートを更新
|
|
143
|
+
### Note Management
|
|
148
144
|
|
|
149
|
-
|
|
145
|
+
- `paput_create_note` - Create a note that groups existing memos.
|
|
146
|
+
- `paput_search_notes` - Search notes by keyword, visibility, and pagination.
|
|
147
|
+
- `paput_get_note` - Get full details for a note.
|
|
148
|
+
- `paput_update_note` - Update a note title, visibility, or attached memo IDs.
|
|
150
149
|
|
|
151
|
-
|
|
152
|
-
- `paput_update_skill_sheet_basic_info` - スキルシート基本情報を更新
|
|
153
|
-
- `paput_update_skill_sheet_self_pr` - スキルシート自己PRを更新
|
|
154
|
-
- `paput_set_skill_sheet_skills` - スキルシートのスキル一覧を指定した最終状態に置き換え
|
|
155
|
-
- `paput_upsert_skill_sheet_project` - スキルシートプロジェクトを追加または更新
|
|
156
|
-
- `paput_delete_skill_sheet_project` - スキルシートからプロジェクトを削除
|
|
150
|
+
### Skill Sheet Management
|
|
157
151
|
|
|
158
|
-
|
|
152
|
+
- `paput_get_skill_sheet` - Get the full skill sheet.
|
|
153
|
+
- `paput_update_skill_sheet_basic_info` - Update basic profile fields.
|
|
154
|
+
- `paput_update_skill_sheet_self_pr` - Update the self PR section.
|
|
155
|
+
- `paput_set_skill_sheet_skills` - Replace the full skill list with the provided final state.
|
|
156
|
+
- `paput_upsert_skill_sheet_project` - Add or update a skill sheet project.
|
|
157
|
+
- `paput_delete_skill_sheet_project` - Delete a skill sheet project.
|
|
159
158
|
|
|
160
|
-
|
|
161
|
-
- `paput_sync_remote_memos` - 既存 PaPut メモをローカルキャッシュへ同期
|
|
162
|
-
- `paput_scan_sessions` - Claude/Codex のローカルセッションログを検出
|
|
163
|
-
- `paput_get_session_transcript` - セッション本文を取得
|
|
164
|
-
- `paput_add_knowledge_candidates` - AI が抽出した知見候補を pending に保存
|
|
165
|
-
- `paput_list_pending_candidates` - 未保存の知見候補を一覧表示
|
|
166
|
-
- `paput_save_pending_candidate` - pending 候補を PaPut メモとして保存
|
|
167
|
-
- `paput_discard_pending_candidate` - pending 候補を破棄
|
|
159
|
+
### Knowledge Capture And Local Cache
|
|
168
160
|
|
|
169
|
-
|
|
161
|
+
- `paput_cache_status` - Inspect the local cache state.
|
|
162
|
+
- `paput_sync_remote_memos` - Sync existing PaPut memos into the local cache.
|
|
163
|
+
- `paput_scan_sessions` - Scan local Claude/Codex session logs.
|
|
164
|
+
- `paput_get_session_transcript` - Read a session transcript.
|
|
165
|
+
- `paput_add_knowledge_candidates` - Add extracted knowledge candidates to pending.
|
|
166
|
+
- `paput_list_pending_candidates` - List pending candidates.
|
|
167
|
+
- `paput_save_pending_candidate` - Save an approved pending candidate as a PaPut memo.
|
|
168
|
+
- `paput_discard_pending_candidate` - Discard a pending candidate.
|
|
170
169
|
|
|
171
|
-
|
|
170
|
+
## Confirmation Guidance
|
|
171
|
+
|
|
172
|
+
Write and destructive tools should be used only when the user intent is clear. In particular:
|
|
173
|
+
|
|
174
|
+
- `paput_save_pending_candidate` requires explicit user approval to save a pending candidate to PaPut.
|
|
175
|
+
- `paput_delete_skill_sheet_project` should be used only when the user intends to delete a project.
|
|
176
|
+
- `paput_set_skill_sheet_skills` replaces the full skill list and should be used only when the desired final list is known.
|
|
177
|
+
- `paput_discard_pending_candidate` removes a pending candidate from the save flow.
|
|
178
|
+
- Update and upsert tools should preserve existing data unless the user requests a change.
|
|
179
|
+
|
|
180
|
+
## Usage Examples
|
|
181
|
+
|
|
182
|
+
Additional public examples are available in [docs/usage-examples.md](docs/usage-examples.md).
|
|
183
|
+
|
|
184
|
+
### 1. Avoid duplicate knowledge before saving
|
|
185
|
+
|
|
186
|
+
```text
|
|
187
|
+
Search PaPut for existing memos about MCP tool descriptions before creating a new knowledge candidate.
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
Recommended tool flow:
|
|
191
|
+
|
|
192
|
+
1. `paput_search_memo`
|
|
193
|
+
2. `paput_add_knowledge_candidates` if no duplicate exists
|
|
194
|
+
3. `paput_list_pending_candidates` when the user wants to review pending items
|
|
195
|
+
|
|
196
|
+
### 2. Capture knowledge from a Codex session
|
|
197
|
+
|
|
198
|
+
```text
|
|
199
|
+
Scan recent Codex sessions and extract reusable knowledge from the relevant session.
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
Recommended tool flow:
|
|
203
|
+
|
|
204
|
+
1. `paput_scan_sessions`
|
|
205
|
+
2. `paput_get_session_transcript`
|
|
206
|
+
3. `paput_add_knowledge_candidates`
|
|
207
|
+
|
|
208
|
+
### 3. Update a skill sheet project
|
|
209
|
+
|
|
210
|
+
```text
|
|
211
|
+
Update my skill sheet project with the latest technologies and responsibilities.
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
Recommended tool flow:
|
|
215
|
+
|
|
216
|
+
1. `paput_get_skill_sheet`
|
|
217
|
+
2. `paput_upsert_skill_sheet_project`
|
|
218
|
+
3. `paput_get_skill_sheet` to verify the updated project
|
|
219
|
+
|
|
220
|
+
## Local Data
|
|
221
|
+
|
|
222
|
+
PaPut MCP stores local data under `~/.paput` by default.
|
|
172
223
|
|
|
173
224
|
```text
|
|
174
225
|
~/.paput/
|
|
175
|
-
skills/ # Claude/Codex
|
|
176
|
-
cache/ #
|
|
226
|
+
skills/ # Canonical skills linked into Claude/Codex
|
|
227
|
+
cache/ # Synced memos, pending candidates, and processed sessions
|
|
177
228
|
```
|
|
229
|
+
|
|
230
|
+
## Public Documents
|
|
231
|
+
|
|
232
|
+
- [Privacy Policy](docs/privacy-policy.md)
|
|
233
|
+
- [Usage Examples](docs/usage-examples.md)
|
|
234
|
+
- [Tools And Use Cases](docs/tools.md)
|
|
235
|
+
- [MCP Directory Submission Notes](docs/directory-submission.md)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { Client } from '@modelcontextprotocol/sdk/client/index.js';
|
|
3
|
+
import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
4
|
+
const endpoint = process.env.MCP_HTTP_URL ?? process.argv[2];
|
|
5
|
+
if (!endpoint) {
|
|
6
|
+
console.error('Usage: MCP_HTTP_URL=https://example.onrender.com npm run check:http');
|
|
7
|
+
process.exit(1);
|
|
8
|
+
}
|
|
9
|
+
const client = new Client({
|
|
10
|
+
name: 'paput-mcp-http-check',
|
|
11
|
+
version: '1.0.0',
|
|
12
|
+
}, {
|
|
13
|
+
capabilities: {},
|
|
14
|
+
});
|
|
15
|
+
try {
|
|
16
|
+
const transport = new StreamableHTTPClientTransport(new URL(endpoint));
|
|
17
|
+
await client.connect(transport);
|
|
18
|
+
const result = await client.listTools();
|
|
19
|
+
const toolNames = result.tools.map((tool) => tool.name);
|
|
20
|
+
console.log(`Connected to ${endpoint}`);
|
|
21
|
+
console.log(`Tools: ${toolNames.length}`);
|
|
22
|
+
console.log(toolNames.join('\n'));
|
|
23
|
+
}
|
|
24
|
+
finally {
|
|
25
|
+
await client.close();
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=check-http.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-http.js","sourceRoot":"","sources":["../src/check-http.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AACnE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oDAAoD,CAAC;AAEnG,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAE7D,IAAI,CAAC,QAAQ,EAAE,CAAC;IACd,OAAO,CAAC,KAAK,CACX,qEAAqE,CACtE,CAAC;IACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC;AAED,MAAM,MAAM,GAAG,IAAI,MAAM,CACvB;IACE,IAAI,EAAE,sBAAsB;IAC5B,OAAO,EAAE,OAAO;CACjB,EACD;IACE,YAAY,EAAE,EAAE;CACjB,CACF,CAAC;AAEF,IAAI,CAAC;IACH,MAAM,SAAS,GAAG,IAAI,6BAA6B,CAAC,IAAI,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC;IACvE,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAEhC,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,EAAE,CAAC;IACxC,MAAM,SAAS,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAExD,OAAO,CAAC,GAAG,CAAC,gBAAgB,QAAQ,EAAE,CAAC,CAAC;IACxC,OAAO,CAAC,GAAG,CAAC,UAAU,SAAS,CAAC,MAAM,EAAE,CAAC,CAAC;IAC1C,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;AACpC,CAAC;QAAS,CAAC;IACT,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC;AACvB,CAAC"}
|
package/dist/cli/index.js
CHANGED
|
@@ -18,14 +18,14 @@ export function runCli(args) {
|
|
|
18
18
|
}
|
|
19
19
|
function printHelp() {
|
|
20
20
|
console.log(`Usage:
|
|
21
|
-
paput-mcp MCP
|
|
22
|
-
paput-mcp setup-ai
|
|
21
|
+
paput-mcp Start the MCP server
|
|
22
|
+
paput-mcp setup-ai Set up PaPut integration for Claude/Codex
|
|
23
23
|
|
|
24
24
|
Options:
|
|
25
|
-
--force PaPut
|
|
26
|
-
--no-rules
|
|
27
|
-
--claude-only Claude
|
|
28
|
-
--codex-only Codex
|
|
25
|
+
--force Refresh existing PaPut-managed links and rules
|
|
26
|
+
--no-rules Do not update global rules
|
|
27
|
+
--claude-only Configure Claude only
|
|
28
|
+
--codex-only Configure Codex only
|
|
29
29
|
`);
|
|
30
30
|
}
|
|
31
31
|
//# sourceMappingURL=index.js.map
|