Vertical SDK
This capability is in preview. Ask your MeetLoyd contact to enable it for your organisation.
An App on MeetLoyd (such as the CRM or the Support app) is a domain application that agents can use: its own tools, its own data and its own screens, governed like everything else on the platform. The Vertical SDK (@meetloyd/vertical-sdk) is the toolkit Apps are built with.
Apps are built together with MeetLoyd today. You can develop with the SDK, and MeetLoyd reviews and publishes every App that runs on the platform. If you want to build one, start with your MeetLoyd contact.
What an App is made of
| Part | What it does |
|---|---|
| Tools | The actions agents can take in your domain, exposed as MCP tools with governance metadata |
| API | A typed API for your own screens and integrations |
| Data | The App's own database |
| Screens | Pages shown inside MeetLoyd |
| Manifest | meetloyd.vertical.json, which declares all of the above |
Define tools
import { defineTool, createToolRegistry } from '@meetloyd/vertical-sdk'
const registry = createToolRegistry('claims')
registry.register(
defineTool({
name: 'claims_file_new',
description: 'File a new insurance claim',
parameters: {
type: 'object',
properties: {
policyNumber: { type: 'string', description: 'Policy number' },
description: { type: 'string', description: 'What happened' },
amount: { type: 'number', description: 'Claimed amount' },
},
required: ['policyNumber', 'description'],
},
handler: async (args, context) => ({ claimId: 'CLM-001', status: 'filed' }),
category: 'claims',
})
)
| Option | Description |
|---|---|
name | Unique tool name, prefixed with the App's name |
description | What the tool does: agents read it to decide when to use it |
parameters | JSON Schema of the input |
handler | (args, context?): context carries the user, organisation, agent, team, workspace and conversation |
category | Groups tools in the App |
requiresAuth | Only callable for an authenticated user |
requiresApproval | A person must approve each call before it runs |
requiredRoles | Roles allowed to trigger it |
rateLimit | { maxCalls, windowMs } |
governance | Data classification, audit level and compliance frameworks |
The registry offers register, registerAll, get, getAll, getByCategory and execution helpers.
Governance on a tool
defineTool({
name: 'claims_approve_payout',
description: 'Approve a claim payout',
requiresApproval: true,
requiredRoles: ['claims_manager'],
rateLimit: { maxCalls: 10, windowMs: 3_600_000 },
governance: {
dataClassification: 'confidential',
auditLevel: 'full',
complianceFrameworks: ['Solvency II', 'GDPR'],
},
// parameters, handler…
})
Define the App
import { defineVertical } from '@meetloyd/vertical-sdk'
import { claimsTools } from './tools/index.js'
export default defineVertical({
name: 'claims',
displayName: 'Claims Management',
description: 'Insurance claims processing',
version: '0.1.0',
scope: '@meetloyd/claims',
categories: ['insurance', 'claims'],
tools: claimsTools,
})
Optional fields include compliance, regulated, regulatoryFrameworks and dataResidency.
Other helpers
| Export | Use |
|---|---|
createMCPServer(options) | Run the App's tools as a standalone MCP server, for local development |
createVerticalTRPC() | A typed API with publicProcedure and protectedProcedure (the latter requires a signed-in user) |
createPrismaSingleton(key, factory) | One database client per process, even with hot reload |
defineWebModule(...) | Declare the App's screens, navigation and theme |
verticalManifestSchema, loadManifest | Read and validate meetloyd.vertical.json |
The manifest
meetloyd.vertical.json sits at the root of the App:
| Field | Required | Description |
|---|---|---|
name | Yes | Lowercase kebab-case identifier |
displayName, description | Yes | How the App is presented |
version | Yes | Semantic version |
scope | Yes | Package scope of the App |
meetloyd.minVersion | Yes | Oldest platform version the App supports |
entryPoints | No | Paths to the tools, MCP server, API, database schema, screens, knowledge base, skills and compliance extensions |
capabilities | Yes | Any of mcp-tools, mcp-server, mcp-apps, trpc-api, web-ui, prisma-db, compliance-extensions |
categories | Yes | Domain categories |
compliance, regulatoryFrameworks, dataResidency | No | What the App is built to comply with |
- MCP: how agents use tools
- Custom tools: add tools without building an App
- Apps: the Apps available today