@suco/su-auggie-mcp 0.1.5 → 0.1.7
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/dist/index.js +4 -1
- package/dist/tools/debug.js +4 -0
- package/dist/types.d.ts +4 -2
- package/dist/workspace.js +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4,9 +4,12 @@
|
|
|
4
4
|
* MCP server exposing Augment Code context engine capabilities
|
|
5
5
|
*/
|
|
6
6
|
import { Command } from 'commander';
|
|
7
|
+
import { createRequire } from 'node:module';
|
|
7
8
|
import { startServer } from './server.js';
|
|
8
9
|
import { createLogger } from './logger.js';
|
|
9
10
|
import { setDebugMode, setPersistenceEnabled } from './config.js';
|
|
11
|
+
const require = createRequire(import.meta.url);
|
|
12
|
+
const pkg = require('../package.json');
|
|
10
13
|
const logger = createLogger('CLI');
|
|
11
14
|
/** Parse workspace paths from CLI argument (supports comma-separated) */
|
|
12
15
|
function parseWorkspacePaths(value, previous) {
|
|
@@ -19,7 +22,7 @@ async function main() {
|
|
|
19
22
|
program
|
|
20
23
|
.name('suco-auggie-mcp')
|
|
21
24
|
.description('MCP server exposing Augment Code context engine capabilities')
|
|
22
|
-
.version(
|
|
25
|
+
.version(pkg.version)
|
|
23
26
|
.option('-w, --workspace <path>', 'Add workspace path (can be repeated or comma-separated)', parseWorkspacePaths, [])
|
|
24
27
|
.option('--ignore-roots', 'Ignore MCP roots and CWD fallback, use only -w workspaces')
|
|
25
28
|
.option('--debug', 'Enable debug mode (logging capability + debug tool)')
|
package/dist/tools/debug.js
CHANGED
|
@@ -2,10 +2,13 @@
|
|
|
2
2
|
* Debug tool - inspect internal server state (only available with --debug)
|
|
3
3
|
*/
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
+
import { createRequire } from 'node:module';
|
|
5
6
|
import { workspaceManager } from '../workspace-manager.js';
|
|
6
7
|
import { createLogger } from '../logger.js';
|
|
7
8
|
import { INDEXING_CONFIG, WATCHER_CONFIG, PERSISTENCE_CONFIG, isPersistenceEnabled } from '../config.js';
|
|
8
9
|
import { sendLogToClient, clientSupportsElicitation, elicitInput, getMcpServer, } from '../mcp-notifications.js';
|
|
10
|
+
const require = createRequire(import.meta.url);
|
|
11
|
+
const pkg = require('../../package.json');
|
|
9
12
|
const logger = createLogger('DebugTool');
|
|
10
13
|
/** Tool name */
|
|
11
14
|
export const DEBUG_TOOL_NAME = 'debug';
|
|
@@ -99,6 +102,7 @@ export async function handleDebugTool(input) {
|
|
|
99
102
|
}
|
|
100
103
|
case 'config': {
|
|
101
104
|
const config = {
|
|
105
|
+
version: pkg.version,
|
|
102
106
|
indexing: INDEXING_CONFIG,
|
|
103
107
|
watcher: WATCHER_CONFIG,
|
|
104
108
|
persistence: {
|
package/dist/types.d.ts
CHANGED
|
@@ -133,7 +133,9 @@ export interface WorkspaceStatus {
|
|
|
133
133
|
root: string;
|
|
134
134
|
/** Current status */
|
|
135
135
|
status: WorkspaceStatusType;
|
|
136
|
-
/** Total files
|
|
136
|
+
/** Total files in SDK index (persisted + newly indexed) */
|
|
137
|
+
totalIndexed: number;
|
|
138
|
+
/** Total files processed this session (indexed + skipped + failed + pending) */
|
|
137
139
|
total: number;
|
|
138
140
|
/** Files skipped (too large, binary, unreadable, etc.) */
|
|
139
141
|
skipped: number;
|
|
@@ -141,7 +143,7 @@ export interface WorkspaceStatus {
|
|
|
141
143
|
failed: number;
|
|
142
144
|
/** Number of pending files (change queue + retry queue) */
|
|
143
145
|
pending: number;
|
|
144
|
-
/** Number of indexed files */
|
|
146
|
+
/** Number of newly indexed files this session */
|
|
145
147
|
indexed: number;
|
|
146
148
|
/** Whether file watcher is active */
|
|
147
149
|
watching: boolean;
|
package/dist/workspace.js
CHANGED
|
@@ -608,12 +608,15 @@ export class Workspace {
|
|
|
608
608
|
};
|
|
609
609
|
// Calculate pending (change queue + retry queue + cooldown)
|
|
610
610
|
const pending = this.changeQueue.length + progressPending + stats.pendingRetry + stats.pendingCooldown;
|
|
611
|
-
// Calculate total = indexed + skipped + failed + pending
|
|
611
|
+
// Calculate total = indexed + skipped + failed + pending (this session only)
|
|
612
612
|
const indexed = stats.indexed;
|
|
613
613
|
const total = indexed + stats.skipped + stats.failed + pending;
|
|
614
|
+
// Total files in SDK index (persisted + newly indexed)
|
|
615
|
+
const totalIndexed = this.context?.getIndexedPaths().length ?? 0;
|
|
614
616
|
return {
|
|
615
617
|
root: this.root,
|
|
616
618
|
status: this.status,
|
|
619
|
+
totalIndexed,
|
|
617
620
|
total,
|
|
618
621
|
skipped: stats.skipped,
|
|
619
622
|
failed: stats.failed,
|