cesarliws/dext

Dext - Modern Full Stack Framework for Delphi

307 ★53 forksPascalUpdated 1d ago

What you need to know

Full-stack framework for Delphi (modern .NET/ASP.NET Core-style development) that ships a native, integrated MCP server as one of its modules — expose your Delphi enterprise logic and queries directly as AI tools over HTTP Streamable Sessions for agents like Claude, Cursor, or Antigravity. Currently Version 1 Release Candidate (RC2).

Install

tms install cesarliws.dext (TMS Smart Setup, GUI or CLI)
Manual install: compile with Delphi IDE, configure paths via Dext.inc, install design-time packages
Requires Delphi 10.3 Rio or higher (full support 10.4, 11, 12 Athens; compilable on 10.1 Berlin with limitations)

Usage

  • Annotate a class with [MCPTool('search_products', 'Search active products with price filters')] and [MCPParam('query', ...)] to expose it as an AI-callable tool
  • Build the app and the embedded MCP server is served over HTTP Streamable Sessions for AI assistants
  • Use WebApplication with Minimal APIs / Controllers / [DataApi] attributes for the REST side

Key features

  • Native MCP server built into the framework (claimed first framework with native MCP support) — expose Delphi business logic as tools for AI agents
  • Dependency Injection, ORM (EF Core-style: DbContext, change tracking, JSON columns, lazy/eager loading), strongly-typed AST-based queries
  • Web pipeline: embedded HTTP server, Minimal APIs, Controllers, [DataApi] zero-code REST CRUD with OpenAPI/Swagger, WebSockets, HTTP/2 framing, HTMX support
  • Fluent async tasks replacing TThread, cancellation tokens, async REST client
  • VCL design-time support (TEntityDataSet) with live database preview in the IDE; CQRS stored procedures; built-in visual telemetry dashboard

Best for

Delphi teams modernizing legacy VCL/FMX systems who want .NET/EF-Core-style patterns plus the ability to expose business logic to AI agents without leaving Delphi

Caveats

  • Not a standalone MCP server — it is a Delphi framework with MCP as an embedded module
  • Currently in Version 1 Release Candidate (RC2), not yet final
  • HTTP transport uses Indy components (included in Delphi, subject to future replacement)
  • Exposing MCP tools targets AI agents like Claude, Cursor, or Antigravity — no other MCP client specifics listed
Platforms: Windows (Delphi IDE) · Cross-platform compiled targetsClients: Claude · Cursor · Antigravity
Documentation ↗

Reviewed 2026-08-07

Topics

async-taskschannelsdata-apidelphidependency-injectionentity-frameworkfull-stackhtmxlock-freemcp-serverminimal-apimodel-context-protocolobject-pascalormpascalrest-apiscaffoldingsimdssrzero-allocation
View on GitHub ↗
Stars
307★
Forks
53
Language
Pascal
License
Apache-2.0
Created
2025-11-19
Last push
2026-08-06