Skip to main content
Glama

CodeLogic

Official
Mozilla Public License 2.0
30
  • Apple
  • Linux
error-handling.mdc482 B
--- description: Error handling patterns for the CodeLogic MCP Server globs: "**/*.py" alwaysApply: false --- - Use the following pattern for error handling in tool implementations: ```python try: # Operations that might fail except Exception as e: sys.stderr.write(f"Error: {str(e)}\n") return [types.TextContent(type="text", text=f"# Error\n\n{str(e)}")] ``` - Always catch and report exceptions - Write errors to stderr - Return formatted error messages to the client

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/CodeLogicIncEngineering/codelogic-mcp-server'

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