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
Name | Required | Description | Default |
---|---|---|---|
any_workspace_path | Yes | ||
code_writer_config | No | ||
initial_files_to_read | Yes | ||
mode_name | Yes | ||
task_id_to_resume | Yes | ||
thread_id | Yes | Use the thread_id created in first_call, leave it as empty string if first_call | |
type | Yes |