Skip to content

Commit 8bfa2b3

Browse files
committed
Remove console.error in regular paths
1 parent a869604 commit 8bfa2b3

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/openapi-mcp-server/client/http-client.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,13 @@ export class HttpClient {
4949
}
5050

5151
private async prepareFileUpload(operation: OpenAPIV3.OperationObject, params: Record<string, any>): Promise<FormData | null> {
52-
console.error('prepareFileUpload', { operation, params })
5352
const fileParams = isFileUploadParameter(operation)
5453
if (fileParams.length === 0) return null
5554

5655
const formData = new FormData()
5756

5857
// Handle file uploads
5958
for (const param of fileParams) {
60-
console.error(`extracting ${param}`, {params})
6159
const filePath = params[param]
6260
if (!filePath) {
6361
throw new Error(`File path must be provided for parameter: ${param}`)
@@ -163,7 +161,6 @@ export class HttpClient {
163161
}
164162

165163
// first argument is url parameters, second is body parameters
166-
console.error('calling operation', { operationId, urlParameters, bodyParams, requestConfig })
167164
const response = await operationFn(urlParameters, hasBody ? bodyParams : undefined, requestConfig)
168165

169166
// Convert axios headers to Headers object

src/openapi-mcp-server/mcp/proxy.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,10 @@ export class MCPProxy {
7676

7777
// Handle tool calling
7878
this.server.setRequestHandler(CallToolRequestSchema, async (request) => {
79-
console.error('calling tool', request.params)
8079
const { name, arguments: params } = request.params
8180

8281
// Find the operation in OpenAPI spec
8382
const operation = this.findOperation(name)
84-
console.error('operations', this.openApiLookup)
8583
if (!operation) {
8684
throw new Error(`Method ${name} not found`)
8785
}

0 commit comments

Comments
 (0)