SAGE
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SAGE_MCP_VERBOSE | No | 0 | |
| SAGE_MCP_ENABLE_COMMANDS | No | 0 | |
| SAGE_MCP_IDLE_TIMEOUT_SECONDS | No | 300 |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| sage_explain_errorC | Get AI-friendly explanation of command error |
| sage_suggest_fixB | Get suggested fixes for error |
| sage_spawn_agentC | Spawn specialized agent for task |
| sage_run_workflowC | Execute workflow pipeline |
| sage_get_historyC | Get command history |
| sage_read_fileA | Read a file with SAGE compression: small files exact, large files as outline + head with line references. Prefer this over cat/type/Get-Content to save context. |
| sage_grepA | Search files with compressed, grouped results (exact paths and line numbers kept). Prefer this over rg/grep when output may be large. |
| sage_callC | Run a command as an explicit agent tool-call with purpose metadata (tracked for tool-quality metrics). |
| sage_show_rawA | Recover the exact stored output of a previous run by ID (compression never destroys the original). |
| sage_write_fileA | Create or update a file. Returns bytes/lines/sha256 confirmation instead of echoing the content back — saves the whole file's tokens. Existing files require overwrite=true (a snapshot is taken first so it is reversible). |
| sage_edit_fileA | Exact string replacement in a file. Returns a compact change preview instead of the whole file, and snapshots the pre-edit content for undo. old must match exactly and be unique unless replace_all=true. |
| sage_globA | Find files by pattern, newest first, junk directories ignored, capped output. Prefer over recursive directory listings. |
| sage_treeB | Compact depth-limited directory overview instead of ls -R noise. |
| sage_agentic_runA | Run a command with SAGE's agentic loop — auto-retries on failure, applies fixes, verifies. Use instead of sage_run_command when you want automatic error recovery. |
| sage_agentic_fixC | Get an auto-fix suggestion for the last failed command. Returns the fix command, strategy, and confidence. |
| sage_agentic_sessionA | Get the current agentic session state — failure streak, recent errors, intent chain. Useful for understanding context before deciding next action. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/PsYcGoD/sage'
If you have feedback or need assistance with the MCP directory API, please join our Discord server