Skip to content

feat(tools-registry): add global-chat#14276

Open
globalchatapp wants to merge 1 commit intovercel:mainfrom
globalchatapp:feat/add-tool-global-chat
Open

feat(tools-registry): add global-chat#14276
globalchatapp wants to merge 1 commit intovercel:mainfrom
globalchatapp:feat/add-tool-global-chat

Conversation

@globalchatapp
Copy link
Copy Markdown

Summary

Adds Global Chat to the AI SDK tools registry.

Global Chat is a cross-protocol agent discovery infrastructure providing:

  • Agent directory search — discover AI agents across MCP, A2A, and x402 protocols
  • Agent detail lookup — get capabilities, endpoints, and protocol support for any registered agent
  • agents.txt validation — validate compliance with the agents.txt specification

Package

Usage

The tool is an MCP server that integrates with the AI SDK via experimental_createMCPClient:

import { generateText, isStepCount } from 'ai';
import { experimental_createMCPClient as createMCPClient } from 'ai';
import { Experimental_StdioMCPTransport as StdioMCPTransport } from 'ai';

const client = await createMCPClient({
  transport: new StdioMCPTransport({
    command: 'npx',
    args: ['-y', '@globalchatadsapp/mcp-server'],
  }),
});

const tools = await client.tools();

const { text } = await generateText({
  model: 'anthropic/claude-sonnet-4',
  prompt: 'Search the agent directory for payment agents that support USDC',
  tools,
  stopWhen: isStepCount(5),
});

console.log(text);
await client.close();

Checklist

  • Package published to npm
  • Tool tested with the AI SDK
  • Working code example provided
  • Only modifies content/tools-registry/registry.ts

@tigent tigent bot added ai/mcp related to `@ai-sdk/mcp` package feature New feature or request provider/community labels Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/mcp related to `@ai-sdk/mcp` package feature New feature or request provider/community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants