UNPKG

@rocketshipai/mcp-server

Version:

MCP assistant for helping AI coding agents write better Rocketship tests

1,113 lines (1,112 loc) 63.7 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; }; openapi: { type: string; description: string; properties: { spec: { type: string; description: string; }; version: { type: string; description: string; }; validate_request: { type: string; description: string; }; validate_response: { type: string; description: string; }; cache_ttl: { type: string; description: string; }; }; required: string[]; }; init: { type: string; description: string; items: { $ref: string; }; }; tests: { type: string; description: string; minItems: number; items: { type: string; required: string[]; properties: { name: { type: string; description: string; }; init: { type: string; description: string; items: { $ref: string; }; }; steps: { type: string; description: string; minItems: number; items: { $ref: string; }; }; cleanup: { type: string; description: string; properties: { always: { type: string; description: string; items: { $ref: string; }; }; on_failure: { type: string; description: string; items: { $ref: string; }; }; }; additionalProperties: boolean; }; }; }; }; cleanup: { type: string; description: string; properties: { always: { type: string; description: string; items: { $ref: string; }; }; on_failure: { type: string; description: string; items: { $ref: string; }; }; }; additionalProperties: boolean; }; }; definitions: { step: { 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: { method: { type: string; description: string; }; url: { type: string; description: string; }; headers: { type: string; description: string; additionalProperties: { type: string; }; }; body: { type: string; description: string; }; form: { type: string; description: string; additionalProperties: boolean; }; openapi: { type: string; description: string; properties: { spec: { type: string; description: string; }; operation_id: { type: string; description: string; }; version: { type: string; description: string; }; validate_request: { type: string; description: string; }; validate_response: { type: string; description: string; }; }; additionalProperties: boolean; }; language?: undefined; script?: undefined; file?: undefined; timeout?: undefined; driver?: undefined; dsn?: undefined; commands?: undefined; message?: undefined; prompt?: undefined; mode?: undefined; session_id?: undefined; max_turns?: undefined; system_prompt?: undefined; cwd?: undefined; capabilities?: undefined; api_key?: undefined; allowed_tools?: undefined; key?: undefined; operation?: undefined; table?: undefined; select?: undefined; insert?: undefined; update?: undefined; delete?: undefined; rpc?: undefined; auth?: undefined; storage?: undefined; duration?: undefined; role?: undefined; headless?: undefined; slow_mo_ms?: undefined; launch_args?: undefined; launch_timeout?: undefined; window_width?: undefined; window_height?: undefined; env?: undefined; task?: undefined; allowed_domains?: undefined; max_steps?: undefined; use_vision?: undefined; temperature?: undefined; llm?: undefined; }; oneOf?: undefined; }; save?: undefined; assertions?: undefined; }; }; } | { 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; }; method?: undefined; url?: undefined; headers?: undefined; body?: undefined; form?: undefined; openapi?: undefined; driver?: undefined; dsn?: undefined; commands?: undefined; message?: undefined; prompt?: undefined; mode?: undefined; session_id?: undefined; max_turns?: undefined; system_prompt?: undefined; cwd?: undefined; capabilities?: undefined; api_key?: undefined; allowed_tools?: undefined; key?: undefined; operation?: undefined; table?: undefined; select?: undefined; insert?: undefined; update?: undefined; delete?: undefined; rpc?: undefined; auth?: undefined; storage?: undefined; duration?: undefined; role?: undefined; headless?: undefined; slow_mo_ms?: undefined; launch_args?: undefined; launch_timeout?: undefined; window_width?: undefined; window_height?: undefined; env?: undefined; task?: undefined; allowed_domains?: undefined; max_steps?: undefined; use_vision?: undefined; temperature?: undefined; llm?: 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; }; method?: undefined; url?: undefined; headers?: undefined; body?: undefined; form?: undefined; openapi?: undefined; language?: undefined; script?: undefined; message?: undefined; prompt?: undefined; mode?: undefined; session_id?: undefined; max_turns?: undefined; system_prompt?: undefined; cwd?: undefined; capabilities?: undefined; api_key?: undefined; allowed_tools?: undefined; key?: undefined; operation?: undefined; table?: undefined; select?: undefined; insert?: undefined; update?: undefined; delete?: undefined; rpc?: undefined; auth?: undefined; storage?: undefined; duration?: undefined; role?: undefined; headless?: undefined; slow_mo_ms?: undefined; launch_args?: undefined; launch_timeout?: undefined; window_width?: undefined; window_height?: undefined; env?: undefined; task?: undefined; allowed_domains?: undefined; max_steps?: undefined; use_vision?: undefined; temperature?: undefined; llm?: 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; }; method?: undefined; url?: undefined; headers?: undefined; body?: undefined; form?: undefined; openapi?: undefined; language?: undefined; script?: undefined; file?: undefined; timeout?: undefined; driver?: undefined; dsn?: undefined; commands?: undefined; prompt?: undefined; mode?: undefined; session_id?: undefined; max_turns?: undefined; system_prompt?: undefined; cwd?: undefined; capabilities?: undefined; api_key?: undefined; allowed_tools?: undefined; key?: undefined; operation?: undefined; table?: undefined; select?: undefined; insert?: undefined; update?: undefined; delete?: undefined; rpc?: undefined; auth?: undefined; storage?: undefined; duration?: undefined; role?: undefined; headless?: undefined; slow_mo_ms?: undefined; launch_args?: undefined; launch_timeout?: undefined; window_width?: undefined; window_height?: undefined; env?: undefined; task?: undefined; allowed_domains?: undefined; max_steps?: undefined; use_vision?: undefined; temperature?: undefined; llm?: undefined; }; oneOf?: undefined; }; save?: undefined; assertions?: undefined; }; }; } | { if: { properties: { plugin: { const: string; }; }; }; then: { properties: { config: { type: string; required: string[]; properties: { prompt: { type: string; description: string; }; mode: { type: string; enum: string[]; description: string; }; session_id: { type: string; description: string; }; max_turns: { type: string; description: string; minimum: number; }; timeout: { type: string; pattern: string; description: string; default?: undefined; }; system_prompt: { type: string; description: string; }; cwd: { type: string; description: string; }; capabilities: { type: string; items: { type: string; enum: string[]; }; description: string; }; api_key: { type: string; description: string; }; allowed_tools: { oneOf: ({ type: string; items: { type: string; }; description: string; enum?: undefined; } | { type: string; enum: string[]; description: string; items?: undefined; })[]; description: string; }; method?: undefined; url?: undefined; headers?: undefined; body?: undefined; form?: undefined; openapi?: undefined; language?: undefined; script?: undefined; file?: undefined; driver?: undefined; dsn?: undefined; commands?: undefined; message?: undefined; key?: undefined; operation?: undefined; table?: undefined; select?: undefined; insert?: undefined; update?: undefined; delete?: undefined; rpc?: undefined; auth?: undefined; storage?: undefined; duration?: undefined; role?: undefined; headless?: undefined; slow_mo_ms?: undefined; launch_args?: undefined; launch_timeout?: undefined; window_width?: undefined; window_height?: undefined; env?: undefined; task?: undefined; allowed_domains?: undefined; max_steps?: undefined; use_vision?: undefined; temperature?: undefined; llm?: 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: { type: string; }; operator: { type: string; }; value: { description: string; }; }; }; }; }; required: string[]; }; delete: { type: string; description: string; properties: { filters: { type: string; description: string; items: { type: string; required: string[]; properties: { column: { type: string; }; operator: { type: string; }; value: { description: string; }; }; }; }; }; required: string[]; }; rpc: { type: string; description: string; properties: { function: { type: string; description: string; }; params: { type: string; description: string; }; }; required: string[]; }; auth: { type: string; description: string; properties: { email: { type: string; }; password: { type: string; }; user_id: { type: string; }; user_metadata: { type: string; }; app_metadata: { type: string; }; }; }; storage: { type: string; description: string; properties: { bucket: { type: string; }; path: { type: string; }; file_content: { type: string; }; file_path: { type: string; }; public: { type: string; default: boolean; }; cache_control: { type: string; }; content_type: { type: string; }; }; }; timeout: { type: string; pattern: string; description: string; default: string; }; method?: undefined; headers?: undefined; body?: undefined; form?: undefined; openapi?: undefined; language?: undefined; script?: undefined; file?: undefined; driver?: undefined; dsn?: undefined; commands?: undefined; message?: undefined; prompt?: undefined; mode?: undefined; session_id?: undefined; max_turns?: undefined; system_prompt?: undefined; cwd?: undefined; capabilities?: undefined; api_key?: undefined; allowed_tools?: undefined; duration?: undefined; role?: undefined; headless?: undefined; slow_mo_ms?: undefined; launch_args?: undefined; launch_timeout?: undefined; window_width?: undefined; window_height?: undefined; env?: undefined; task?: undefined; allowed_domains?: undefined; max_steps?: undefined; use_vision?: undefined; temperature?: undefined; llm?: undefined; }; oneOf?: undefined; }; save?: undefined; assertions?: undefined; }; }; } | { if: { properties: { plugin: { const: string; }; }; }; then: { properties: { config: { type: string; required: string[]; properties: { duration: { type: string; description: string;