-->
Core library for Model Context Protocol (MCP) access control — foundational types, interfaces, and utilities to implement authentication and authorization consistently across MCP tools, resources, and prompts.
mcpaccess-core provides the building blocks needed to create secure MCP servers by defining standard contracts and helpers for managing user identity, roles, and permissions. This package is framework-agnostic and designed to be used as the base layer for MCP security implementations.
Standard TypeScript interfaces for MCP authentication and authorization data structures.
Utility functions to simplify access checks and role validation.
Abstracted contracts to support multiple authentication providers and middleware integrations.
Lightweight and dependency-free core package ideal for custom MCP server builds.
This package is aimed at developers building or extending MCP servers who want a consistent and reusable foundation for managing secure access without locking into a specific authentication provider or framework.
npm install @hivetrail/mcpaccess-core
const myConfigObj = {
issuer: "https://issuer_website",
client_name: "your_cleint_name"
}
This package is free to use for any purpose (including commercial), but you may not modify, redistribute, or create derivative works without prior written permission.