Skip to content

Architecture Overview

This section provides detailed technical documentation of Seed's internal architecture.

System Design

Seed is built as an Express-based HTTP server with middleware-driven authentication and MCP protocol implementation.

Core Components

  • Authentication Middleware - JWT validation on all requests except public paths
  • JWKS Service - JSON Web Key Set management with caching
  • OAuth Proxy - OAuth 2.1 implementation with PKCE support
  • MCP Server - Model Context Protocol implementation using @modelcontextprotocol/sdk
  • Client Store - Redis-backed storage for registered clients
  • Session Management - UUID-based session tracking

Technology Stack

ComponentTechnologyPurpose
RuntimeNode.js 24+JavaScript runtime
LanguageTypeScriptType safety and developer experience
FrameworkExpress 5.xHTTP server
MCP SDK@modelcontextprotocol/sdkMCP protocol implementation
JWTjoseJWT validation and JWKS handling
StorageioredisRedis client for sessions and DCR
TestingVitestUnit and integration testing

Project Structure

src/
├── config/          # Configuration management
├── middleware/      # Express middleware (auth)
├── mcp/            # MCP server and tools
├── routes/         # HTTP route handlers
├── services/       # Business logic (JWKS, Redis, etc.)
└── types/          # TypeScript type definitions

Explore Further

Released under the MIT License.