getSupportedFormats
Retrieve a list of supported video formats and encodings for the Video Clip MCP server, enabling users to ensure compatibility for video manipulation tasks like clipping, merging, and splitting.
Instructions
获取支持的视频格式和编码
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mcp/server.ts:408-422 (handler)The primary handler function implementing the getSupportedFormats tool logic. It constructs a result object with supported video formats, codecs, and audio codecs using Object.values on imported enums, then returns it as JSON text content.private async handleGetSupportedFormats() { const result: MCPToolResults['getSupportedFormats'] = { videoFormats: Object.values(VideoFormat), videoCodecs: Object.values(VideoCodec), audioCodecs: Object.values(AudioCodec) }; return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; }
- src/mcp/server.ts:303-310 (registration)The tool registration entry in getToolDefinitions(), specifying the name, description, and empty input schema for listTools request.{ name: 'getSupportedFormats', description: '获取支持的视频格式和编码', inputSchema: { type: 'object', properties: {} } },
- src/types/mcp.ts:59-63 (schema)Type definition for the output/result of getSupportedFormats in MCPToolResults interface.getSupportedFormats: { videoFormats: string[]; videoCodecs: string[]; audioCodecs: string[]; };
- src/types/mcp.ts:36-36 (schema)Type definition for the input parameters of getSupportedFormats in MCPToolParams interface (empty object).getSupportedFormats: Record<string, never>;
- src/mcp/server.ts:81-82 (handler)Dispatch case in the main CallToolRequestSchema handler that invokes the specific getSupportedFormats handler.case 'getSupportedFormats': return await this.handleGetSupportedFormats();