Skip to main content
Glama

STAC MCP Server

by BnJam
0007-client-config-and-error-handling.md916 B
# ADR 0007: Client Configuration and Error Handling Status: Proposed Date: 2025-09-18 ## Context - Some deployments require custom headers, user agents, or timeouts. - Need consistent error mapping for better UX. ## Decision - Add optional client configuration at call level: - headers (dict[str, str]), timeout (seconds) - Pass configuration to pystac-client via StacApiIO when feasible. - Error handling: - Map timeouts/connection errors to concise messages. - Preserve APIError details; avoid swallowing context. - Log at error level; no prints. ## Consequences - More robust behavior in varied environments. - Slight increase in configuration complexity. ## Alternatives considered - Global env-only configuration (rejected; less explicit, harder to test). ## Addendums - 2025-09-18: See ASR 1004 (Graceful Network Error Handling) for non-functional error-handling guarantees and testing guidance.

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/BnJam/stac-mcp'

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