Agent Name Service banner
ruvnet ruvnet

Agent Name Service

Security community

Description

Agent Name Service (ANS) Protocol, introduced by the OWASP GenAI Security Project, is a foundational framework designed to facilitate secure discovery and interaction among AI agents.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

Agent Name Service (ANS)

A secure registry for AI agents based on the [OWASP GenAI Security Project's](https://genai.owasp.org/) Agent Name Service (ANS) Protocol. ANS provides a foundational framework for secure discovery and interaction among AI agents.

Overview

The Agent Name Service is a centralized registry that enables:

  • Agent Registration: Securely register AI agents with unique identifiers and capabilities
  • Certificate Management: Issue and validate agent certificates for secure communications
  • Discovery: Resolve agent information in both A2A and MCP formats
  • Security Analysis: Integrate with Mastra.ai for threat modeling and security assessment

ANS bridges the gap between different agent communication protocols, allowing seamless interoperability between agents using Google's Agent-to-Agent (A2A) protocol and Anthropic's Model Context Protocol (MCP).

Features

  • Secure Registration: Register agents with unique names and capabilities with certificate generation
  • Multi-Protocol Support: Resolve agents in both A2A and MCP protocol formats
  • Integrated Threat Analysis: Security analysis using Mastra.ai integration
  • Lightweight Storage: SQLite persistence layer for easy deployment
  • Modular Architecture: Clean separation of concerns for extensibility

Installation

# Clone the repository
git clone https://github.com/yourusername/agent-name-service.git
cd agent-name-service

# Install dependencies
npm install

Usage

Basic Initialization

import { AgentNamingService } from './src/ans';

// Initialize the ANS service
const ans = new AgentNamingService();

Registering an Agent

// Register an agent
const result = await ans.registerAgent('my-agent', {
  version: '1.0.0',
  capabilities: ['text-generation', 'summarization'],
  description: 'AI assistant for content creation',
  provider: 'OpenAI',
  model: 'gpt-4',
  endpoints: [
    {
      protocol: 'ht