Skip to main content
Glama

Claude-LMStudio Bridge

debug_server.py943 B
import sys import traceback from mcp.server.fastmcp import FastMCP # Print startup message to stderr for debugging print("Starting debug server...", file=sys.stderr) try: # Initialize FastMCP server print("Initializing FastMCP server...", file=sys.stderr) mcp = FastMCP("lmstudio-bridge") @mcp.tool() async def debug_test() -> str: """Basic test function to verify MCP server is working. Returns: A simple confirmation message """ print("debug_test function called", file=sys.stderr) return "MCP server is working correctly!" if __name__ == "__main__": print("Starting server with stdio transport...", file=sys.stderr) # Initialize and run the server mcp.run(transport='stdio') except Exception as e: print(f"ERROR: {str(e)}", file=sys.stderr) print("Traceback:", file=sys.stderr) traceback.print_exc(file=sys.stderr)

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/infinitimeless/claude-lmstudio-bridge'

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