Skip to main content
Glama
Dyoma3

@dinko/adonis-mcp

by Dyoma3

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

@dinko/adonis-oauth

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.

@dinko/adonis-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:run

The 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 first

To 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-mcp

Not 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.

Maintenance

ActivityMaintained
ResponsivenessNo issues

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

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    A 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,607
    112
    ISC
  • F
    license
    Not graded
    quality
    D
    maintenance
    A 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.
  • A
    license
    Not graded
    quality
    D
    maintenance
    Drop-in OAuth 2.1 + Dynamic Client Registration for MCP servers, providing authentication middleware and token verification.
    20
    MIT

Latest Blog Posts

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