mcp-casual-interview
Version:
MCP server for casual interview preparation workflow management
28 lines • 1.11 kB
JavaScript
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
import { progressCheckTool } from './tool/progress-check/index.js';
import { progressUpdateTool } from './tool/progress-update/index.js';
import { workflowResetTool } from './tool/workflow-reset/index.js';
import { initAttractPrompt } from './prompt/init-attract/index.js';
export function createServer() {
const server = new McpServer({
name: 'mcp-casual-interview',
version: '0.0.1',
description: 'MCP server for casual interview preparation',
});
const tools = [
progressCheckTool,
progressUpdateTool,
workflowResetTool
];
tools.forEach(tool => {
server.registerTool(tool.name, {
description: tool.description,
inputSchema: tool.parameters,
outputSchema: tool.outputSchema.shape,
}, tool.handler);
});
// Register prompts
server.prompt(initAttractPrompt.name, initAttractPrompt.description, initAttractPrompt.argsSchema, initAttractPrompt.handler);
return server;
}
//# sourceMappingURL=Server.js.map