Skip to main content
Glama
swesmith-repos

MCP Server for WinDbg Crash Analysis

__init__.py1.04 kB
"""Prompts package for mcp-windbg.""" from pathlib import Path def get_prompts_directory() -> Path: """Get the path to the prompts directory.""" return Path(__file__).parent def load_prompt(name: str) -> str: """Load a prompt file by name. Args: name: The prompt name (without .prompt.md extension) Returns: The content of the prompt file Raises: FileNotFoundError: If the prompt file doesn't exist """ prompts_dir = get_prompts_directory() prompt_path = prompts_dir / f"{name}.prompt.md" if not prompt_path.exists(): raise FileNotFoundError(f"Prompt file not found: {prompt_path}") return prompt_path.read_text(encoding="utf-8") def get_available_prompts() -> list[str]: """Get a list of available prompt names. Returns: List of prompt names (without .prompt.md extension) """ prompts_dir = get_prompts_directory() prompt_files = prompts_dir.glob("*.prompt.md") return [f.stem.replace(".prompt", "") for f in prompt_files]

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/swesmith-repos/svnscha__mcp-windbg.20b852b5'

If you have feedback or need assistance with the MCP directory API, please join our Discord server