Skip to main content
Glama

Code MCP Server

by block

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
get_workspace

Get current workspace path

set_workspace

Set the active workspace directory

list_workspaces

List recently used workspaces

detect_vscode_workspaces

Automatically detect open VS Code instances and their workspaces

present_workspace_choice

Present detected workspaces to user for selection

auto_select_workspace

Automatically select the most appropriate VS Code workspace

smart_workspace_init

Intelligently initialize workspace with VS Code detection and user choice

read_file

Read the contents of a file

write_file

Write content to a file

list_directory

List contents of a directory with details

create_directory

Create a new directory

delete_file

Delete a file or directory

move_file

Move or rename a file or directory

run_python

Execute Python code or script

run_javascript

Execute JavaScript code or script with Node.js

run_command

Execute a shell command

pip_install

Install Python packages using pip

npm_command

Run npm commands (install, test, build, etc)

run_tests

Run tests using appropriate test runner

git_status

Get git repository status

git_diff

Show git diff

git_add

Stage files for commit

git_commit

Commit staged changes

git_push

Push commits to remote

git_pull

Pull changes from remote

git_branch

List, create, or switch branches

git_log

Show commit history

analyze_code

Analyze code structure and dependencies

search_code

Search for patterns in code

create_project

Create a new project with boilerplate

install_dependencies

Install all project dependencies

start_server

Start a development server

stop_server

Stop a running server

list_processes

List all running processes started by the agent

docker_check_availability

Check if Docker is installed and available

docker_build

Build a Docker image from a Dockerfile

docker_run

Run a Docker container

docker_compose

Manage Docker Compose services

docker_images

Manage Docker images (list, pull, push, remove, etc.)

docker_containers

Manage Docker containers (list, start, stop, remove, etc.)

docker_networks

Manage Docker networks

docker_volumes

Manage Docker volumes

docker_system

Docker system operations and information

generate_dockerfile

Generate a Dockerfile template for a specific language/framework

generate_docker_compose

Generate a Docker Compose file template

docker_cleanup

Clean up tracked Docker containers and resources

load_project_config

Load project-specific configuration from .vscode-mcp.toml

save_project_config

Save project-specific configuration to .vscode-mcp.toml

update_project_config

Update specific project configuration settings

generate_sample_config

Generate a sample .vscode-mcp.toml configuration file

start_coding_session

Start a new AI coding session with automatic change tracking

end_coding_session

End the current AI coding session

get_session_info

Get information about the current coding session

rollback_session

Rollback all changes made in the current AI session

preview_changes

Preview all changes before committing

auto_commit_changes

Automatically commit AI-made changes with tracking

get_session_history

Get history of commits in current session

enhanced_git_diff

Show git diff with multiple format options (unified, side-by-side, stat, word-diff)

get_diff_stats

Get diff statistics (files changed, lines added/removed)

compare_commits

Compare two commits with detailed analysis

preview_changes_enhanced

Enhanced change preview with multiple format options

compare_files

Compare two files and show differences with multiple format options

analyze_file_differences

Analyze differences between two files with detailed statistics

apply_patch

Apply a patch file to the workspace

create_patch

Create a patch file from differences between files or directories

find_and_replace

Find and replace text across multiple files with preview option

secure_run_command

Execute a command with security restrictions (only allowed commands)

secure_run_command_sequence

Execute multiple commands in sequence with security restrictions

get_allowed_commands

Get list of commands that are allowed to run in this project

add_allowed_command

Add a command to the project's allowed commands list

remove_allowed_command

Remove a command from the project's allowed commands list

run_custom_tool

Execute a custom tool defined in project configuration

start_coding_session

Start a new coding session for change tracking

end_coding_session

End the current coding session

get_current_session

Get information about the current coding session

get_session_history

Get history of all coding sessions and their commits

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/block/vscode-mcp'

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