UNPKG

@rocketshipai/mcp-server

Version:

MCP assistant for helping AI coding agents write better Rocketship tests

827 lines (826 loc) 60 kB
export declare const EMBEDDED_SCHEMA: { $schema: string; title: string; description: string; type: string; required: string[]; properties: { name: { type: string; description: string; }; description: { type: string; description: string; }; vars: { type: string; description: string; additionalProperties: boolean; }; tests: { type: string; description: string; minItems: number; items: { type: string; required: string[]; properties: { name: { type: string; description: string; }; steps: { type: string; description: string; minItems: number; items: { type: string; required: string[]; properties: { name: { type: string; description: string; }; plugin: { type: string; description: string; enum: string[]; }; config: { type: string; description: string; }; assertions: { type: string; description: string; items: { type: string; required: string[]; properties: { type: { type: string; description: string; enum: string[]; }; expected: { description: string; }; path: { type: string; description: string; }; name: { type: string; description: string; }; query_index: { type: string; description: string; minimum: number; }; row_index: { type: string; description: string; minimum: number; }; column: { type: string; description: string; }; }; allOf: { if: { properties: { type: { enum: string[]; }; }; }; then: { required: string[]; }; }[]; }; }; save: { type: string; description: string; items: { type: string; required: string[]; properties: { json_path: { type: string; description: string; }; header: { type: string; description: string; }; sql_result: { type: string; description: string; }; as: { type: string; description: string; }; required: { type: string; description: string; }; }; oneOf: { required: string[]; }[]; }; }; retry: { type: string; description: string; properties: { initial_interval: { type: string; pattern: string; description: string; }; maximum_interval: { type: string; pattern: string; description: string; }; maximum_attempts: { type: string; minimum: number; description: string; }; backoff_coefficient: { type: string; minimum: number; description: string; }; non_retryable_errors: { type: string; description: string; items: { type: string; }; }; }; }; }; allOf: ({ if: { properties: { plugin: { const: string; }; }; }; then: { properties: { config: { type: string; required: string[]; properties: { language: { type: string; enum: string[]; description: string; }; script: { type: string; description: string; }; file: { type: string; description: string; }; timeout: { type: string; pattern: string; description: string; default?: undefined; }; driver?: undefined; dsn?: undefined; commands?: undefined; message?: undefined; agent?: undefined; prompt?: undefined; mode?: undefined; session_id?: undefined; max_turns?: undefined; system_prompt?: undefined; output_format?: undefined; continue_recent?: undefined; save_full_response?: undefined; task?: undefined; llm?: undefined; executor_type?: undefined; max_steps?: undefined; browser_type?: undefined; headless?: undefined; use_vision?: undefined; save_screenshots?: undefined; allowed_domains?: undefined; viewport?: undefined; url?: undefined; key?: undefined; operation?: undefined; table?: undefined; select?: undefined; insert?: undefined; update?: undefined; delete?: undefined; rpc?: undefined; auth?: undefined; storage?: undefined; }; oneOf: { required: string[]; }[]; }; save?: undefined; assertions?: undefined; }; }; } | { if: { properties: { plugin: { const: string; }; }; }; then: { properties: { config: { type: string; required: string[]; properties: { driver: { type: string; enum: string[]; description: string; }; dsn: { type: string; description: string; }; commands: { type: string; description: string; items: { type: string; }; minItems: number; }; file: { type: string; description: string; }; timeout: { type: string; pattern: string; description: string; default?: undefined; }; language?: undefined; script?: undefined; message?: undefined; agent?: undefined; prompt?: undefined; mode?: undefined; session_id?: undefined; max_turns?: undefined; system_prompt?: undefined; output_format?: undefined; continue_recent?: undefined; save_full_response?: undefined; task?: undefined; llm?: undefined; executor_type?: undefined; max_steps?: undefined; browser_type?: undefined; headless?: undefined; use_vision?: undefined; save_screenshots?: undefined; allowed_domains?: undefined; viewport?: undefined; url?: undefined; key?: undefined; operation?: undefined; table?: undefined; select?: undefined; insert?: undefined; update?: undefined; delete?: undefined; rpc?: undefined; auth?: undefined; storage?: undefined; }; oneOf: { required: string[]; }[]; }; save: { type: string; description: string; items: { type: string; required: string[]; properties: { sql_result: { type: string; description: string; }; as: { type: string; description: string; }; required: { type: string; description: string; }; }; }; }; assertions: { type: string; description: string; items: { type: string; required: string[]; properties: { type: { type: string; description: string; enum: string[]; }; expected: { description: string; }; query_index: { type: string; description: string; minimum: number; }; row_index: { type: string; description: string; minimum: number; }; column: { type: string; description: string; }; }; allOf: { if: { properties: { type: { enum: string[]; }; }; }; then: { required: string[]; }; }[]; }; }; }; }; } | { if: { properties: { plugin: { const: string; }; }; }; then: { properties: { config: { type: string; required: string[]; properties: { message: { type: string; description: string; }; language?: undefined; script?: undefined; file?: undefined; timeout?: undefined; driver?: undefined; dsn?: undefined; commands?: undefined; agent?: undefined; prompt?: undefined; mode?: undefined; session_id?: undefined; max_turns?: undefined; system_prompt?: undefined; output_format?: undefined; continue_recent?: undefined; save_full_response?: undefined; task?: undefined; llm?: undefined; executor_type?: undefined; max_steps?: undefined; browser_type?: undefined; headless?: undefined; use_vision?: undefined; save_screenshots?: undefined; allowed_domains?: undefined; viewport?: undefined; url?: undefined; key?: undefined; operation?: undefined; table?: undefined; select?: undefined; insert?: undefined; update?: undefined; delete?: undefined; rpc?: undefined; auth?: undefined; storage?: undefined; }; oneOf?: undefined; }; save?: undefined; assertions?: undefined; }; }; } | { if: { properties: { plugin: { const: string; }; }; }; then: { properties: { config: { type: string; required: string[]; properties: { agent: { type: string; enum: string[]; description: string; }; prompt: { type: string; description: string; }; mode: { type: string; enum: string[]; description: string; default: string; }; session_id: { type: string; description: string; }; max_turns: { type: string; description: string; minimum: number; default: number; }; timeout: { type: string; pattern: string; description: string; default: string; }; system_prompt: { type: string; description: string; }; output_format: { type: string; enum: string[]; description: string; default: string; }; continue_recent: { type: string; description: string; default: boolean; }; save_full_response: { type: string; description: string; default: boolean; }; language?: undefined; script?: undefined; file?: undefined; driver?: undefined; dsn?: undefined; commands?: undefined; message?: undefined; task?: undefined; llm?: undefined; executor_type?: undefined; max_steps?: undefined; browser_type?: undefined; headless?: undefined; use_vision?: undefined; save_screenshots?: undefined; allowed_domains?: undefined; viewport?: undefined; url?: undefined; key?: undefined; operation?: undefined; table?: undefined; select?: undefined; insert?: undefined; update?: undefined; delete?: undefined; rpc?: undefined; auth?: undefined; storage?: undefined; }; oneOf?: undefined; }; save?: undefined; assertions?: undefined; }; }; } | { if: { properties: { plugin: { const: string; }; }; }; then: { properties: { config: { type: string; required: string[]; properties: { task: { type: string; description: string; }; llm: { type: string; required: string[]; properties: { provider: { type: string; enum: string[]; description: string; }; model: { type: string; description: string; }; config: { type: string; description: string; additionalProperties: { type: string; }; }; }; }; executor_type: { type: string; enum: string[]; description: string; default: string; }; timeout: { type: string; pattern: string; description: string; default: string; }; max_steps: { type: string; description: string; minimum: number; default: number; }; browser_type: { type: string; enum: string[]; description: string; default: string; }; headless: { type: string; description: string; default: boolean; }; use_vision: { type: string; description: string; default: boolean; }; session_id: { type: string; description: string; }; save_screenshots: { type: string; description: string; default: boolean; }; allowed_domains: { type: string; description: string; items: { type: string; }; }; viewport: { type: string; description: string; properties: { width: { type: string; description: string; default: number; }; height: { type: string; description: string; default: number; }; }; }; language?: undefined; script?: undefined; file?: undefined; driver?: undefined; dsn?: undefined; commands?: undefined; message?: undefined; agent?: undefined; prompt?: undefined; mode?: undefined; max_turns?: undefined; system_prompt?: undefined; output_format?: undefined; continue_recent?: undefined; save_full_response?: undefined; url?: undefined; key?: undefined; operation?: undefined; table?: undefined; select?: undefined; insert?: undefined; update?: undefined; delete?: undefined; rpc?: undefined; auth?: undefined; storage?: undefined; }; oneOf?: undefined; }; save?: undefined; assertions?: undefined; }; }; } | { if: { properties: { plugin: { const: string; }; }; }; then: { properties: { config: { type: string; required: string[]; properties: { url: { type: string; description: string; }; key: { type: string; description: string; }; operation: { type: string; enum: string[]; description: string; }; table: { type: string; description: string; }; select: { type: string; description: string; properties: { columns: { type: string; description: string; items: { type: string; }; default: string[]; }; filters: { type: string; description: string; items: { type: string; required: string[]; properties: { column: { type: string; }; operator: { type: string; enum: string[]; }; value: { description: string; }; }; }; }; order: { type: string; description: string; items: { type: string; required: string[]; properties: { column: { type: string; }; ascending: { type: string; default: boolean; }; }; }; }; limit: { type: string; minimum: number; }; offset: { type: string; minimum: number; }; count: { type: string; enum: string[]; description: string; }; }; }; insert: { type: string; description: string; properties: { data: { description: string; }; upsert: { type: string; description: string; default: boolean; }; on_conflict: { type: string; description: string; }; }; required: string[]; }; update: { type: string; description: string; properties: { data: { type: string; description: string; }; filters: { type: string; description: string; items: { type: string; required: string[]; properties: { column: {