Skip to main content
Glama
dstreefkerk

ms-sentinel-mcp-server

by dstreefkerk
instructions.py1.05 kB
""" FILE: resources/instructions.py DESCRIPTION: Provides onboarding instructions as a resource for the MCP server. """ from mcp.server.fastmcp import FastMCP import os # Try to load the onboarding instructions from llm_instructions.md INSTRUCTIONS_PATHS = [ os.path.join(os.path.dirname(__file__), "..", "docs", "llm_instructions.md"), os.path.join(os.path.dirname(__file__), "llm_instructions.md"), os.path.join(os.path.dirname(__file__), "..", "resources", "llm_instructions.md"), ] def load_onboarding_instructions() -> str: for path in INSTRUCTIONS_PATHS: try: if os.path.exists(path): with open(path, "r", encoding="utf-8") as f: return f.read() except Exception: pass return "Onboarding instructions not available." def register_resources(mcp: FastMCP): """Register the onboarding instructions resource.""" @mcp.resource("resource://instructions") def get_instructions() -> str: return load_onboarding_instructions()

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/dstreefkerk/ms-sentinel-mcp-server'

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