Skip to main content
Glama

mcp-wcgw

Apache 2.0
510
  • Apple
  • Linux

Initialize

Set up and configure the shell environment for the MCP server by initializing the workspace, reading specified files, and setting the appropriate mode for shell tools.

Instructions

  • Always call this at the start of the conversation before using any of the shell tools from wcgw.
  • Use any_workspace_path to initialize the shell in the appropriate project directory.
  • If the user has mentioned a workspace or project root or any other file or folder use it to set any_workspace_path.
  • If user has mentioned any files use initial_files_to_read to read, use absolute paths only (~ allowed)
  • By default use mode "wcgw"
  • In "code-writer" mode, set the commands and globs which user asked to set, otherwise use 'all'.
  • Use type="first_call" if it's the first call to this tool.
  • Use type="user_asked_mode_change" if in a conversation user has asked to change mode.
  • Use type="reset_shell" if in a conversation shell is not working after multiple tries.
  • Use type="user_asked_change_workspace" if in a conversation user asked to change workspace

Input Schema

NameRequiredDescriptionDefault
any_workspace_pathYes
code_writer_configNo
initial_files_to_readYes
mode_nameYes
task_id_to_resumeYes
thread_idYesUse the thread_id created in first_call, leave it as empty string if first_call
typeYes

Input Schema (JSON Schema)

{ "$defs": { "CodeWriterMode": { "additionalProperties": false, "properties": { "allowed_commands": { "anyOf": [ { "const": "all", "type": "string" }, { "items": { "type": "string" }, "type": "array" } ], "title": "Allowed Commands" }, "allowed_globs": { "anyOf": [ { "const": "all", "type": "string" }, { "items": { "type": "string" }, "type": "array" } ], "title": "Allowed Globs" } }, "required": [ "allowed_globs", "allowed_commands" ], "title": "CodeWriterMode", "type": "object" } }, "additionalProperties": false, "properties": { "any_workspace_path": { "title": "Any Workspace Path", "type": "string" }, "code_writer_config": { "anyOf": [ { "$ref": "#/$defs/CodeWriterMode" }, { "type": "null" } ], "default": null }, "initial_files_to_read": { "items": { "type": "string" }, "title": "Initial Files To Read", "type": "array" }, "mode_name": { "enum": [ "wcgw", "architect", "code_writer" ], "title": "Mode Name", "type": "string" }, "task_id_to_resume": { "title": "Task Id To Resume", "type": "string" }, "thread_id": { "description": "Use the thread_id created in first_call, leave it as empty string if first_call", "title": "Thread Id", "type": "string" }, "type": { "enum": [ "first_call", "user_asked_mode_change", "reset_shell", "user_asked_change_workspace" ], "title": "Type", "type": "string" } }, "required": [ "type", "any_workspace_path", "initial_files_to_read", "task_id_to_resume", "mode_name", "thread_id" ], "title": "Initialize", "type": "object" }
Install Server

Other Tools from mcp-wcgw

Related Tools

    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/rusiaaman/wcgw'

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