Skip to main content
Glama
mod.rs1.34 kB
use si_id::{ ChangeSetId, WorkspacePk, }; use thiserror::Error; pub mod component; mod parser; mod query; pub use query::{ SearchQuery, SearchTerm, }; #[remain::sorted] #[derive(Debug, Error)] pub enum Error { // TODO(jkeiser) this should be inside frigg, no? #[error("change set index not found for workspace {workspace_id}, change set {change_set_id}")] ChangeSetIndexNotFound { workspace_id: WorkspacePk, change_set_id: ChangeSetId, }, #[error("frig error: {0}")] Frigg(#[from] frigg::Error), #[error("join error: {0}")] Join(#[from] tokio::task::JoinError), // TODO(jkeiser) this should be inside frigg, no? #[error("mv item not found: {0}, {1}, {2} (kind, id, checksum)")] MvNotFound(String, String, String), // kind, id, checksum #[error( "The search parser stopped unexpectedly at position {position} in query '{query_string}'" )] ParserFailed { query_string: String, position: usize, }, #[error("serde json error: {0}")] SerdeJson(#[from] serde_json::Error), #[error("ulid decode error: {0}")] UlidDecode(#[from] ulid::DecodeError), #[error("workspace snapshot error: {0}")] WorkspaceSnapshot(#[from] dal::WorkspaceSnapshotError), } pub type Result<T> = std::result::Result<T, Error>;

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/systeminit/si'

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