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 @@ -734,6 +734,10 @@ async function main() {
734734 try {
735735 await mcpClient .connectToServer (process .argv [2 ]);
736736 await mcpClient .chatLoop ();
737+ } catch (e ) {
738+ console .error (" Error:" , e );
739+ await mcpClient .cleanup ();
740+ process .exit (1 );
737741 } finally {
738742 await mcpClient .cleanup ();
739743 process .exit (0 );
@@ -838,6 +842,7 @@ If you see:
838842- ` Tool execution failed ` : Verify the tool's required environment variables are set
839843- ` ANTHROPIC_API_KEY is not set ` : Check your .env file and environment variables
840844- ` TypeError ` : Ensure you're using the correct types for tool arguments
845+ - ` BadRequestError ` : Ensure you have enough credits to access the Anthropic API
841846
842847</Tab >
843848
You can’t perform that action at this time.
0 commit comments