mushcode-mcp-server
Version:
A specialized Model Context Protocol server for MUSHCODE development assistance. Provides AI-powered code generation, validation, optimization, and examples for MUD development.
56 lines • 1.56 kB
TypeScript
/**
* get_examples tool implementation
* Retrieves relevant MUSHCODE examples with categorization and learning paths
*/
import { Tool } from '@modelcontextprotocol/sdk/types.js';
import { MushcodeKnowledgeBase } from '../knowledge/base.js';
interface GetExamplesResult {
examples: ExampleResult[];
learning_path?: LearningPathStep[];
additional_resources: ResourceLink[];
total_found: number;
search_metadata: {
query: string;
filters_applied: string[];
execution_time_ms: number;
};
}
interface ExampleResult {
id: string;
title: string;
description: string;
code: string;
explanation: string;
difficulty: string;
category: string;
tags: string[];
server_compatibility: string[];
related_concepts: string[];
learning_objectives: string[];
source?: {
url: string;
author?: string;
} | undefined;
relevance_score: number;
}
interface LearningPathStep {
step_number: number;
title: string;
description: string;
example_ids: string[];
objectives: string[];
estimated_time?: string;
}
interface ResourceLink {
type: 'documentation' | 'tutorial' | 'reference' | 'community';
title: string;
url: string;
description?: string;
}
export declare const getExamplesTool: Tool;
/**
* Tool handler for get_examples
*/
export declare function getExamplesHandler(args: Record<string, unknown>, knowledgeBase: MushcodeKnowledgeBase): Promise<GetExamplesResult>;
export {};
//# sourceMappingURL=examples.d.ts.map