Skip to content

Commit 0508454

Browse files
thisistonydangjonathanhefner
authored andcommitted
update docs
1 parent c592dd2 commit 0508454

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/docs/develop/build-client.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)