Tools
Turn application services into typed actions that AI clients can discover and call.
Create a tool
Build typed tools, resources, and prompts with the framework conventions you already know.
Keep dependency injection, authentication, Bouncer policies, and validation close to your domain. Adonis MCP handles discovery, protocol messages, and transport details.
import { Tool } from '@jrmc/adonis-mcp'
export default class GreetTool extends Tool {
name = 'greet'
description = 'Welcome a user'
async handle({ response }) {
return response.text('Welcome!')
}
}Discovers capabilities and sends standard MCP requests.
Routes, validates, authorizes, and formats every exchange.
Runs the application logic you already trust and maintain.
Install the package, register a route, and create your first tool.
node ace add @jrmc/adonis-mcpRead the installation guide