This directory contains examples demonstrating how to use the Smithery SDK.
-
First, make sure you have the required environment variables:
export OPENAI_API_KEY="your-openai-api-key" export E2B_API_KEY="your-e2b-api-key"
-
Install dependencies:
npm install
-
Build the SDK:
npm run build
-
Run an example:
# Run the simple example npx tsx src/examples/simple.ts
A basic example that shows how to:
- Connect to an MCP (e2b in this case)
- Patch an OpenAI client
- Have a conversation that uses MCP tools
- Handle multi-step tool execution