@dinko/adonis-mcp
Provides OAuth 2.1 authorization server and MCP server integration for AdonisJS applications, enabling them to authenticate clients, issue access tokens, manage consent screens, and expose MCP endpoints as protected resources.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@dinko/adonis-mcpSet up MCP with OAuth protection for my Adonis app."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
adonis-oauth-mcp
OAuth 2.1 and MCP building blocks for AdonisJS v7 applications.
Both packages require Node.js 24 or newer and are designed for AdonisJS v7.
Package | Owns |
OAuth 2.1 authorization server: approve / deny / token, redirect-URI validation, authorization-code storage, and the discovery metadata for the server and its protected resources. Knows nothing about MCP. | |
MCP server: Streamable HTTP transport, per-request tools, a dedicated access-token guard, and optional OAuth protected-resource scaffolding. |
The packages do not import each other at runtime. The optional integration runs in one direction: when MCP is configured after OAuth, it creates and registers the OAuth protected resource it needs. OAuth knows nothing about MCP.
Install both
Configure OAuth first so MCP can detect it and wire discovery and token issuing:
npm install @dinko/adonis-oauth
node ace configure @dinko/adonis-oauth
npm install @dinko/adonis-mcp
node ace configure @dinko/adonis-mcp
node ace migration:runThe MCP package expects an application using the @adonisjs/auth access-tokens
guard and its auth_access_tokens migration. See each package README for the
generated files and the application decisions left to you.
Related MCP server: OAuth MCP Server
Layout
Each package follows the AdonisJS package convention:
index.ts re-exports `configure` and `stubsRoot` (what `node ace configure` imports)
configure.ts the configure hook, driving codemods and stubs
commands/ ace commands, indexed into commands.json at build time
stubs/ .stub templates rendered into the target app
src/ runtime code the app imports
providers/ service providers registered by the configure hook
services/ container services, for code that cannot use dependency injection
tests/ node:test suites, run against build/Development
npm install
npm run build # tsc, stubs and the command index, per package
npm run typecheck
npm test # runs against build/, so build firstTo try a package in a real application, pack it and install the tarball. Pack and configure OAuth before MCP when testing their integration:
cd packages/oauth
npm run build
npm pack
cd ../mcp
npm run build
npm pack
cd ../../../my-app
npm i ../adonis-oauth-mcp/packages/oauth/dinko-adonis-oauth-0.1.0.tgz
node ace configure @dinko/adonis-oauth
npm i ../adonis-oauth-mcp/packages/mcp/dinko-adonis-mcp-0.1.0.tgz
node ace configure @dinko/adonis-mcpNot npm link or a file: dependency. Both symlink the package, and Node then
resolves its imports from this checkout, where @adonisjs/core is installed as
a devDependency. The application would end up with two copies of the framework,
and two different HttpContext classes — which breaks dependency injection,
since the container matches by class identity.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Self-hosted federated MCP gateway: one OAuth 2.1 MCP server in front of N apps, user-level scopes.
MCP server for verifying EUDI/Talao wallet data via OIDC4VP (pull) for AI agents.
Hosted MCP server with managed OAuth for 15+ toolkits: Google Workspace, Fitbit, Oura, Kalshi, etc.
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA self-hostable OAuth 2.0 server designed for the Model-Context-Protocol (MCP) that enables you to secure your MCP applications with a robust implementation you control.3,607112ISC
- FlicenseNot gradedqualityDmaintenanceA complete OAuth 2.1 server implementation for FastMCP with PKCE support, enabling secure authentication and authorization flows. Provides authorization code exchange, token management, and refresh capabilities for building authenticated MCP applications.
- AlicenseNot gradedqualityDmaintenanceDrop-in OAuth 2.1 + Dynamic Client Registration for MCP servers, providing authentication middleware and token verification.20MIT
- AlicenseNot gradedqualityCmaintenanceImplements an MCP server with OAuth 2.1 Protected Resource Metadata, enabling token-based authentication for MCP tools like ping.MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Dyoma3/adonis-oauth-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server