Skip to main content
Glama

Code MCP Server

by block

list_directory

Retrieve detailed contents of a directory by specifying the path, optionally listing files recursively. Facilitates interaction with VS Code through the Model Context Protocol for AI agents and assistants.

Instructions

List contents of a directory with details

Input Schema

NameRequiredDescriptionDefault
pathYesPath to the directory
recursiveNoList recursively

Input Schema (JSON Schema)

{ "properties": { "path": { "description": "Path to the directory", "type": "string" }, "recursive": { "description": "List recursively", "type": "boolean" } }, "required": [ "path" ], "type": "object" }

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