We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aaa6fb5 commit d053656Copy full SHA for d053656
src/mcp/install.ts
@@ -136,6 +136,12 @@ export async function installTrivyMCPServer(): Promise<void> {
136
}
137
138
const document = editor.document;
139
+ if (!document.fileName.endsWith('mcp.json')) {
140
+ Output.getInstance().appendLineWithTimestamp(
141
+ 'Unexpected file opened. Expected MCP configuration file.'
142
+ );
143
+ return;
144
+ }
145
const text = document.getText();
146
147
let config: McpJsonConfig = {};
0 commit comments