Skip to main content

latest
It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
47%
Published
16 hours ago (0.3.1)

Toolpot

A function calling proxy for connecting Google, OpenAI, or Anthropic API with tools through MCP and make it available through unified OpenAI compatible API. Made for quick deployment of AI agents to Deno Deploy.

Usage

toolpot({
  apiKeys: [Deno.env.get('API_KEY')],
  providers: {
    'openai-default': {
      provider: 'openai',
      apiKey: Deno.env.get('OPENAI_API_KEY')
    },
  },
  mcpServers: {
    'mcprun-default': {
      sseUrl: Deno.env.get('MCP_SSE_URL')
    }
  },
  agents: {
    '4o-mini': {
      model: 'gpt-4o-mini',
      provider: 'openai-default',
      mcpSse: 'mcprun-default'
    }
  }
})

Pre-alpha version, use at your own risk!

Add Package

deno add jsr:@ainc/toolpot

Import symbol

import * as toolpot from "@ainc/toolpot";

---- OR ----

Import directly with a jsr specifier

import * as toolpot from "jsr:@ainc/toolpot";

Add Package

npx jsr add @ainc/toolpot

Import symbol

import * as toolpot from "@ainc/toolpot";

Add Package

yarn dlx jsr add @ainc/toolpot

Import symbol

import * as toolpot from "@ainc/toolpot";

Add Package

pnpm dlx jsr add @ainc/toolpot

Import symbol

import * as toolpot from "@ainc/toolpot";

Add Package

bunx jsr add @ainc/toolpot

Import symbol

import * as toolpot from "@ainc/toolpot";