Skip to main content
Glama
error.rs923 B
//! Error types for Blender MCP use rmcp::ErrorData as McpError; use thiserror::Error; #[derive(Error, Debug)] pub enum BlenderError { #[error("Blender not connected")] NotConnected, #[error("Command timeout: {0}")] Timeout(String), #[error("Blender error: {0}")] BlenderError(String), #[error("Channel error: {0}")] ChannelError(String), #[error("Serialization error: {0}")] SerializationError(#[from] serde_json::Error), } impl From<BlenderError> for McpError { fn from(err: BlenderError) -> Self { McpError::internal_error( err.to_string(), Some(serde_json::json!({ "error": err.to_string() })), ) } } /// Helper to create internal MCP error pub fn internal_err<T: ToString>(msg: &'static str) -> impl Fn(T) -> McpError { move |err| McpError::internal_error(msg, Some(serde_json::json!({ "error": err.to_string() }))) }

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/ssoj13/blender-mcp-rs'

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