@skyramp/mcp
Version:
Skyramp MCP (Model Context Protocol) Server - AI-powered test generation and execution
35 lines (32 loc) • 1.54 kB
JavaScript
import { baseTestSchema, baseTraceSchema, } from "../types/TestTypes.js";
import { TestGenerationService, } from "../services/TestGenerationService.js";
const integrationTestSchema = {
...baseTestSchema,
trace: baseTraceSchema.shape.trace.optional(),
include: baseTraceSchema.shape.include.optional(),
exclude: baseTraceSchema.shape.exclude.optional(),
endpointURL: baseTestSchema.endpointURL.default(""),
};
export class IntegrationTestService extends TestGenerationService {
getTestType() {
return "integration";
}
buildGenerationOptions(params) {
return {
...super.buildBaseGenerationOptions(params),
responseData: params.responseData,
playwrightInput: params.playwrightInput,
};
}
}
export function registerIntegrationTestTool(server) {
server.registerTool("skyramp_integration_test_generation", {
description: `Generate an integration test using Skyramp's deterministic test generation platform.
Integration tests validate that multiple services, components, or modules work together correctly. They test complex user workflows, service interactions, data flow between systems, and ensure that integrated components function as expected in realistic scenarios.
For detailed documentation visit: https://www.skyramp.dev/docs/integration-test`,
inputSchema: integrationTestSchema,
}, async (params) => {
const service = new IntegrationTestService();
return await service.generateTest(params);
});
}