@adrive/mcp-server 1.1.0 → 1.1.1
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 +2 -2
- package/dist/session.d.ts +5 -1
- package/dist/session.js +8 -1
- package/dist/tools/drive-resume.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ The server derives the current project from its working directory (git remote, e
|
|
|
25
25
|
|
|
26
26
|
## Client configuration
|
|
27
27
|
|
|
28
|
-
`curl -fsSL https://app.agentdrive.sh/install | sh` runs `adrive init`, which wires every detected harness. For Claude Code, install the plugin instead: `/plugin marketplace add Rakesh1002/agentdrive` then `/plugin install agentdrive@agentdrive`.
|
|
28
|
+
`curl -fsSL https://app.agentdrive.sh/install | sh` runs `adrive init`, which wires every detected harness. For Claude Code, install the plugin instead: `/plugin marketplace add Rakesh1002/agentdrive-mcp` then `/plugin install agentdrive@agentdrive`.
|
|
29
29
|
|
|
30
30
|
Manual entries, for reference:
|
|
31
31
|
|
|
@@ -88,4 +88,4 @@ AGENTDRIVE_AGENT_PLATFORM = "codex"
|
|
|
88
88
|
|
|
89
89
|
## License
|
|
90
90
|
|
|
91
|
-
Apache-2.0. See
|
|
91
|
+
Apache-2.0. See [LICENSE](https://github.com/Rakesh1002/agentdrive-mcp/blob/main/LICENSE).
|
package/dist/session.d.ts
CHANGED
|
@@ -29,4 +29,8 @@ export declare function sessionActivityAt(run: {
|
|
|
29
29
|
metadata?: Record<string, unknown>;
|
|
30
30
|
}): number;
|
|
31
31
|
export declare function renderSession(doc: SessionDoc): string;
|
|
32
|
-
export
|
|
32
|
+
export interface HandoffUploads {
|
|
33
|
+
workspaceId: string;
|
|
34
|
+
fileIds: string[];
|
|
35
|
+
}
|
|
36
|
+
export declare function buildHandoff(markdown: string, maxChars?: number, uploads?: HandoffUploads): string;
|
package/dist/session.js
CHANGED
|
@@ -107,7 +107,7 @@ function turnBlock(turn) {
|
|
|
107
107
|
function truncate(s, n) {
|
|
108
108
|
return s.length <= n ? s : `${s.slice(0, n - 3)}...`;
|
|
109
109
|
}
|
|
110
|
-
export function buildHandoff(markdown, maxChars = DEFAULT_HANDOFF_CHARS) {
|
|
110
|
+
export function buildHandoff(markdown, maxChars = DEFAULT_HANDOFF_CHARS, uploads) {
|
|
111
111
|
const session = parseSession(markdown);
|
|
112
112
|
const from = session.harness ?? 'prior';
|
|
113
113
|
const intro = `Handoff from a ${from} session${session.sessionId ? ` (${session.sessionId})` : ''}. Continue this work; verify file state on disk before assuming it.`;
|
|
@@ -125,6 +125,13 @@ export function buildHandoff(markdown, maxChars = DEFAULT_HANDOFF_CHARS) {
|
|
|
125
125
|
shown.push(`- (+${more} more)`);
|
|
126
126
|
sections.push(`## Files touched\n\n${shown.join('\n')}`);
|
|
127
127
|
}
|
|
128
|
+
if (uploads && uploads.fileIds.length > 0) {
|
|
129
|
+
const shown = uploads.fileIds.slice(0, MAX_HANDOFF_FILES).map((id) => `- ${id}`);
|
|
130
|
+
const more = uploads.fileIds.length - shown.length;
|
|
131
|
+
if (more > 0)
|
|
132
|
+
shown.push(`- (+${more} more)`);
|
|
133
|
+
sections.push(`## Uploaded files\n\nCopies of files this session wrote, in workspace ${uploads.workspaceId}. If they are not on disk here, read each with drive_read (workspace_id ${uploads.workspaceId}, file_id below):\n\n${shown.join('\n')}`);
|
|
134
|
+
}
|
|
128
135
|
if (session.turns.length === 0) {
|
|
129
136
|
const fixed = `${sections.join('\n\n')}\n\n## Transcript (tail)\n\n`;
|
|
130
137
|
const body = markdown.trim();
|
|
@@ -33,5 +33,5 @@ export async function driveResume(client, args) {
|
|
|
33
33
|
if (isEncrypted(file.content)) {
|
|
34
34
|
return text(`This session is encrypted client-side; run \`adrive resume ${run.run_id}\` in a shell to view it.`);
|
|
35
35
|
}
|
|
36
|
-
return text(buildHandoff(file.content, args.max_chars));
|
|
36
|
+
return text(buildHandoff(file.content, args.max_chars, { workspaceId: run.workspace_id, fileIds: run.artifacts_produced }));
|
|
37
37
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adrive/mcp-server",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "MCP server for AgentDrive — cross-agent artifact workspace with provenance and portable storage across Claude Code, Codex, Cursor, and LangGraph.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"url": "git+https://github.com/Rakesh1002/agentdrive-mcp.git"
|
|
25
25
|
},
|
|
26
26
|
"bugs": {
|
|
27
|
-
"url": "https://github.com/Rakesh1002/agentdrive/issues"
|
|
27
|
+
"url": "https://github.com/Rakesh1002/agentdrive-mcp/issues"
|
|
28
28
|
},
|
|
29
29
|
"keywords": [
|
|
30
30
|
"agentdrive",
|