Plugin MCP Server
MCP Runtime Server Plugin for ObjectStack β exposes AI tools, data resources, and agent prompts via the Model Context Protocol
Ask AI about Plugin MCP Server
Powered by Claude Β· Grounded in docs
I know everything about Plugin MCP Server. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
ObjectStack Framework
A metadata-driven developer framework with microkernel runtime, CLI toolchain, official plugins, framework adapters, and Studio IDE β orchestrating ObjectQL, ObjectOS, and ObjectUI into a unified development experience.
What is ObjectStack?
ObjectStack is a metadata-driven platform built on a microkernel architecture and three protocol layers:
- ObjectQL (Data Layer) β Define objects, fields, queries, and relations as metadata
- ObjectOS (Control Layer) β Runtime, permissions, automation, and plugin lifecycle
- ObjectUI (View Layer) β Presentation metadata: apps, views, dashboards, and actions
All business logic is expressed as Zod schemas (1,600+ exported schemas across 200 schema files). The microkernel loads plugins and services at startup, enabling a fully composable and extensible stack with zero vendor lock-in.
See ARCHITECTURE.md for the full microkernel and layer architecture documentation.
Key Features
- Protocol-first β All schemas defined with Zod; TypeScript types are derived via
z.infer<> - Microkernel plugin system β DI container, EventBus, and lifecycle hooks (init β start β destroy)
- Multi-database support β In-memory, PostgreSQL, MySQL, SQLite, and Turso/libSQL drivers
- 7 framework adapters β Express, Fastify, Hono, NestJS, Next.js, Nuxt, SvelteKit
- Client SDK + React hooks β
useQuery,useMutation,usePaginationout of the box - Built-in authentication β better-auth via
plugin-auth - RBAC / RLS / FLS security β Role-based, row-level, and field-level access control
- Automation engine β DAG-based flows, triggers, and workflow management
- AI service β Agent, Tool, and Skill protocol built on the Vercel AI SDK
- Studio IDE β Web-based metadata explorer, schema inspector, and AI assistant
- CLI toolchain β
os init,os dev,os studio,os serve,os validate, and more
Quick Start
For Application Developers
# Create a new project
npx @objectstack/cli init my-app
cd my-app
# Start development server
os dev
# Open Studio IDE
os studio
# β API: http://localhost:3000/api/v1/
# β Studio: http://localhost:3000/_studio/
For Framework Contributors
# 1. Clone and install
git clone https://github.com/objectstack-ai/framework.git
cd framework
pnpm install
# 2. Build all packages
pnpm build
# 3. Run tests
pnpm test
# 4. Start Documentation site
pnpm docs:dev
# β http://localhost:3000/docs
Monorepo Scripts
| Script | Description |
|---|---|
pnpm build | Build all packages (excludes docs) |
pnpm dev | Start development server |
pnpm studio | Launch Studio IDE with dev server |
pnpm test | Run all tests |
pnpm doctor | Check environment health |
pnpm setup | Install dependencies and build spec |
pnpm docs:dev | Start documentation site locally |
pnpm docs:build | Build documentation for production |
CLI Commands
os init [name] # Scaffold a new project
os dev # Start dev server with hot-reload
os studio # Start dev server + Studio IDE
os serve # Start production server
os compile # Build deployable JSON artifact
os validate # Validate configuration against protocol
os info # Display metadata summary
os generate # Scaffold objects, views, and flows
os doctor # Check environment health
Package Directory
Core
| Package | Description |
|---|---|
@objectstack/spec | Protocol definitions β Zod schemas, TypeScript types, JSON Schemas, constants |
@objectstack/core | Microkernel runtime β Plugin system, DI container, EventBus, Logger |
@objectstack/types | Shared TypeScript type utilities |
Engine
| Package | Description |
|---|---|
@objectstack/objectql | ObjectQL query engine and schema registry |
@objectstack/runtime | Runtime bootstrap β DriverPlugin, AppPlugin |
@objectstack/metadata | Metadata loading and persistence |
@objectstack/rest | Auto-generated REST API layer |
Drivers
| Package | Description |
|---|---|
@objectstack/driver-memory | In-memory driver (development and testing) |
@objectstack/driver-sql | SQL driver β PostgreSQL, MySQL, SQLite (production) |
@objectstack/driver-turso | Turso/libSQL driver |
Client
| Package | Description |
|---|---|
@objectstack/client | Client SDK β CRUD, batch API, error handling |
@objectstack/client-react | React hooks β useQuery, useMutation, usePagination |
Plugins
| Package | Description |
|---|---|
@objectstack/plugin-hono-server | Hono-based HTTP server plugin |
@objectstack/plugin-mcp-server | Model Context Protocol server β exposes ObjectStack to AI agents |
@objectstack/plugin-msw | Mock Service Worker plugin for browser testing |
@objectstack/plugin-auth | Authentication plugin (better-auth) |
@objectstack/plugin-security | RBAC, Row-Level Security, Field-Level Security |
@objectstack/plugin-dev | Developer mode β in-memory stubs for all services |
@objectstack/plugin-audit | Audit logging plugin |
@objectstack/plugin-setup | First-run setup wizard |
Services
| Package | Description |
|---|---|
@objectstack/service-ai | AI service β Agent, Tool, Skill, Vercel AI SDK integration |
@objectstack/service-analytics | Analytics β aggregations, time series, funnels, dashboards |
@objectstack/service-automation | Automation engine β flows, triggers, DAG-based workflows |
@objectstack/service-cache | Cache β in-memory, Redis, multi-tier |
@objectstack/service-feed | Activity feed / chatter |
@objectstack/service-i18n | Internationalization service |
@objectstack/service-job | Cron & interval job scheduler |
@objectstack/service-package | Package registry β publish, version, retrieve metadata packages |
@objectstack/service-queue | Background job queue (in-memory, BullMQ) |
@objectstack/service-realtime | Real-time events and subscriptions |
@objectstack/service-storage | File storage (local, S3, R2, GCS) |
@objectstack/service-tenant | Multi-tenant context and routing |
Framework Adapters
| Package | Description |
|---|---|
@objectstack/express | Express adapter |
@objectstack/fastify | Fastify adapter |
@objectstack/hono | Hono adapter (Node.js, Bun, Deno, Cloudflare Workers) |
@objectstack/nestjs | NestJS module integration |
@objectstack/nextjs | Next.js App Router adapter |
@objectstack/nuxt | Nuxt adapter (h3-based) |
@objectstack/sveltekit | SvelteKit adapter |
Tools & Apps
| Package | Description |
|---|---|
@objectstack/cli | CLI β init, dev, serve, studio, compile, validate, generate |
create-objectstack | Project scaffolder (npx create-objectstack) |
objectstack-vscode | VS Code extension β autocomplete, validation, diagnostics |
@objectstack/studio | Studio IDE β metadata explorer, schema inspector, AI assistant |
@objectstack/docs | Documentation site (Fumadocs + Next.js) |
Examples
| Example | Description | Level |
|---|---|---|
@example/app-todo | Task management app β objects, views, dashboards, flows | Beginner |
@example/app-crm | Enterprise CRM β accounts, contacts, opportunities, leads | Intermediate |
@objectstack/objectos | ObjectOS Runtime β multi-app orchestration with plugins | Advanced |
Codebase Metrics
| Metric | Value |
|---|---|
| Packages | 42 |
| Zod schema files | 200 |
| Exported schemas | 1,600+ |
.describe() annotations | 8,750+ |
| Service contracts | 27 |
| Test files | 229 |
| Tests passing | 6,507 |
Architecture
ObjectStack uses a microkernel architecture where the kernel provides only the essential infrastructure (DI, EventBus, lifecycle), and all capabilities are delivered as plugins. The three protocol layers sit above the kernel:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β ObjectKernel (Core) β
β βββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Plugin Lifecycle Manager β β
β β β’ Dependency Resolution (Topological Sort) β β
β β β’ Init β Start β Destroy Phases β β
β βββββββββββββββββββββββββββββββββββββββββββββββββ β
β βββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Service Registry (DI Container) β β
β β β’ registerService(name, service) β β
β β β’ getService<T>(name): T β β
β βββββββββββββββββββββββββββββββββββββββββββββββββ β
β βββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Event Bus (Hook System) β β
β β β’ hook(name, handler) β β
β β β’ trigger(name, ...args) β β
β βββββββββββββββββββββββββββββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βββββββββββ΄ββββββββββ¬βββββββββββ¬βββββββββββ
β β β β
βββββΌβββββ βββββββββΌβββ ββββΌββββ βββββΌβββββ
βObjectQLβ β Driver β β Hono β β App β
β Plugin β β Plugin β βServerβ β Plugin β
ββββββββββ ββββββββββββ ββββββββ ββββββββββ
See ARCHITECTURE.md for the complete design documentation including the plugin lifecycle state machine, dependency graph, and design decisions.
Roadmap
See ROADMAP.md for the planned phases covering runtime hardening, framework adapter completion, developer experience improvements, performance optimization, and security hardening.
Studio-specific roadmap: apps/studio/ROADMAP.md
Contributing
We welcome contributions. Please read CONTRIBUTING.md for the development workflow, coding standards, testing requirements, and documentation guidelines.
Key standards:
- Zod-first β all schemas start with Zod; TypeScript types are derived via
z.infer<> - camelCase for configuration keys (e.g.,
maxLength,defaultValue) - snake_case for machine names / data values (e.g.,
project_task,first_name)
Documentation
Full documentation: https://docs.objectstack.ai
Run locally: pnpm docs:dev
License
Apache 2.0 Β© ObjectStack
