mcp-wcgw
by rusiaaman
Verified
{
"openapi": "3.1.0",
"info": {
"title": "FastAPI",
"version": "0.1.0"
},
"servers": [
{
"url": "https://7781-2401-4900-1c2d-12ae-c55d-45dc-459-c089.ngrok-free.app"
}
],
"paths": {
"/v1/file_write_or_edit": {
"post": {
"x-openai-isConsequential": false,
"summary": "File Write Or Edit",
"operationId": "file_write_or_edit_v1_file_write_or_edit_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FileWriteOrEdithUUID"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "string",
"title": "Response File Write Or Edit V1 File Write Or Edit Post"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/v1/bash_command": {
"post": {
"x-openai-isConsequential": false,
"summary": "Bash Command",
"operationId": "bash_command_v1_bash_command_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CommandWithUUID"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "string",
"title": "Response Bash Command V1 Bash Command Post"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/v1/read_file": {
"post": {
"x-openai-isConsequential": false,
"summary": "Read File Endpoint",
"operationId": "read_file_endpoint_v1_read_file_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ReadFileWithUUID"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "string",
"title": "Response Read File Endpoint V1 Read File Post"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/v1/initialize": {
"post": {
"x-openai-isConsequential": false,
"summary": "Initialize",
"operationId": "initialize_v1_initialize_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/InitializeWithUUID"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "string",
"title": "Response Initialize V1 Initialize Post"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/v1/context_save": {
"post": {
"x-openai-isConsequential": false,
"summary": "Context Save",
"operationId": "context_save_v1_context_save_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ContextSaveWithUUID"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "string",
"title": "Response Context Save V1 Context Save Post"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"CodeWriterMode": {
"properties": {
"allowed_globs": {
"anyOf": [
{
"type": "string",
"const": "all"
},
{
"items": {
"type": "string"
},
"type": "array"
}
],
"title": "Allowed Globs"
},
"allowed_commands": {
"anyOf": [
{
"type": "string",
"const": "all"
},
{
"items": {
"type": "string"
},
"type": "array"
}
],
"title": "Allowed Commands"
}
},
"additionalProperties": false,
"type": "object",
"required": ["allowed_globs", "allowed_commands"],
"title": "CodeWriterMode"
},
"Command": {
"properties": {
"command": {
"type": "string",
"title": "Command"
}
},
"additionalProperties": false,
"type": "object",
"required": ["command"],
"title": "Command"
},
"CommandWithUUID": {
"properties": {
"action_json": {
"anyOf": [
{
"$ref": "#/components/schemas/Command"
},
{
"$ref": "#/components/schemas/StatusCheck"
},
{
"$ref": "#/components/schemas/SendText"
},
{
"$ref": "#/components/schemas/SendSpecials"
},
{
"$ref": "#/components/schemas/SendAscii"
}
],
"title": "Action Json"
},
"wait_for_seconds": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Wait For Seconds"
},
"user_id": {
"type": "string",
"format": "uuid",
"title": "User Id"
}
},
"additionalProperties": false,
"type": "object",
"required": ["action_json", "user_id"],
"title": "CommandWithUUID"
},
"ContextSaveWithUUID": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"project_root_path": {
"type": "string",
"title": "Project Root Path"
},
"description": {
"type": "string",
"title": "Description"
},
"relevant_file_globs": {
"items": {
"type": "string"
},
"type": "array",
"title": "Relevant File Globs"
},
"user_id": {
"type": "string",
"format": "uuid",
"title": "User Id"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"id",
"project_root_path",
"description",
"relevant_file_globs",
"user_id"
],
"title": "ContextSaveWithUUID"
},
"FileWriteOrEdithUUID": {
"properties": {
"file_path": {
"type": "string",
"title": "File Path"
},
"percentage_to_change": {
"type": "integer",
"title": "Percentage To Change"
},
"file_content_or_search_replace_blocks": {
"type": "string",
"title": "File Content Or Search Replace Blocks"
},
"user_id": {
"type": "string",
"format": "uuid",
"title": "User Id"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"file_path",
"percentage_to_change",
"file_content_or_search_replace_blocks",
"user_id"
],
"title": "FileWriteOrEdithUUID"
},
"HTTPValidationError": {
"properties": {
"detail": {
"items": {
"$ref": "#/components/schemas/ValidationError"
},
"type": "array",
"title": "Detail"
}
},
"type": "object",
"title": "HTTPValidationError"
},
"InitializeWithUUID": {
"properties": {
"type": {
"type": "string",
"enum": [
"first_call",
"user_asked_mode_change",
"reset_shell",
"user_asked_change_workspace"
],
"title": "Type"
},
"any_workspace_path": {
"type": "string",
"title": "Any Workspace Path"
},
"initial_files_to_read": {
"items": {
"type": "string"
},
"type": "array",
"title": "Initial Files To Read"
},
"task_id_to_resume": {
"type": "string",
"title": "Task Id To Resume"
},
"mode_name": {
"type": "string",
"enum": ["wcgw", "architect", "code_writer"],
"title": "Mode Name"
},
"code_writer_config": {
"anyOf": [
{
"$ref": "#/components/schemas/CodeWriterMode"
},
{
"type": "null"
}
]
},
"user_id": {
"type": "string",
"format": "uuid",
"title": "User Id"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"type",
"any_workspace_path",
"initial_files_to_read",
"task_id_to_resume",
"mode_name",
"user_id"
],
"title": "InitializeWithUUID"
},
"ReadFileWithUUID": {
"properties": {
"file_paths": {
"items": {
"type": "string"
},
"type": "array",
"title": "File Paths"
},
"show_line_numbers_reason": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Show Line Numbers Reason"
},
"user_id": {
"type": "string",
"format": "uuid",
"title": "User Id"
}
},
"additionalProperties": false,
"type": "object",
"required": ["file_paths", "user_id"],
"title": "ReadFileWithUUID"
},
"SendAscii": {
"properties": {
"send_ascii": {
"items": {
"type": "integer"
},
"type": "array",
"title": "Send Ascii"
}
},
"additionalProperties": false,
"type": "object",
"required": ["send_ascii"],
"title": "SendAscii"
},
"SendSpecials": {
"properties": {
"send_specials": {
"items": {
"type": "string",
"enum": [
"Enter",
"Key-up",
"Key-down",
"Key-left",
"Key-right",
"Ctrl-c",
"Ctrl-d"
]
},
"type": "array",
"title": "Send Specials"
}
},
"additionalProperties": false,
"type": "object",
"required": ["send_specials"],
"title": "SendSpecials"
},
"SendText": {
"properties": {
"send_text": {
"type": "string",
"title": "Send Text"
}
},
"additionalProperties": false,
"type": "object",
"required": ["send_text"],
"title": "SendText"
},
"StatusCheck": {
"properties": {
"status_check": {
"type": "boolean",
"const": true,
"title": "Status Check"
}
},
"additionalProperties": false,
"type": "object",
"required": ["status_check"],
"title": "StatusCheck"
},
"ValidationError": {
"properties": {
"loc": {
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
},
"type": "array",
"title": "Location"
},
"msg": {
"type": "string",
"title": "Message"
},
"type": {
"type": "string",
"title": "Error Type"
}
},
"type": "object",
"required": ["loc", "msg", "type"],
"title": "ValidationError"
}
}
}
}