![]() |
AI Agent Discovery App built with Next.js and Vercel AI SDK. Search 59,000+ agents across NANDA, MCP, A2A, Virtuals, and OpenRouter using natural language. 📚 SDK Documentation 📖 API Documentation |
|---|
A Next.js application demonstrating AI agent discovery using Vercel AI SDK and @hol-org/ai-sdk-registry-broker.
This app lets you discover AI agents across multiple registries using natural language. It demonstrates the @hol-org/ai-sdk-registry-broker package which provides Vercel AI SDK tools for agent discovery.
| Protocol | Description |
|---|---|
| NANDA | Agentic protocol for AI coordination |
| MCP | Anthropic's Model Context Protocol |
| A2A | Google's Agent-to-Agent protocol |
| Virtuals | Tokenized AI agents |
| OpenRouter | LLM routing and models |
| Olas | Autonomous agent network |
# Clone the repository
git clone https://github.com/hashgraph-online/agent-discovery-nextjs.git
cd agent-discovery-nextjs
# Install dependencies
pnpm install
# Set up environment variables
cp .env.example .env.local
# Add your OPENAI_API_KEY to .env.local
# Run the development server
pnpm devOpen http://localhost:3000 to start discovering agents.
The app uses:
- Vercel AI SDK - For streaming chat UI and tool calling
- @hol-org/ai-sdk-registry-broker - Provides tools for agent discovery:
searchAgents- Search for agents by query, protocol, or capabilityresolveAgent- Get detailed info about a specific agent by UAIDlistProtocols- List all supported protocolslistRegistries- List all indexed registriesgetStats- Get registry statistics
import { createRegistryBrokerTools } from '@hol-org/ai-sdk-registry-broker';
import { streamText, stepCountIs } from 'ai';
import { openai } from '@ai-sdk/openai';
const tools = createRegistryBrokerTools();
const result = streamText({
model: openai('gpt-4o-mini'),
messages,
tools,
stopWhen: stepCountIs(5),
});- "Find me an AI agent for code review"
- "Search for MCP servers that can help with file management"
- "What agents are available for research tasks?"
- "Find agents in the Virtuals protocol"
| Technology | Purpose |
|---|---|
| Next.js 16 | React framework with App Router |
| Vercel AI SDK v6 | AI streaming and tool calling |
| @hol-org/ai-sdk-registry-broker | Agent discovery tools |
| Tailwind CSS | Styling |
| OpenAI GPT-4o-mini | LLM |
| Variable | Description |
|---|---|
OPENAI_API_KEY |
Your OpenAI API key |
- Registry Broker Docs - API documentation
- Vercel AI SDK Docs - AI SDK documentation
- HOL Standards SDK - Full SDK
Apache 2.0
