We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59b74e0 commit 2c84a19Copy full SHA for 2c84a19
src/client.ts
@@ -44,6 +44,14 @@ export class MCPClient {
44
return Object.keys(this.config.mcpServers ?? {})
45
}
46
47
+ public getServerConfig(name: string): Record<string, any> {
48
+ return this.config.mcpServers?.[name]
49
+ }
50
+
51
+ public getConfig(): Record<string, any> {
52
+ return this.config ?? {}
53
54
55
public saveConfig(filepath: string): void {
56
const dir = path.dirname(filepath)
57
if (!fs.existsSync(dir)) {
0 commit comments