persyst-mcp 2.1.2 → 2.1.3
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/package.json +1 -1
- package/src/git.js +2 -2
- package/src/server.js +1 -1
- package/src/tools.js +3 -3
package/package.json
CHANGED
package/src/git.js
CHANGED
|
@@ -55,8 +55,8 @@ export async function getRecentCommits(repoPath, count = 20) {
|
|
|
55
55
|
|
|
56
56
|
// Build a readable memory string
|
|
57
57
|
let fullText = body
|
|
58
|
-
? `[${hash.slice(0, 7)}] ${subject} — by ${author} on ${date}. ${body}`
|
|
59
|
-
: `[${hash.slice(0, 7)}] ${subject} — by ${author} on ${date}`;
|
|
58
|
+
? `[${hash.slice(0, 7)}] Commit: ${subject} — by ${author} on ${date}. ${body}`
|
|
59
|
+
: `[${hash.slice(0, 7)}] Commit: ${subject} — by ${author} on ${date}`;
|
|
60
60
|
|
|
61
61
|
if (notes) {
|
|
62
62
|
fullText += ` [PR Notes] ${notes}`;
|
package/src/server.js
CHANGED
package/src/tools.js
CHANGED
|
@@ -118,7 +118,7 @@ export function registerTools(server) {
|
|
|
118
118
|
// 1. ADD MEMORY
|
|
119
119
|
server.tool(
|
|
120
120
|
'add_memory',
|
|
121
|
-
'Store a new memory.
|
|
121
|
+
'Store a new memory. CRITICAL: Call this tool proactively to store important milestones, architectural decisions, and explicit user preferences. Always specify your agent name as agent_id to support namespace isolation.',
|
|
122
122
|
{
|
|
123
123
|
content: z.string().describe('The memory content to store'),
|
|
124
124
|
importance: z.number().min(0).max(1).default(1.0).describe('Importance score from 0 (low) to 1 (high)'),
|
|
@@ -209,7 +209,7 @@ export function registerTools(server) {
|
|
|
209
209
|
// 2. SEARCH MEMORIES
|
|
210
210
|
server.tool(
|
|
211
211
|
'search_memories',
|
|
212
|
-
'Search memories using hybrid keyword + semantic search with cryptographic attestation.
|
|
212
|
+
'Search memories using hybrid keyword + semantic search with cryptographic attestation. CRITICAL: Call this tool at the start of a session or task to retrieve relevant user preferences, coding guidelines, and past decisions.',
|
|
213
213
|
{
|
|
214
214
|
query: z.string().describe('What to search for'),
|
|
215
215
|
limit: z.number().default(5).describe('Max results (default: 5)'),
|
|
@@ -647,7 +647,7 @@ export function registerTools(server) {
|
|
|
647
647
|
// 18. GET OPTIMIZED CONTEXT
|
|
648
648
|
server.tool(
|
|
649
649
|
'get_optimized_context',
|
|
650
|
-
'Compile a condensed context prompt within a token budget by hopping the knowledge graph and ranking by temporal decay + agent reputation.
|
|
650
|
+
'Compile a condensed context prompt within a token budget by hopping the knowledge graph and ranking by temporal decay + agent reputation. CRITICAL: Invoke this tool at the start of a task to load all relevant conventions and decisions.',
|
|
651
651
|
{
|
|
652
652
|
query: z.string().describe('The search query context'),
|
|
653
653
|
max_tokens: z.number().default(4000).describe('Token budget for LLM context compression (default: 4000)'),
|