{"openapi":"3.1.0","info":{"title":"MCP Data Converter","description":"Data format conversion API supporting 200+ conversion pairs across 16 formats:\nJSON, CSV, TSV, XML, YAML, TOML, HTML table, Markdown table, Properties,\nPDF, Excel (.xlsx), DOCX, Plain Text, Base64, URL-encoded, Hex.\n\nAlso provides JSON reshaping via dot-notation path mapping, format auto-detection,\nand batch conversion (up to 50 items).\n\nAll read-only operations — no data is stored or modified on the server.","contact":{"name":"MCP Data Converter"},"version":"1.0.0"},"servers":[{"url":"https://mcp-converter.tnkng.com","description":"Primary server"}],"paths":{"/auth/provision":{"post":{"tags":["auth-controller"],"operationId":"provision","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisionRequest"}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{}}}}}}},"/api/reshape":{"post":{"tags":["conversion-controller"],"operationId":"reshape","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReshapeRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ReshapeResponse"}}}}}}},"/api/detect":{"post":{"tags":["conversion-controller"],"operationId":"detectFormat","requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}}}},"/api/convert":{"post":{"tags":["conversion-controller"],"operationId":"convert","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConvertRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ConvertResponse"}}}}}}},"/api/batch":{"post":{"tags":["conversion-controller"],"operationId":"batchConvert","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchConvertRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BatchConvertResponse"}}}}}}},"/revenue":{"get":{"tags":["admin-controller"],"operationId":"revenue","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{}}}}}}},"/revenue/transactions":{"get":{"tags":["admin-controller"],"operationId":"recentTransactions","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":100}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{}}}}}}},"/payment/methods":{"get":{"tags":["payment-info-controller"],"operationId":"paymentMethods","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}}}}}},"/auth/balance":{"get":{"tags":["auth-controller"],"operationId":"balance","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{}}}}}}},"/api/sample/pdf":{"get":{"tags":["sample-data-controller"],"operationId":"samplePdf","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}}}},"/api/sample/excel":{"get":{"tags":["sample-data-controller"],"operationId":"sampleExcel","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}}}},"/api/sample/docx":{"get":{"tags":["sample-data-controller"],"operationId":"sampleDocx","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}}}},"/api/logs":{"get":{"tags":["log-stream-controller"],"operationId":"streamLogs","responses":{"200":{"description":"OK","content":{"text/event-stream":{"schema":{"$ref":"#/components/schemas/SseEmitter"}}}}}}},"/api/health":{"get":{"tags":["conversion-controller"],"operationId":"health","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}}}}}},"/api/formats":{"get":{"tags":["conversion-controller"],"operationId":"listFormats","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}}}}}},"/admin/stats":{"get":{"tags":["admin-controller"],"operationId":"stats","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"type":"string"}},{"name":"from","in":"query","required":false,"schema":{"type":"string"}},{"name":"to","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{}}}}}}},"/.well-known/agent-card.json":{"get":{"tags":["agent-card-controller"],"operationId":"agentCard","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}}}}}},"components":{"schemas":{"ProvisionRequest":{"type":"object","properties":{"agentName":{"type":"string"},"agentUrl":{"type":"string"}}},"ReshapeRequest":{"type":"object","properties":{"data":{"type":"string"},"mappings":{"type":"object","additionalProperties":{"type":"string"}}},"required":["data","mappings"]},"ReshapeResponse":{"type":"object","properties":{"success":{"type":"boolean"},"result":{"type":"string"},"error":{"type":"string"}},"required":["success"]},"ConvertRequest":{"type":"object","properties":{"sourceFormat":{"type":"string"},"targetFormat":{"type":"string"},"data":{"type":"string"}},"required":["data","sourceFormat","targetFormat"]},"ConvertResponse":{"type":"object","properties":{"success":{"type":"boolean"},"sourceFormat":{"type":"string"},"targetFormat":{"type":"string"},"result":{"type":"string"},"error":{"type":"string"}},"required":["sourceFormat","success","targetFormat"]},"BatchConvertRequest":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ConvertRequest"}}},"required":["items"]},"BatchConvertResponse":{"type":"object","properties":{"success":{"type":"boolean"},"results":{"type":"array","items":{"$ref":"#/components/schemas/ConvertResponse"}},"totalItems":{"type":"integer","format":"int32"},"successCount":{"type":"integer","format":"int32"},"failureCount":{"type":"integer","format":"int32"}},"required":["failureCount","results","success","successCount","totalItems"]},"SseEmitter":{"type":"object","properties":{"timeout":{"type":"integer","format":"int64"}}}}},"x-openai-isConsequential":false}