@himorishige/hatago-core
@himorishige/hatago-core
Section titled “@himorishige/hatago-core”Core types and protocol definitions for Hatago MCP Hub.
Overview
Section titled “Overview”This package provides pure type definitions with no side effects. All implementations should depend on these core types.
Installation
Section titled “Installation”npm install @himorishige/hatago-core
Dependency Direction
Section titled “Dependency Direction”The dependency flow must be strictly maintained:
core → runtime → transport → server → mcp-hub
Contents
Section titled “Contents”- Types: Core type definitions for connections, sessions, and registries
- Errors: Error codes and severity levels
- Events: Event contracts for server lifecycle, discovery, and sessions
- Protocol: MCP protocol definitions and constants
import { ErrorCode, ConnectionType, EventName } from '@himorishige/hatago-core';
// Use types in your implementationconst connectionType: ConnectionType = 'local';
License
Section titled “License”MIT