Skip to content

Commit beed548

Browse files
CopilotEMaher
andauthored
refactor: improve MCP debug message and code comment clarity
Agent-Logs-Url: https://github.com/Azure/apiops-cli/sessions/09cf004e-7aec-4a98-aefa-7700a7749a8d Co-authored-by: EMaher <9244742+EMaher@users.noreply.github.com>
1 parent 4fe70fa commit beed548

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/services/api-extractor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export async function extractApiResources(
140140
client, store, context, apiDescriptor, outputDir
141141
);
142142

143-
// Extract MCP server configuration (if enabled for this API)
143+
// Extract MCP server configuration (singleton per API; silently skipped when not present)
144144
result.mcpServer = await extractApiMcpServer(
145145
client, store, context, apiDescriptor, outputDir
146146
);
@@ -245,7 +245,7 @@ async function extractApiSpecification(
245245
}
246246

247247
if (apiType?.toLowerCase() === 'mcp') {
248-
logger.debug(`OpenAPI does not apply to MCP APIs`);
248+
logger.debug(`Skipping spec export for MCP API "${getNamePart(apiDescriptor.nameParts, 0)}" — MCP APIs use the Model Context Protocol endpoint, not OpenAPI`);
249249
return false;
250250
}
251251

0 commit comments

Comments
 (0)