
Research
/Security News
737 Chrome VPN Extensions Linked to Brand Impersonation and Browser Traffic Redirection
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.
@asterpay/agent-ready
Advanced tools
Make any API AI-agent discoverable in one line. Generates robots.txt, llms.txt, agent.json, MCP endpoint, scanner filter, and CORS presets.
Make any API AI-agent discoverable in one line.
agent-ready auto-generates everything AI agents need to find and use your API:
robots.txt — welcomes AI crawlers (GPTBot, ClaudeBot, etc.)llms.txt — human-readable endpoint catalogagent.json — A2A agent card at /.well-known/agent.json/.well-known/mcp/server-card.jsonPOST /mcpWorks with Fastify, Express, and Next.js.
npm install @asterpay/agent-ready
import Fastify from 'fastify';
import { agentReady } from '@asterpay/agent-ready';
const app = Fastify();
await app.register(agentReady, {
name: 'My API',
description: 'Weather data for AI agents',
baseUrl: 'https://api.example.com',
endpoints: [
{
path: '/v1/weather',
method: 'GET',
description: 'Get current weather by city',
free: true,
params: {
city: { type: 'string', required: true, description: 'City name' },
},
},
],
});
await app.listen({ port: 3000 });
import express from 'express';
import { agentReadyExpress } from '@asterpay/agent-ready/express';
const app = express();
app.use(express.json());
app.use(agentReadyExpress({
name: 'My API',
description: 'Weather data for AI agents',
baseUrl: 'https://api.example.com',
endpoints: [
{
path: '/v1/weather',
method: 'GET',
description: 'Get current weather by city',
free: true,
},
],
}));
app.listen(3000);
// app/robots.txt/route.ts
import { createAgentReadyHandlers } from '@asterpay/agent-ready/nextjs';
const config = {
name: 'My API',
description: 'Weather data for AI agents',
baseUrl: 'https://api.example.com',
endpoints: [
{ path: '/api/weather', method: 'GET' as const, description: 'Get weather', free: true },
],
};
const handlers = createAgentReadyHandlers(config);
export const GET = () => handlers.robotsTxt();
// app/llms.txt/route.ts → export const GET = () => handlers.llmsTxt();
// app/.well-known/agent.json/route.ts → export const GET = () => handlers.agentJson();
// app/mcp/route.ts → export const POST = (req) => handlers.mcpEndpoint(req);
// app/health/route.ts → export const GET = () => handlers.health();
interface AgentReadyConfig {
name: string; // API name
description: string; // What your API does
baseUrl: string; // Public URL
endpoints: EndpointConfig[]; // Your API endpoints
// Optional
provider?: { name: string; url?: string; email?: string; organization?: string };
version?: string;
documentationUrl?: string;
protocols?: string[]; // e.g. ['x402', 'mpp']
chains?: string[]; // e.g. ['base', 'ethereum']
tokens?: string[]; // e.g. ['USDC']
features?: {
robotsTxt?: boolean; // default: true
llmsTxt?: boolean; // default: true
agentJson?: boolean; // default: true
mcpEndpoint?: boolean; // default: true
mcpServerCard?: boolean; // default: true
scannerFilter?: boolean; // default: true
corsPreset?: boolean; // default: true
healthCheck?: boolean; // default: true
};
payment?: {
x402?: boolean;
settlement?: 'EUR' | 'USD' | 'GBP';
};
scannerFilter?: {
additionalUAs?: string[];
additionalPaths?: string[];
onScannerDetected?: (ua: string, path: string) => void;
};
}
Each endpoint describes one route of your API:
{
path: '/v1/kya/score',
method: 'GET',
description: 'Get AI agent trust score',
free: true, // free = no payment required
price: 0.01, // USD per call (for paid endpoints)
params: {
wallet: { type: 'string', required: true, description: 'Agent wallet address' },
},
}
Automatically detects vulnerability scanners by user-agent and request path. Add custom rules:
app.use(agentReadyExpress({
// ...config
scannerFilter: {
additionalUAs: ['my-internal-bot'],
additionalPaths: ['/admin'],
onScannerDetected: (ua, path) => {
console.log(`Blocked scanner: ${ua} at ${path}`);
},
},
}));
Access req.isScanner in downstream handlers to conditionally handle scanner traffic.
Use generators individually without the full middleware:
import {
generateRobotsTxt,
generateLlmsTxt,
generateAgentJson,
generateMcpServerCard,
handleMcpRequest,
isScannerUA,
isScannerPath,
getCorsPreset,
getHelmetPreset,
} from '@asterpay/agent-ready';
After adding agent-ready, your API serves:
| Path | Description |
|---|---|
GET /robots.txt | Welcomes AI crawlers |
GET /llms.txt | Endpoint catalog |
GET /.well-known/agent.json | A2A agent card |
GET /.well-known/mcp/server-card.json | MCP server card |
POST /mcp | MCP JSON-RPC 2.0 |
GET /health | Health check |
MIT
FAQs
Make any API AI-agent discoverable in one line. Generates robots.txt, llms.txt, agent.json, MCP endpoint, scanner filter, and CORS presets.
The npm package @asterpay/agent-ready receives a total of 8 weekly downloads. As such, @asterpay/agent-ready popularity was classified as not popular.
We found that @asterpay/agent-ready demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.