(path: string)
| 181 | } |
| 182 | |
| 183 | async function pathExists(path: string): Promise<boolean> { |
| 184 | try { |
| 185 | await access(path); |
| 186 | return true; |
| 187 | } catch { |
| 188 | return false; |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | async function hasMcpConfig(agentName: SetupAgent, scope: Scope): Promise<boolean> { |
| 193 | const agent = getAgent(agentName); |