Skip to content

Commit 9341d03

Browse files
committed
fix: suppress eslint no-unused-vars warnings by renaming unused params/vars with underscore
1 parent 08df0ae commit 9341d03

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/services/mcp/McpHub.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class McpHub {
1919

2020
this.configManager = new ConfigManager()
2121

22-
const connectionFactory = new ConnectionFactory(this.configManager, provider, (server: McpServer) =>
22+
const connectionFactory = new ConnectionFactory(this.configManager, provider, (_server: McpServer) =>
2323
this.notifyServersChanged(),
2424
)
2525
connectionFactory.registerHandler(new StdioHandler())

src/services/mcp/config/ConfigManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export class ConfigManager {
118118
* @param serverName Optional server name for error messages
119119
* @returns Validated server configuration
120120
*/
121-
public validateServerConfig(config: unknown, serverName?: string): ServerConfig {
121+
public validateServerConfig(config: unknown, _serverName?: string): ServerConfig {
122122
try {
123123
const configCopy = { ...(config as Record<string, unknown>) }
124124
const result = safeParseServerConfig(configCopy)

src/services/mcp/connection/ConnectionManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export class ConnectionManager {
125125

126126
const stripNonConnectionFields = (configObj: any) => {
127127
// Exclude alwaysAllow and timeout, timeout changes do not trigger reconnection
128-
const { alwaysAllow, timeout, ...rest } = configObj
128+
const { alwaysAllow: _alwaysAllow, timeout: _timeout, ...rest } = configObj
129129
return rest
130130
}
131131

0 commit comments

Comments
 (0)