File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -738,6 +738,10 @@ async function main() {
738738 try {
739739 await mcpClient .connectToServer (process .argv [2 ]);
740740 await mcpClient .chatLoop ();
741+ } catch (e ) {
742+ console .error (" Error:" , e );
743+ await mcpClient .cleanup ();
744+ process .exit (1 );
741745 } finally {
742746 await mcpClient .cleanup ();
743747 process .exit (0 );
@@ -842,6 +846,7 @@ If you see:
842846- ` Tool execution failed ` : Verify the tool's required environment variables are set
843847- ` ANTHROPIC_API_KEY is not set ` : Check your .env file and environment variables
844848- ` TypeError ` : Ensure you're using the correct types for tool arguments
849+ - ` BadRequestError ` : Ensure you have enough credits to access the Anthropic API
845850
846851</Tab >
847852
You can’t perform that action at this time.
0 commit comments