@agentbrain/mcp-server 1.0.0 → 1.2.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
CHANGED
|
@@ -297,10 +297,15 @@ Once configured, your agent can use these 4 tools:
|
|
|
297
297
|
|
|
298
298
|
**What it does:** Analyzes your recent git changes and creates a handoff document for the next session.
|
|
299
299
|
|
|
300
|
+
**Parameters:**
|
|
301
|
+
- `repo_path` (required): Path to repository
|
|
302
|
+
- `goal` (optional): Session goal or objective
|
|
303
|
+
- `commit_count` (optional): Number of recent commits to include (default: 5)
|
|
304
|
+
|
|
300
305
|
**Example prompts:**
|
|
301
306
|
- "Save a handoff for this session"
|
|
302
307
|
- "Create a handoff document with goal: implemented auth"
|
|
303
|
-
- "Generate a session summary"
|
|
308
|
+
- "Generate a session summary with the last 10 commits"
|
|
304
309
|
|
|
305
310
|
**Cost:** ~$0.01
|
|
306
311
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export interface SaveHandoffInput {
|
|
2
2
|
repo_path: string;
|
|
3
3
|
goal?: string;
|
|
4
|
+
commit_count?: number;
|
|
4
5
|
}
|
|
5
6
|
export interface SaveHandoffOutput {
|
|
6
7
|
content: string;
|
|
@@ -22,6 +23,10 @@ export declare const saveHandoffSchema: {
|
|
|
22
23
|
type: string;
|
|
23
24
|
description: string;
|
|
24
25
|
};
|
|
26
|
+
commit_count: {
|
|
27
|
+
type: string;
|
|
28
|
+
description: string;
|
|
29
|
+
};
|
|
25
30
|
};
|
|
26
31
|
required: string[];
|
|
27
32
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"save-handoff.d.ts","sourceRoot":"","sources":["../../src/tools/save-handoff.ts"],"names":[],"mappings":"AAkBA,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"save-handoff.d.ts","sourceRoot":"","sources":["../../src/tools/save-handoff.ts"],"names":[],"mappings":"AAkBA,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,wBAAsB,WAAW,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CA+BrF;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;CAsB7B,CAAA"}
|
|
@@ -14,7 +14,7 @@ function expandPath(path) {
|
|
|
14
14
|
return resolve(path);
|
|
15
15
|
}
|
|
16
16
|
export async function saveHandoff(input) {
|
|
17
|
-
const { repo_path, goal } = input;
|
|
17
|
+
const { repo_path, goal, commit_count = 5 } = input;
|
|
18
18
|
// Expand path to handle ~, relative paths, etc.
|
|
19
19
|
const expandedPath = expandPath(repo_path);
|
|
20
20
|
// Load AI config
|
|
@@ -24,6 +24,7 @@ export async function saveHandoff(input) {
|
|
|
24
24
|
repoPath: expandedPath,
|
|
25
25
|
aiConfig,
|
|
26
26
|
goal,
|
|
27
|
+
commitCount: commit_count,
|
|
27
28
|
});
|
|
28
29
|
// Write to disk
|
|
29
30
|
const outputDir = join(expandedPath, 'agentbrain');
|
|
@@ -52,6 +53,10 @@ export const saveHandoffSchema = {
|
|
|
52
53
|
type: 'string',
|
|
53
54
|
description: 'Optional session goal or objective to include in handoff',
|
|
54
55
|
},
|
|
56
|
+
commit_count: {
|
|
57
|
+
type: 'number',
|
|
58
|
+
description: 'Number of recent commits to include in the handoff (default: 5)',
|
|
59
|
+
},
|
|
55
60
|
},
|
|
56
61
|
required: ['repo_path'],
|
|
57
62
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"save-handoff.js","sourceRoot":"","sources":["../../src/tools/save-handoff.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACpC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAEhE;;GAEG;AACH,SAAS,UAAU,CAAC,IAAY;IAC9B,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,IAAI,KAAK,GAAG,EAAE,CAAC;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,CAAA;IACrC,CAAC;IACD,OAAO,OAAO,CAAC,IAAI,CAAC,CAAA;AACtB,CAAC;
|
|
1
|
+
{"version":3,"file":"save-handoff.js","sourceRoot":"","sources":["../../src/tools/save-handoff.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACpC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAEhE;;GAEG;AACH,SAAS,UAAU,CAAC,IAAY;IAC9B,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,IAAI,KAAK,GAAG,EAAE,CAAC;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,CAAA;IACrC,CAAC;IACD,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