Exports Reference
Complete list of all exports from @mcpkit-dev/core.
Decorators
import {
// Class decorators
MCPServer,
// Method decorators
Tool,
Resource,
Prompt,
RequireAuth,
Traced,
Monitor,
Debug,
// Parameter decorators
Param,
// Factory functions
createServer,
} from '@mcpkit-dev/core';
Server Functions
import {
// Bootstrap
bootstrap,
listen,
// Composition
compose,
// Gateway
createGateway,
MCPGateway,
} from '@mcpkit-dev/core';
Middleware
import {
// Built-in middleware
cors,
requestLogger,
errorHandler,
// Rate limiting
rateLimiter,
createRateLimiter,
slidingWindowLimiter,
tokenBucketLimiter,
// Auth helpers
bearerAuth,
basicAuth,
apiKeyAuth,
} from '@mcpkit-dev/core';
Plugins
import {
// Plugin types
Plugin,
// Built-in plugins
metricsPlugin,
healthPlugin,
tracingPlugin,
corsPlugin,
rateLimitPlugin,
} from '@mcpkit-dev/core';
Observability
import {
// Metrics
createMetricsCollector,
MetricsCollector,
// Tracing
createTracer,
setGlobalTracer,
getGlobalTracer,
consoleExporter,
Tracer,
Span,
// Health
HealthCheck,
HealthCheckResult,
} from '@mcpkit-dev/core';
Authentication
import {
// Auth context
AuthContext,
createAuthContext,
withAuthContext,
setAuthContext,
getAuthContext,
// Errors
AuthorizationError,
} from '@mcpkit-dev/core';
Types
import type {
// Server types
ListenOptions,
BootstrappedServer,
ServerHooks,
MCPServerInstance,
WithMCPServer,
// Middleware types
MiddlewareContext,
Middleware,
NextFunction,
// Plugin types
PluginContext,
// Gateway types
GatewayOptions,
UpstreamServer,
LoadBalanceStrategy,
// Observability types
SpanKind,
SpanStatusCode,
SpanAttributes,
SpanEvent,
} from '@mcpkit-dev/core';
Testing Utilities
import {
createTestClient,
createMockServer,
TestClient,
} from '@mcpkit-dev/testing';
CLI
# Create new project
npx @mcpkit-dev/cli create my-server
# Generate components
npx @mcpkit-dev/cli generate tool my-tool
npx @mcpkit-dev/cli generate resource my-resource
npx @mcpkit-dev/cli generate prompt my-prompt