npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@maton/agent-toolkit

v0.1.1

Published

Maton Agent Toolkit - connect popular agent frameworks (LangChain, Vercel AI SDK, OpenAI) to the Maton MCP server.

Downloads

851

Readme

Maton Agent Toolkit - TypeScript

The Maton Agent Toolkit connects popular agent frameworks — LangChain, Vercel's AI SDK, and OpenAI — to the Maton MCP server through function calling. Instead of bundling a fixed set of actions, the toolkit connects to the remote Maton MCP server, discovers the available tools, and exposes them in each framework's native tool format. This lets your agent connect and automate 150+ apps (Google Workspace, Microsoft 365, GitHub, Notion, Slack, HubSpot, and more).

Installation

You don't need this source code unless you want to modify the package. If you just want to use the package run:

npm install @maton/agent-toolkit

Requirements

  • Node 18+

Usage

The library needs to be configured with your Maton API key. You can create one at maton.ai, or set the MATON_API_KEY environment variable. The toolkit connects to https://mcp.maton.ai with your key in the Authorization: Bearer header.

Each integration exposes an async factory (createMatonAgentToolkit) that connects to the MCP server and fetches tools. Always close() the toolkit when you're done to release the connection.

Vercel AI SDK

import {createMatonAgentToolkit} from '@maton/agent-toolkit/ai-sdk';

const toolkit = await createMatonAgentToolkit({
  apiKey: process.env.MATON_API_KEY!,
  configuration: {},
});

const tools = toolkit.getTools();
// ... use tools with generateText / streamText ...

await toolkit.close();

LangChain

import {createMatonAgentToolkit} from '@maton/agent-toolkit/langchain';

const toolkit = await createMatonAgentToolkit({
  apiKey: process.env.MATON_API_KEY!,
  configuration: {},
});

const tools = toolkit.getTools();
// ... pass tools to your LangChain agent ...

await toolkit.close();

OpenAI

import {createMatonAgentToolkit} from '@maton/agent-toolkit/openai';

const toolkit = await createMatonAgentToolkit({
  apiKey: process.env.MATON_API_KEY!,
  configuration: {},
});

const tools = toolkit.getTools();
// ... pass tools to chat.completions.create ...
// then handle tool calls:
// const toolMessage = await toolkit.handleToolCall(toolCall);

await toolkit.close();

Model Context Protocol

The toolkit also exposes a local MCP server that proxies to the remote Maton MCP server:

import {createMatonAgentToolkit} from '@maton/agent-toolkit/modelcontextprotocol';

const server = await createMatonAgentToolkit({
  apiKey: process.env.MATON_API_KEY!,
  configuration: {},
});

// `server` is an McpServer instance ready to connect to a transport.

Context

You can provide a default connection that all requests route through (sent as the Maton-Connection header). If omitted, Maton uses the newest active connection for the target app.

const toolkit = await createMatonAgentToolkit({
  apiKey: process.env.MATON_API_KEY!,
  configuration: {
    context: {
      connection: 'conn_123',
    },
  },
});

Available tools

The toolkit exposes whatever tools the Maton MCP server provides, including whoami, connection management (create_connection, list_connections, …), discovery (search_apps, search_actions, get_action), run_action, and the generic api gateway passthrough.

See the Maton MCP package for details.