Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_LEVELNoLogging level (default: INFO)INFO
MAX_DEPTHNoMaximum directory traversal depth (default: 4)4
PROJECT_ROOTYesDefault project root directory
MAX_FILE_SIZENoMaximum file size in bytes (default: 1MB)1048576
OPENAI_API_KEYNoYour OpenAI API key (required for CLI agent)
ALLOW_EXTERNAL_PATHSNoEnable access to files outside project root (default: true)true

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
read_file

Reads the content of a text file at the specified path

write_file

Writes content to a text file at the specified path

edit_file

Edit a file by replacing specific content

delete_file

Deletes a file at the specified path

move_file

Moves a file from one path to another

copy_file

Copies a file from one path to another

create_directory

Creates a directory at the specified path (can be absolute or relative to project).

list_directory

Lists files and directories at the specified path within the project.

delete_directory

Deletes a directory at the specified path within the project.

get_directory_tree

Gets the directory tree structure starting from the specified path within the project.

search_in_files

Search for text or pattern across project files

find_replace

Find and replace text in a single file

find_replace_all

Find and replace text across multiple files

run_command

Run a shell command in the project directory

run_python

Run a Python script or code

git

Run git commands

git_status

Get git status of the project

git_diff

Show git diff

git_log

Show git commit history

analyze_code

Analyze code file and provide statistics

get_functions

Extract function and class definitions from a Python file

format_code

Format a Python file using black

lint_code

Lint a Python file using ruff or flake8

docker_tool

Run docker commands

docker_build_tool

Build Docker image

docker_compose_tool

run docker-compose commands

http_request_tool

Make HTTP requests to specified URLs

curl_tool

Make HTTP requests using curl command

Prompts

Interactive templates invoked by user choice

NameDescription
code_reviewReview code and provide detailed feedback
quick_code_reviewProvide a quick review of the given code snippet
debug_errorHelp debug an error
explain_codeExplain how code works
fix_bugFix a bug in the code
generate_docstringGenerate docstring for a function or class
generate_readmeGenerate README documentation
generate_testsGenerate unit tests for code
generate_api_docsGenerate API documentation

Resources

Contextual data attached and managed by the client

NameDescription
Project StructureTree view of the project directory structure
Project SummarySummary statistics of the project
Project Files ListList of all project files
Directory: rootContents of project root
Environment VariablesEnvironment variables template
pyprojectConfiguration: pyproject.toml
gitignoreConfiguration: .gitignore
env-exampleConfiguration: .env.example
readmeConfiguration: README.md
run_cli.pyFile: run_cli.py
src/client/__init__.pyFile: src/client/__init__.py
src/client/agents/__init__.pyFile: src/client/agents/__init__.py
src/client/agents/base_agent.pyFile: src/client/agents/base_agent.py
src/client/agents/coding_agent.pyFile: src/client/agents/coding_agent.py
src/client/agents/tool_executor.pyFile: src/client/agents/tool_executor.py
src/client/llm/__init__.pyFile: src/client/llm/__init__.py
src/client/llm/base.pyFile: src/client/llm/base.py
src/client/llm/factory.pyFile: src/client/llm/factory.py
src/client/llm/openai_llm.pyFile: src/client/llm/openai_llm.py
src/client/main.pyFile: src/client/main.py
src/client/session.pyFile: src/client/session.py
src/client/ui/__init__.pyFile: src/client/ui/__init__.py
src/client/ui/cli.pyFile: src/client/ui/cli.py
src/server/__init__.pyFile: src/server/__init__.py
src/server/config.pyFile: src/server/config.py
src/server/main.pyFile: src/server/main.py
src/server/prompts/__init__.pyFile: src/server/prompts/__init__.py
src/server/prompts/base.pyFile: src/server/prompts/base.py
src/server/prompts/code_review.pyFile: src/server/prompts/code_review.py
src/server/prompts/debug.pyFile: src/server/prompts/debug.py
src/server/prompts/documentation.pyFile: src/server/prompts/documentation.py
src/server/prompts/refactor.pyFile: src/server/prompts/refactor.py
src/server/resources/__init__.pyFile: src/server/resources/__init__.py
src/server/resources/base.pyFile: src/server/resources/base.py
src/server/resources/config_resources.pyFile: src/server/resources/config_resources.py
src/server/resources/file_resources.pyFile: src/server/resources/file_resources.py
src/server/resources/project_resources.pyFile: src/server/resources/project_resources.py
src/server/tools/__init__.pyFile: src/server/tools/__init__.py
src/server/tools/base.pyFile: src/server/tools/base.py
src/server/tools/code_tools.pyFile: src/server/tools/code_tools.py
src/server/tools/command_tools.pyFile: src/server/tools/command_tools.py
src/server/tools/directory_tools.pyFile: src/server/tools/directory_tools.py
src/server/tools/docker_tool.pyFile: src/server/tools/docker_tool.py
src/server/tools/file_tools.pyFile: src/server/tools/file_tools.py
src/server/tools/git_tools.pyFile: src/server/tools/git_tools.py
src/server/tools/http_tools.pyFile: src/server/tools/http_tools.py
src/server/tools/search_tools.pyFile: src/server/tools/search_tools.py
src/server/utils/__init__.pyFile: src/server/utils/__init__.py
src/server/utils/file_utils.pyFile: src/server/utils/file_utils.py
src/server/utils/mime_types.pyFile: src/server/utils/mime_types.py
src/server/utils/path_utils.pyFile: src/server/utils/path_utils.py
src/server/utils/patterns.pyFile: src/server/utils/patterns.py
src/shared/__init__.pyFile: src/shared/__init__.py
src/shared/constants.pyFile: src/shared/constants.py
src/shared/exceptions.pyFile: src/shared/exceptions.py
src/shared/logger.pyFile: src/shared/logger.py
src/shared/models.pyFile: src/shared/models.py

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/Abhi-vish/code-buddy'

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