@suco/su-auggie-mcp 0.1.5 → 0.1.6
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/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: {
|