1. Conduid
  2. Developer Tools
  3. AI Toolkit
MCP server · Developer Tools

AI Toolkit

MCP server: AI Toolkit

Unclaimed MIT devtools
49Fair

Scored 7 days ago · breakdown

About AI Toolkit

AI Toolkit is an MCP server published by subtotal in the Developer Tools category: mCP server: AI Toolkit.

The repository has 1 stars and 0 forks, with the last commit 5 months ago. Recent commit activity is the strongest signal that reported issues will get attention.

Install

From source
git clone https://github.com/subtotal/ai-toolkit

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about AI Toolkit

Powered by Claude · Grounded in docs

I know everything about AI Toolkit. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 7 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

README

Subtotal AI Toolkit

The Subtotal AI Toolkit enables popular agent frameworks including LangChain, CrewAI, Vercel's AI SDK, and Model Context Protocol (MCP) to integrate with Subtotal APIs through function calling. The library is not exhaustive of the entire Subtotal API. It currently includes support for TypeScript with Python coming soon.

Included below are basic instructions, but refer to the TypeScript package for more information.

TypeScript

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 @subtotal-inc/ai-toolkit

Requirements

  • Node 18+

Usage

The library needs to be configured with your account's secret key credentials which is available in your Subtotal Dashboard. Additionally, configuration enables you to specify the types of actions that can be taken using the toolkit.

import { SubtotalAIToolkit, Tools } from "@subtotal-inc/ai-toolkit/langchain";

const subtotalAIToolkit = new SubtotalAIToolkit({
  secretKey: process.env.SUBTOTAL_SECRET_KEY!,
  configuration: {
    tools: [
      Tools.createConnection,
      Tools.createMerchantLinkUrl,
      Tools.getPurchases,
      Tools.getPurchaseDetails,
      Tools.getMerchants,
    ],
  },
});

Tools

The toolkit works with LangChain and Vercel's AI SDK and can be passed as a list of tools. For example:

import { AgentExecutor, createStructuredChatAgent } from "langchain/agents";

const tools = subtotalAIToolkit.getTools();

const agent = await createStructuredChatAgent({
  llm,
  tools,
  prompt,
});

const agentExecutor = new AgentExecutor({
  agent,
  tools,
});

Model Context Protocol

The Subtotal AI Toolkit also supports the Model Context Protocol (MCP).

To run the Subtotal MCP server using npx, use the following command:

npx -y @subtotal-inc/mcp --tools=all --subtotal-secret-key=<SECRET_KEY>

Replace <SECRET_KEY> with your actual Subtotal secret API key. Or, you could set the SUBTOTAL_SECRET_KEY environment variable.

Alternatively, you can set up your own MCP server. For example:

import { SubtotalAIToolkit, Tools } from "@subtotal-inc/ai-toolkit/modelcontextprotocol";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";

const server = new SubtotalAIToolkit({
  secretKey: process.env.SUBTOTAL_SECRET_KEY!,
  configuration: {
    tools: [
      Tools.createConnection,
      Tools.createMerchantLinkUrl,
      Tools.getPurchases,
      Tools.getPurchaseDetails,
      Tools.getMerchants,
    ],
  },
});

async function main() {
  const transport = new StdioServerTransport();
  await server.connect(transport);
  console.error("Subtotal MCP Server running on stdio");
}

main().catch((error) => {
  console.error("Fatal error in main():", error);
  process.exit(1);
});

Supported API methods

README fetched from the repository 7 days ago. The original is authoritative.

Questions

About AI Toolkit

How do I install AI Toolkit?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is AI Toolkit safe to use with an AI agent?

Its trust score is 49 out of 100 (fair). It passes 5 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is AI Toolkit still maintained?

Yes — the last commit was 5 months ago. The repository has 1 stars and 0 forks and 1 open issues.