@@ -69,29 +69,34 @@ MyCoder Agent supports the Model Context Protocol:
6969## Available Tools
7070
7171### File & Text Manipulation
72+
7273- ** textEditor** : View, create, and edit files with persistent state
7374 - Commands: view, create, str_replace, insert, undo_edit
7475 - Line number support and partial file viewing
7576
7677### System Interaction
78+
7779- ** shellStart** : Execute shell commands with sync/async modes
7880- ** shellMessage** : Interact with running shell processes
7981- ** shellExecute** : One-shot shell command execution
8082- ** listShells** : List all running shell processes
8183
8284### Agent Management
85+
8386- ** agentStart** : Create sub-agents for parallel tasks
8487- ** agentMessage** : Send messages to sub-agents
8588- ** agentDone** : Complete the current agent's execution
8689- ** listAgents** : List all running agents
8790
8891### Network & Web
92+
8993- ** fetch** : Make HTTP requests to APIs
9094- ** sessionStart** : Start browser automation sessions
9195- ** sessionMessage** : Control browser sessions (navigation, clicking, typing)
9296- ** listSessions** : List all browser sessions
9397
9498### Utility Tools
99+
95100- ** sleep** : Pause execution for a specified duration
96101- ** userPrompt** : Request input from the user
97102
@@ -145,10 +150,10 @@ const tools = [textEditorTool, shellStartTool];
145150
146151// Run the agent
147152const result = await toolAgent (
148- " Write a simple Node.js HTTP server and save it to server.js" ,
153+ ' Write a simple Node.js HTTP server and save it to server.js' ,
149154 tools ,
150155 {
151- getSystemPrompt : () => " You are a helpful coding assistant..." ,
156+ getSystemPrompt : () => ' You are a helpful coding assistant...' ,
152157 maxIterations: 10 ,
153158 },
154159 {
@@ -157,7 +162,7 @@ const result = await toolAgent(
157162 model: ' claude-3-opus-20240229' ,
158163 apiKey: process .env .ANTHROPIC_API_KEY ,
159164 workingDirectory: process .cwd (),
160- }
165+ },
161166);
162167
163168console .log (' Agent result:' , result );
@@ -169,4 +174,4 @@ We welcome contributions! Please see our [CONTRIBUTING.md](../CONTRIBUTING.md) f
169174
170175## License
171176
172- MIT
177+ MIT
0 commit comments