Compare commits
1 Commits
developmen
...
terminal
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ce4e92502a |
15
src/index.ts
15
src/index.ts
@@ -221,7 +221,20 @@ async function main() {
|
||||
|
||||
// Start the server
|
||||
await server.start();
|
||||
console.log('MCP Server started');
|
||||
console.log('MCP Server started successfully and is ready to accept commands.');
|
||||
// Add more detailed logging for server actions
|
||||
server.on('toolAdded', (tool) => {
|
||||
console.log(`Tool added: ${tool.name} - ${tool.description}`);
|
||||
});
|
||||
|
||||
server.on('toolExecuted', (tool, result) => {
|
||||
console.log(`Tool executed: ${tool.name} - Result: ${result.success ? 'Success' : 'Failure'}`);
|
||||
if (!result.success) {
|
||||
console.error(`Error: ${result.message}`);
|
||||
}
|
||||
});
|
||||
|
||||
console.log('Listening for incoming connections...');
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
||||
Reference in New Issue
Block a user