Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 717 Bytes

README.md

File metadata and controls

41 lines (28 loc) · 717 Bytes

Examples

This directory contains examples demonstrating how to use the Smithery SDK.

Running the Examples

  1. 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"
  2. Install dependencies:

    npm install
  3. Build the SDK:

    npm run build
  4. Run an example:

    # Run the simple example
    npx tsx src/examples/simple.ts

Available 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