import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
import { z } from 'zod';
import RESEARCH_MINIFIED_JS_PROMPT from './research_minified_js.md';
export const PROMPT_NAME = 'research_minified_js';
export function registerResearchMinifiedJsPrompt(server: McpServer): void {
server.registerPrompt(
PROMPT_NAME,
{
description:
'Comprehensive workflow for analyzing large minified/obfuscated JavaScript files with advanced techniques including progressive search, dual strategies, and semantic patterns',
argsSchema: z.object({}).shape, // empty schema
},
async () => {
const prompt = `
# SYSTEM PROMPT:
${RESEARCH_MINIFIED_JS_PROMPT}
-----
# User Query:`;
return {
messages: [
{
role: 'user' as const,
content: {
type: 'text' as const,
text: prompt,
},
},
],
};
}
);
}