Files
modelruimte/README.md
robbertjanssen85andClaude Opus 4.7 5a16cb4c06 Add REST API, MCP server, OpenAPI/ReDoc docs, and client connect page
- /api/v1/* REST endpoints: health, model catalog (vehicles, functions,
  distributions, profiles, defaults), and simulate. Accepts functionCounts
  and/or functionBvoM2 (auto-converted via DEFAULT_BVO_PER_UNIT). Runs 2500
  Monte Carlo iterations by default; response adds a labeled `summary`
  (totalLengthM, totalAreaM2, per-vehicle + per-cluster) alongside the raw
  SimulationResult.
- /api/mcp Streamable-HTTP MCP endpoint (hand-rolled JSON-RPC 2.0, no new
  deps). Tools: get_model_info, list_vehicles/functions/distributions,
  get_delivery_profile, run_simulation.
- /api/v1/openapi.json + /api-docs: OpenAPI 3.0.3 spec rendered with ReDoc,
  themed to DMI palette + IBM Plex typography, DMI logo in the sidebar.
- /mcp-connect: DMI-styled page with copy-paste config blocks for Claude
  Code, Claude Desktop, Cursor, Codex CLI, Windsurf, and VS Code. MCP URL
  substituted from window.location.origin.
- Cover page gets an "Integraties" section with pill buttons linking to
  API-referentie and MCP instellen.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-23 14:52:51 +02:00

1.8 KiB

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

External integrations

  • REST API — see docs/API.md. JSON endpoints under /api/v1/* for model metadata and running simulations.
  • OpenAPI spec — machine-readable at /api/v1/openapi.json; human-readable ReDoc view at /api-docs.
  • MCP server — see docs/MCP.md. Model Context Protocol endpoint at /api/mcp for AI agents.

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.