Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CODE_EDIT_ROOTNo安全标记(默认启动时的 CWD),不做访问边界,也不参与相对路径解析。.
CODE_EDIT_ALLOWED_ROOTSNo逗号分隔允许目录列表(已被 CODE_EDIT_ALLOWED_DIRECTORIES 替代,保留兼容性)
CODE_EDIT_ALLOWED_ROOTS_FILENo允许目录持久化 JSON 文件路径tools/.code_edit_roots.json
CODE_EDIT_ALLOWED_DIRECTORIESNo逗号分隔允许目录列表(兼容旧的 CODE_EDIT_ALLOWED_ROOTS)
CODE_EDIT_FILE_READ_LINE_LIMITNoread_file 最大行数限制1000
CODE_EDIT_FILE_WRITE_LINE_LIMITNofile_ops 写入行数警戒值50

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/TripQi/code-editor'

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