okta-mcp-server
Version:
Model Context Protocol (MCP) server for Okta API operations with support for bulk operations and caching
74 lines • 1.89 kB
TypeScript
import type { ServerConfig } from '../types/index.js';
import { Container } from './container.js';
import { EventBus } from './event-bus.js';
/**
* Core MCP Server for Okta operations
* Implements the Model Context Protocol with Okta integration
*/
export declare class OktaMCPServer {
private server;
private okta;
private cache;
private auditLogger;
private auditMiddleware;
private authMiddleware?;
private readOnlyMiddleware;
private container;
private eventBus;
private config;
constructor(config: ServerConfig);
initialize(): Promise<void>;
/**
* Initialize cache based on configuration
*/
private initializeCache;
/**
* Initialize audit logging system
*/
private initializeAudit;
/**
* Initialize simple auth middleware for MCP OAuth protection
*/
private initializeAuth;
/**
* Initialize read-only middleware for production safety
*/
private initializeReadOnlyMode;
/**
* Register services in the dependency injection container
*/
private registerServices;
/**
* Wrap request handler with auth validation
*/
private wrapWithAuth;
/**
* Register MCP request handlers
*/
private registerHandlers;
/**
* Register OAuth metadata endpoint for MCP OAuth discovery
*/
private registerOAuthMetadataEndpoint;
/**
* Dynamically load a resource handler
*/
private loadResourceHandler;
/**
* Start the server with stdio transport
*/
start(): Promise<void>;
/**
* Stop the server gracefully
*/
stop(): Promise<void>;
/**
* Get the event bus for external event handling
*/
getEventBus(): EventBus;
/**
* Get the dependency injection container
*/
getContainer(): Container;
}
//# sourceMappingURL=server.d.ts.map