@@ -69,29 +69,34 @@ MyCoder Agent supports the Model Context Protocol:
69
69
## Available Tools
70
70
71
71
### File & Text Manipulation
72
+
72
73
- ** textEditor** : View, create, and edit files with persistent state
73
74
- Commands: view, create, str_replace, insert, undo_edit
74
75
- Line number support and partial file viewing
75
76
76
77
### System Interaction
78
+
77
79
- ** shellStart** : Execute shell commands with sync/async modes
78
80
- ** shellMessage** : Interact with running shell processes
79
81
- ** shellExecute** : One-shot shell command execution
80
82
- ** listShells** : List all running shell processes
81
83
82
84
### Agent Management
85
+
83
86
- ** agentStart** : Create sub-agents for parallel tasks
84
87
- ** agentMessage** : Send messages to sub-agents
85
88
- ** agentDone** : Complete the current agent's execution
86
89
- ** listAgents** : List all running agents
87
90
88
91
### Network & Web
92
+
89
93
- ** fetch** : Make HTTP requests to APIs
90
94
- ** sessionStart** : Start browser automation sessions
91
95
- ** sessionMessage** : Control browser sessions (navigation, clicking, typing)
92
96
- ** listSessions** : List all browser sessions
93
97
94
98
### Utility Tools
99
+
95
100
- ** sleep** : Pause execution for a specified duration
96
101
- ** userPrompt** : Request input from the user
97
102
@@ -145,10 +150,10 @@ const tools = [textEditorTool, shellStartTool];
145
150
146
151
// Run the agent
147
152
const 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' ,
149
154
tools ,
150
155
{
151
- getSystemPrompt : () => " You are a helpful coding assistant..." ,
156
+ getSystemPrompt : () => ' You are a helpful coding assistant...' ,
152
157
maxIterations: 10 ,
153
158
},
154
159
{
@@ -157,7 +162,7 @@ const result = await toolAgent(
157
162
model: ' claude-3-opus-20240229' ,
158
163
apiKey: process .env .ANTHROPIC_API_KEY ,
159
164
workingDirectory: process .cwd (),
160
- }
165
+ },
161
166
);
162
167
163
168
console .log (' Agent result:' , result );
@@ -169,4 +174,4 @@ We welcome contributions! Please see our [CONTRIBUTING.md](../CONTRIBUTING.md) f
169
174
170
175
## License
171
176
172
- MIT
177
+ MIT
0 commit comments