UNPKG

@skyramp/mcp

Version:

Skyramp MCP (Model Context Protocol) Server - AI-powered test generation and execution

32 lines (28 loc) 1.57 kB
// src/prompts/skyrampPrompt.ts import { logger } from "../utils/logger.js"; export function registerStartTraceCollectionPrompt(mcpServer) { logger.info("registering start trace collection prompt"); mcpServer.prompt("skyramp_trace_prompt", "Skyramp trace collection prompt", {}, () => ({ messages: [ { role: "user", content: { type: "text", text: ` **General information about Skyramp's trace collection:** * You can start a Skyramp trace session to capture network traffic from an active terminal window and for activity within a browser. * Once you start a Skyramp trace session, you can stop it any time. Once stopped, a new session will be required to start a new trace collection. * Please refer to the Skyramp documentation at https://www.skyramp.dev/docs/concepts/trace-collection for more details on trace collection. * Once you have all the data call the start trace generation tool to start the trace collection. * Always ask user if they want to enable playwright for trace collection. **Example usage prompt for trace collection:** * To start a trace collection session using agent, run the following command: Generate trace with default settings and include realworld.demo.com:8080 **Example usage prompt for trace collection for playwright trace:** * To start a playwright trace collection session using agent, run the following command: Start playwright trace collection with default settings.`, }, }, ], })); }