MCPErrorCodes

org.llm4s.mcp.MCPErrorCodes
object MCPErrorCodes

Standard JSON-RPC and MCP-specific error codes.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def createError(code: Int, message: String, data: Option[Value]): JsonRpcError
def getErrorMessage(code: Int): String
def timeoutError(message: String): JsonRpcError
def toolExecutionError(toolName: String, error: String): JsonRpcError
def toolNotFound(toolName: String): JsonRpcError
def transportError(message: String): JsonRpcError

Concrete fields

val INTERNAL_ERROR: Int
val INVALID_PARAMS: Int
val INVALID_REQUEST: Int
val METHOD_NOT_FOUND: Int
val PARSE_ERROR: Int
val SESSION_EXPIRED: Int
val TIMEOUT_ERROR: Int
val TOOL_NOT_FOUND: Int
val TRANSPORT_ERROR: Int
val UNAUTHORIZED: Int