HiveTrail Logo HiveTrail

mcpaccess-core

HiveTrail

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.

Overview

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.

Key Features

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.

Who Should Use This

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.

Installation

npm install @hivetrail/mcpaccess-core

Configuration

const myConfigObj = {
  issuer: "https://issuer_website",
  client_name: "your_cleint_name"
}

License

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.

Like this package? Share it: