paput-mcp 4.2.23 → 4.2.27
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 +6 -2
- package/dist/cli/rules/paput-project-context.md +3 -1
- package/dist/handlers/add-knowledge-candidates/handler.js +19 -3
- package/dist/handlers/add-knowledge-candidates/handler.js.map +1 -1
- package/dist/handlers/add-project-document/tool.js +1 -1
- package/dist/handlers/add-project-document/tool.js.map +1 -1
- package/dist/handlers/get-project-context/handler.js +25 -24
- package/dist/handlers/get-project-context/handler.js.map +1 -1
- package/dist/handlers/get-project-context/tool.js +1 -1
- package/dist/handlers/get-project-context/tool.js.map +1 -1
- package/dist/handlers/get-project-document/tool.js +1 -1
- package/dist/handlers/get-project-document/tool.js.map +1 -1
- package/dist/handlers/get-skill-sheet/handler.js +23 -1
- package/dist/handlers/get-skill-sheet/handler.js.map +1 -1
- package/dist/handlers/index.js +2 -0
- package/dist/handlers/index.js.map +1 -1
- package/dist/handlers/search-project-documents/handler.js +69 -0
- package/dist/handlers/search-project-documents/handler.js.map +1 -0
- package/dist/handlers/search-project-documents/index.js +3 -0
- package/dist/handlers/search-project-documents/index.js.map +1 -0
- package/dist/handlers/search-project-documents/tool.js +27 -0
- package/dist/handlers/search-project-documents/tool.js.map +1 -0
- package/dist/handlers/update-project-document/handler.js +14 -0
- package/dist/handlers/update-project-document/handler.js.map +1 -1
- package/dist/handlers/update-project-document/tool.js +7 -2
- package/dist/handlers/update-project-document/tool.js.map +1 -1
- package/dist/handlers/update-skill-sheet-faq/handler.js +86 -0
- package/dist/handlers/update-skill-sheet-faq/handler.js.map +1 -0
- package/dist/handlers/update-skill-sheet-faq/index.js +2 -0
- package/dist/handlers/update-skill-sheet-faq/index.js.map +1 -0
- package/dist/handlers/update-skill-sheet-faq/tool.js +49 -0
- package/dist/handlers/update-skill-sheet-faq/tool.js.map +1 -0
- package/dist/http.js +21 -19
- package/dist/http.js.map +1 -1
- package/dist/plugin/skills/interview-qa/SKILL.md +78 -0
- package/dist/schemas/tool-input.js +49 -2
- package/dist/schemas/tool-input.js.map +1 -1
- package/dist/server.js +1 -0
- package/dist/server.js.map +1 -1
- package/dist/services/api/project-context.js +11 -0
- package/dist/services/api/project-context.js.map +1 -1
- package/dist/services/api/skill-sheet.js +7 -2
- package/dist/services/api/skill-sheet.js.map +1 -1
- package/dist/tool.js +6 -3
- package/dist/tool.js.map +1 -1
- package/dist/types/constants.js +8 -0
- package/dist/types/constants.js.map +1 -1
- package/docs/reviewer-guide.md +2 -2
- package/docs/tools.md +53 -37
- package/docs/usage-examples.md +22 -0
- package/package.json +1 -1
package/dist/tool.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { CallToolRequestSchema, ListToolsRequestSchema, ListResourcesRequestSchema, ReadResourceRequestSchema, } from '@modelcontextprotocol/sdk/types.js';
|
|
2
2
|
import { createApiClient } from './services/api/index.js';
|
|
3
3
|
import { getGeneratedInputSchema, getToolInputZodSchema, } from './schemas/tool-input.js';
|
|
4
|
-
import { createMemosTool, searchMemoTool, findSimilarMemosTool, backfillMemoEmbeddingsTool, getMemoTool, updateMemoTool, getCategoriesTool, createNoteTool, searchNotesTool, getNoteTool, updateNoteTool, getSkillSheetTool, updateSkillSheetBasicInfoTool, updateSkillSheetSelfPrTool, setSkillSheetSkillsTool, upsertSkillSheetProjectTool, deleteSkillSheetProjectTool, getSkillSheetProjectEpisodesContextTool, updateSkillSheetProjectEpisodesTool, listGoalsTool, createGoalTool, updateGoalTool, deleteGoalTool, getDashboardAnalysisTool, updateDashboardAnalysisTool, getDashboardAnalysisContextTool, getProjectContextTool, getProjectDocumentTool, addProjectDocumentTool, updateProjectDocumentTool, updateProjectInstructionsTool, discardProjectProposalTool, promoteProjectDocumentsTool, addKnowledgeCandidatesTool, listProcessedSessionsTool, markProcessedSessionTool, listPendingCandidatesTool, updatePendingCandidateTool, savePendingCandidateTool, discardPendingCandidateTool, getCapturePolicyTool, getDiscardPolicyContextTool, updateCapturePolicyTool, } from './handlers/index.js';
|
|
4
|
+
import { createMemosTool, searchMemoTool, findSimilarMemosTool, backfillMemoEmbeddingsTool, getMemoTool, updateMemoTool, getCategoriesTool, createNoteTool, searchNotesTool, getNoteTool, updateNoteTool, getSkillSheetTool, updateSkillSheetBasicInfoTool, updateSkillSheetSelfPrTool, setSkillSheetSkillsTool, upsertSkillSheetProjectTool, deleteSkillSheetProjectTool, getSkillSheetProjectEpisodesContextTool, updateSkillSheetProjectEpisodesTool, updateSkillSheetFaqTool, listGoalsTool, createGoalTool, updateGoalTool, deleteGoalTool, getDashboardAnalysisTool, updateDashboardAnalysisTool, getDashboardAnalysisContextTool, getProjectContextTool, getProjectDocumentTool, searchProjectDocumentsTool, addProjectDocumentTool, updateProjectDocumentTool, updateProjectInstructionsTool, discardProjectProposalTool, promoteProjectDocumentsTool, addKnowledgeCandidatesTool, listProcessedSessionsTool, markProcessedSessionTool, listPendingCandidatesTool, updatePendingCandidateTool, savePendingCandidateTool, discardPendingCandidateTool, getCapturePolicyTool, getDiscardPolicyContextTool, updateCapturePolicyTool, } from './handlers/index.js';
|
|
5
5
|
export function setupTool(server, apiUrl, accessToken, context = {}, registeredToolsOptions = {}) {
|
|
6
6
|
const apiClient = createApiClient(apiUrl, accessToken);
|
|
7
|
-
|
|
7
|
+
// alias は未解決のまま渡る(実在確認はツール呼び出し時)ので、設定の有無だけで判定する。
|
|
8
|
+
const projectContextConfigured = Boolean(context.projectId ?? context.projectAlias);
|
|
8
9
|
const tools = getRegisteredTools({
|
|
9
10
|
...registeredToolsOptions,
|
|
10
11
|
projectContextConfigured,
|
|
@@ -106,6 +107,7 @@ export function getRegisteredTools(options = {}) {
|
|
|
106
107
|
deleteSkillSheetProjectTool,
|
|
107
108
|
getSkillSheetProjectEpisodesContextTool,
|
|
108
109
|
updateSkillSheetProjectEpisodesTool,
|
|
110
|
+
updateSkillSheetFaqTool,
|
|
109
111
|
listGoalsTool,
|
|
110
112
|
createGoalTool,
|
|
111
113
|
updateGoalTool,
|
|
@@ -115,6 +117,7 @@ export function getRegisteredTools(options = {}) {
|
|
|
115
117
|
getDashboardAnalysisContextTool,
|
|
116
118
|
getProjectContextTool,
|
|
117
119
|
getProjectDocumentTool,
|
|
120
|
+
searchProjectDocumentsTool,
|
|
118
121
|
addProjectDocumentTool,
|
|
119
122
|
updateProjectDocumentTool,
|
|
120
123
|
updateProjectInstructionsTool,
|
|
@@ -135,7 +138,7 @@ export function getRegisteredTools(options = {}) {
|
|
|
135
138
|
.map(withToolAnnotations)
|
|
136
139
|
.map((tool) => projectContextConfigured ? withConfiguredProjectContext(tool) : tool);
|
|
137
140
|
}
|
|
138
|
-
const PROJECT_CONTEXT_CONFIGURED_DESCRIPTION = 'Get the private project context (always-applied instructions
|
|
141
|
+
const PROJECT_CONTEXT_CONFIGURED_DESCRIPTION = 'Get the private project context (always-applied instructions, pending skill proposals, and document counts by kind) for the configured project. The project is resolved automatically from the MCP URL project_alias, so call this with no arguments at session start. Before drafting a design decision, implementation plan, or refactor, search past decisions and rejected alternatives with paput_search_project_documents.';
|
|
139
142
|
function withConfiguredProjectContext(tool) {
|
|
140
143
|
if (tool.definition.name !== 'paput_get_project_context')
|
|
141
144
|
return tool;
|
package/dist/tool.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool.js","sourceRoot":"","sources":["../src/tool.ts"],"names":[],"mappings":"AACA,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,0BAA0B,EAC1B,yBAAyB,GAC1B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EACL,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,0BAA0B,EAC1B,WAAW,EACX,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,WAAW,EACX,cA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AI,KAAK,0BAA0B;QACnC,IAAI,KAAK,kCAAkC;QAC3C,IAAI,KAAK,+BAA+B,CACzC,CAAC;AACJ,CAAC;AAED,SAAS,iBAAiB,CAAC,IAAY;IACrC,OAAO,CACL,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC;QACzB,IAAI,KAAK,8BAA8B;QACvC,IAAI,KAAK,iCAAiC;QAC1C,IAAI,KAAK,gCAAgC;QACzC,IAAI,KAAK,iCAAiC;QAC1C,IAAI,KAAK,6BAA6B;QACtC,IAAI,KAAK,8BAA8B;QACvC,IAAI,KAAK,kCAAkC;QAC3C,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,CACjC,CAAC;AACJ,CAAC;AAED,SAAS,gBAAgB,CAAC,IAAY;IACpC,OAAO,CACL,cAAc,CAAC,IAAI,CAAC;QACpB,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC;QAChC,IAAI,KAAK,8BAA8B,CACxC,CAAC;AACJ,CAAC"}
|
package/dist/types/constants.js
CHANGED
|
@@ -12,6 +12,14 @@ export const CATEGORY_TYPE = {
|
|
|
12
12
|
3: 'Database',
|
|
13
13
|
4: 'Infrastructure',
|
|
14
14
|
};
|
|
15
|
+
export const PROCESS = {
|
|
16
|
+
1: 'Requirements',
|
|
17
|
+
2: 'Basic design',
|
|
18
|
+
3: 'Detailed design',
|
|
19
|
+
4: 'Implementation',
|
|
20
|
+
5: 'Testing',
|
|
21
|
+
6: 'Maintenance',
|
|
22
|
+
};
|
|
15
23
|
export const SKILL_LEVEL = {
|
|
16
24
|
A: 'A',
|
|
17
25
|
B: 'B',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/types/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,QAAQ;CACH,CAAC;AAEX,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,CAAC,EAAE,UAAU;IACb,CAAC,EAAE,UAAU;CACL,CAAC;AAEX,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,CAAC,EAAE,UAAU;IACb,CAAC,EAAE,WAAW;IACd,CAAC,EAAE,UAAU;IACb,CAAC,EAAE,gBAAgB;CACX,CAAC;AAEX,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;CACE,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/types/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,QAAQ;CACH,CAAC;AAEX,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,CAAC,EAAE,UAAU;IACb,CAAC,EAAE,UAAU;CACL,CAAC;AAEX,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,CAAC,EAAE,UAAU;IACb,CAAC,EAAE,WAAW;IACd,CAAC,EAAE,UAAU;IACb,CAAC,EAAE,gBAAgB;CACX,CAAC;AAEX,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,CAAC,EAAE,cAAc;IACjB,CAAC,EAAE,cAAc;IACjB,CAAC,EAAE,iBAAiB;IACpB,CAAC,EAAE,gBAAgB;IACnB,CAAC,EAAE,SAAS;IACZ,CAAC,EAAE,aAAa;CACR,CAAC;AAEX,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;CACE,CAAC"}
|
package/docs/reviewer-guide.md
CHANGED
|
@@ -18,11 +18,11 @@ The connector exposes the following tools. All tools carry annotations
|
|
|
18
18
|
|
|
19
19
|
- **Memos:** create, search, get, update, list categories
|
|
20
20
|
- **Notes:** create, search, get, update
|
|
21
|
-
- **Skill sheet:** get and update basic info, self PR, skills, projects, project achievements,
|
|
21
|
+
- **Skill sheet:** get and update basic info, self PR, skills, projects, project achievements, generated project episodes, and the user-authored Q&A (FAQ) section
|
|
22
22
|
- **Goals:** list, create, update, delete
|
|
23
23
|
- **Dashboard analysis:** get and update the user's dashboard analysis
|
|
24
24
|
- **Knowledge capture:** add, list, update, save, discard pending candidates; manage processed session markers and capture policy
|
|
25
|
-
- **Project documents:** get project context, read/add/update private project documents, manage project instructions and proposal promotion status
|
|
25
|
+
- **Project documents:** get project context, search/read/add/update private project documents, manage project instructions and proposal promotion status
|
|
26
26
|
|
|
27
27
|
## Test account
|
|
28
28
|
|
package/docs/tools.md
CHANGED
|
@@ -18,6 +18,7 @@ Clients and assistants should follow these rules:
|
|
|
18
18
|
- `paput_save_pending_candidate` requires explicit user approval because it creates a PaPut memo from a pending candidate.
|
|
19
19
|
- `paput_delete_skill_sheet_project` should be used only when the user clearly intends to remove a project.
|
|
20
20
|
- `paput_update_skill_sheet_project_episodes` should be used only after the MCP client AI model has drafted project episodes and the user intends to save them.
|
|
21
|
+
- `paput_update_skill_sheet_faq` full-replaces the user-authored FAQ and should be used only after the user explicitly approves the FAQ content.
|
|
21
22
|
- `paput_update_dashboard_analysis` should be used only after the MCP client AI model has generated dashboard analysis and the user intends to save it.
|
|
22
23
|
- `paput_set_skill_sheet_skills` replaces the full skill list and should be used only when the complete desired final list is known.
|
|
23
24
|
- `paput_discard_pending_candidate` removes a pending item from the save flow and should be confirmed when the candidate may still be useful.
|
|
@@ -65,16 +66,17 @@ the response reports `has_more: true`.
|
|
|
65
66
|
|
|
66
67
|
## Skill Sheet Tools
|
|
67
68
|
|
|
68
|
-
| Tool
|
|
69
|
-
|
|
|
70
|
-
| `paput_get_skill_sheet`
|
|
71
|
-
| `paput_update_skill_sheet_basic_info`
|
|
72
|
-
| `paput_update_skill_sheet_self_pr`
|
|
73
|
-
| `paput_set_skill_sheet_skills`
|
|
74
|
-
| `paput_upsert_skill_sheet_project`
|
|
75
|
-
| `paput_delete_skill_sheet_project`
|
|
76
|
-
| `paput_get_skill_sheet_project_episodes_context` | Read-only
|
|
77
|
-
| `paput_update_skill_sheet_project_episodes`
|
|
69
|
+
| Tool | Safety | Use case |
|
|
70
|
+
| ------------------------------------------------ | ----------------- | ------------------------------------------------------------------------------------------------ |
|
|
71
|
+
| `paput_get_skill_sheet` | Read-only | Read the user's PaPut skill sheet. |
|
|
72
|
+
| `paput_update_skill_sheet_basic_info` | Destructive/write | Update profile fields such as nearest station, gender, birth date, or years of experience. |
|
|
73
|
+
| `paput_update_skill_sheet_self_pr` | Destructive/write | Update the self PR section. |
|
|
74
|
+
| `paput_set_skill_sheet_skills` | Destructive/write | Replace the full skill list with a known final state. |
|
|
75
|
+
| `paput_upsert_skill_sheet_project` | Destructive/write | Add or update a skill sheet project by ID or exact title match, including optional achievements. |
|
|
76
|
+
| `paput_delete_skill_sheet_project` | Destructive | Delete a skill sheet project by ID. |
|
|
77
|
+
| `paput_get_skill_sheet_project_episodes_context` | Read-only | Get project information and public linked memo bodies for MCP client-side episode drafting. |
|
|
78
|
+
| `paput_update_skill_sheet_project_episodes` | Destructive/write | Full-replace generated project episodes after explicit user approval. |
|
|
79
|
+
| `paput_update_skill_sheet_faq` | Destructive/write | Full-replace the user-authored Q&A (FAQ) section after explicit user approval. |
|
|
78
80
|
|
|
79
81
|
`paput_get_skill_sheet_project_episodes_context` returns project information and
|
|
80
82
|
public linked memo bodies in `structuredContent`; private linked memos are
|
|
@@ -87,6 +89,14 @@ episodes for a project. Pass `episodes: []` only when the user explicitly wants
|
|
|
87
89
|
to clear them. The API filters supporting memo IDs to the user's own public
|
|
88
90
|
memos and reports dropped IDs.
|
|
89
91
|
|
|
92
|
+
`paput_update_skill_sheet_faq` full-replaces the FAQ section returned by
|
|
93
|
+
`paput_get_skill_sheet`. Unlike project episodes, FAQ question and answer text
|
|
94
|
+
are user-authored originals, not AI-generated, so a resolved `related_memos`
|
|
95
|
+
list is an optional evidence badge rather than a requirement. Pass `faq: []`
|
|
96
|
+
only when the user explicitly wants to clear all items. The API filters
|
|
97
|
+
`related_memo_ids` to the user's own public memos and reports dropped IDs per
|
|
98
|
+
item.
|
|
99
|
+
|
|
90
100
|
## Goal Tools
|
|
91
101
|
|
|
92
102
|
| Tool | Safety | Use case |
|
|
@@ -124,47 +134,53 @@ repeatable procedures. They are API-backed and available through Remote HTTP
|
|
|
124
134
|
MCP. Project context and documents are private and are never exposed
|
|
125
135
|
publicly.
|
|
126
136
|
|
|
127
|
-
| Tool | Safety | Use case
|
|
128
|
-
| ----------------------------------- | ----------------- |
|
|
129
|
-
| `paput_get_project_context` | Read-only | Get a project's always-applied instructions and document
|
|
130
|
-
| `paput_get_project_document` | Read-only | Read the full body of a project document by ID,
|
|
131
|
-
| `
|
|
132
|
-
| `
|
|
133
|
-
| `
|
|
134
|
-
| `
|
|
135
|
-
| `
|
|
137
|
+
| Tool | Safety | Use case |
|
|
138
|
+
| ----------------------------------- | ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
139
|
+
| `paput_get_project_context` | Read-only | Get a project's always-applied instructions, pending skill proposals, and document counts by kind by fuzzy name match. Call at session start. |
|
|
140
|
+
| `paput_get_project_document` | Read-only | Read the full body of a project document by ID, found via `paput_search_project_documents`. |
|
|
141
|
+
| `paput_search_project_documents` | Read-only | Semantic search over private project documents (vector search). Use before drafting a decision or plan. |
|
|
142
|
+
| `paput_add_project_document` | Write | Save a design decision, procedure, or skill candidate linked to a project, with same-kind dedup. |
|
|
143
|
+
| `paput_update_project_document` | Destructive/write | Replace a document's title, summary, and body by ID; optionally set status to active or archived. |
|
|
144
|
+
| `paput_update_project_instructions` | Destructive/write | Overwrite a project's always-applied instructions (max 8000 chars). Requires explicit user approval. |
|
|
145
|
+
| `paput_discard_project_proposal` | Destructive | Record that the user rejected a skill proposal so it is not raised again. |
|
|
146
|
+
| `paput_promote_project_documents` | Destructive | Mark a skill proposal and its procedure documents as promoted after a skill is created. |
|
|
136
147
|
|
|
137
148
|
When `project_alias` is present in the MCP URL, `paput_get_project_context` is
|
|
138
149
|
called with no arguments and the `project` argument is not exposed. Without a
|
|
139
150
|
URL project context, provide `project` per call.
|
|
140
151
|
|
|
141
|
-
`paput_get_project_context` returns
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
152
|
+
`paput_get_project_context` returns instructions, pending proposals, and
|
|
153
|
+
document counts only (no document list or bodies). Before drafting a design
|
|
154
|
+
decision, implementation plan, or refactor, search past decisions and rejected
|
|
155
|
+
alternatives with `paput_search_project_documents`, then fetch bodies on demand
|
|
156
|
+
with `paput_get_project_document`. Save settled design decisions and repeatable
|
|
157
|
+
procedures with `paput_add_project_document`; when similar procedure records
|
|
158
|
+
repeat, the server may suggest turning them into a skill. After the user
|
|
159
|
+
approves a skill proposal and the skill is created, call
|
|
146
160
|
`paput_promote_project_documents` with the proposal and related procedure IDs; if
|
|
147
161
|
the user rejects it, call `paput_discard_project_proposal` with the reason.
|
|
148
162
|
Because instructions are loaded in full at session start, change them only with
|
|
149
|
-
`paput_update_project_instructions` after explicit user approval.
|
|
163
|
+
`paput_update_project_instructions` after explicit user approval. Archive
|
|
164
|
+
settled or superseded documents with `paput_update_project_document`'s
|
|
165
|
+
`status` argument to exclude them from default search results.
|
|
150
166
|
|
|
151
167
|
## Knowledge Capture Tools
|
|
152
168
|
|
|
153
169
|
Knowledge capture state is stored by the PaPut API and is available through
|
|
154
170
|
Remote HTTP MCP.
|
|
155
171
|
|
|
156
|
-
| Tool | Safety
|
|
157
|
-
| ---------------------------------- |
|
|
158
|
-
| `paput_add_knowledge_candidates` | Write to pending queue
|
|
159
|
-
| `paput_list_processed_sessions` | Read-only
|
|
160
|
-
| `paput_mark_processed_session` | Write
|
|
161
|
-
| `paput_list_pending_candidates` | Read-only
|
|
162
|
-
| `paput_update_pending_candidate` | Write to pending queue
|
|
163
|
-
| `paput_save_pending_candidate` | Write
|
|
164
|
-
| `paput_discard_pending_candidate` | Destructive action
|
|
165
|
-
| `paput_get_capture_policy` | Read-only
|
|
166
|
-
| `paput_get_discard_policy_context` | Read-only
|
|
167
|
-
| `paput_update_capture_policy` | Write
|
|
172
|
+
| Tool | Safety | Use case |
|
|
173
|
+
| ---------------------------------- | ---------------------- | ------------------------------------------------------------------------------- |
|
|
174
|
+
| `paput_add_knowledge_candidates` | Write to pending queue | Add extracted reusable knowledge candidates before they are saved to PaPut. |
|
|
175
|
+
| `paput_list_processed_sessions` | Read-only | List Claude/Codex sessions already reviewed for knowledge capture. |
|
|
176
|
+
| `paput_mark_processed_session` | Write | Mark a reviewed Claude/Codex session as processed when no candidates are added. |
|
|
177
|
+
| `paput_list_pending_candidates` | Read-only | List pending candidates for review. |
|
|
178
|
+
| `paput_update_pending_candidate` | Write to pending queue | Refine a pending candidate's fields before it is saved. |
|
|
179
|
+
| `paput_save_pending_candidate` | Write | Save an approved pending candidate as a PaPut memo. |
|
|
180
|
+
| `paput_discard_pending_candidate` | Destructive action | Remove a pending candidate from the save flow. |
|
|
181
|
+
| `paput_get_capture_policy` | Read-only | Read the capture policy generated from discarded candidates. |
|
|
182
|
+
| `paput_get_discard_policy_context` | Read-only | Read discarded candidates and current policy for AI-side policy analysis. |
|
|
183
|
+
| `paput_update_capture_policy` | Write | Save the capture policy generated by the AI. |
|
|
168
184
|
|
|
169
185
|
Capture policy workflow:
|
|
170
186
|
|
package/docs/usage-examples.md
CHANGED
|
@@ -204,3 +204,25 @@ If older memos never appear in similarity results, run
|
|
|
204
204
|
`paput_backfill_memo_embeddings` and repeat while the response reports
|
|
205
205
|
`has_more: true`. This is a one-time setup step; new and updated memos are
|
|
206
206
|
embedded automatically.
|
|
207
|
+
|
|
208
|
+
## 12. Source And Save Interview Q&A (FAQ)
|
|
209
|
+
|
|
210
|
+
Prompt:
|
|
211
|
+
|
|
212
|
+
```text
|
|
213
|
+
Help me build out my PaPut FAQ from questions I've been asked in interviews and my memos, then save it after I approve it.
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
Expected tool flow:
|
|
217
|
+
|
|
218
|
+
1. `paput_get_skill_sheet` to see the current `faq` and profile
|
|
219
|
+
2. `paput_get_categories` and `paput_search_memo` to find decision/operation/principle clusters for memo-derived question candidates
|
|
220
|
+
3. Web search (or, if unavailable, general model knowledge labeled as tentative) for general technical interview questions, filtered to the user's skills
|
|
221
|
+
4. MCP client AI presents candidates from all three sources; the user adopts or rejects each one
|
|
222
|
+
5. MCP client AI drafts a first-person answer for each adopted question
|
|
223
|
+
6. `paput_get_skill_sheet` again, then `paput_update_skill_sheet_faq` with the merged full list, after the user approves the drafts. Check the per-item `dropped_ids` in that response.
|
|
224
|
+
7. `paput_get_skill_sheet` to verify the saved result
|
|
225
|
+
|
|
226
|
+
Use case: build the skill sheet's Q&A section from real interview questions,
|
|
227
|
+
existing memo evidence, and general interview-question research, without
|
|
228
|
+
locking the question set to a static list baked into the skill.
|