Skip to content

Commit 3a8539a

Browse files
committed
feat: add dc version to config
1 parent 08168b7 commit 3a8539a

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/config-manager.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import path from 'path';
33
import { existsSync } from 'fs';
44
import { mkdir } from 'fs/promises';
55
import os from 'os';
6-
6+
import { VERSION } from './version.js';
77
import { CONFIG_FILE } from './config.js';
88

99
export interface ServerConfig {
@@ -54,6 +54,7 @@ class ConfigManager {
5454
this.config = this.getDefaultConfig();
5555
await this.saveConfig();
5656
}
57+
this.config['version'] = VERSION;
5758

5859
this.initialized = true;
5960
} catch (error) {

src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
8282
{
8383
name: "get_config",
8484
description:
85-
`Get the complete server configuration as JSON. Config includes fields for: blockedCommands (array of blocked shell commands), defaultShell (shell to use for commands), allowedDirectories (paths the server can access), fileReadLineLimit (max lines for read_file, default 1000), fileWriteLineLimit (max lines per write_file call, default 50), telemetryEnabled (boolean for telemetry opt-in/out). ${CMD_PREFIX_DESCRIPTION}`,
85+
`Get the complete server configuration as JSON. Config includes fields for: blockedCommands (array of blocked shell commands), defaultShell (shell to use for commands), allowedDirectories (paths the server can access), fileReadLineLimit (max lines for read_file, default 1000), fileWriteLineLimit (max lines per write_file call, default 50), telemetryEnabled (boolean for telemetry opt-in/out), version (version of the DesktopCommander). ${CMD_PREFIX_DESCRIPTION}`,
8686
inputSchema: zodToJsonSchema(GetConfigArgsSchema),
8787
},
8888
{

0 commit comments

Comments
 (0)