Skip to main content

Vertical SDK

Preview

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​

PartWhat it does
ToolsThe actions agents can take in your domain, exposed as MCP tools with governance metadata
APIA typed API for your own screens and integrations
DataThe App's own database
ScreensPages shown inside MeetLoyd
Manifestmeetloyd.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',
})
)
OptionDescription
nameUnique tool name, prefixed with the App's name
descriptionWhat the tool does: agents read it to decide when to use it
parametersJSON Schema of the input
handler(args, context?): context carries the user, organisation, agent, team, workspace and conversation
categoryGroups tools in the App
requiresAuthOnly callable for an authenticated user
requiresApprovalA person must approve each call before it runs
requiredRolesRoles allowed to trigger it
rateLimit{ maxCalls, windowMs }
governanceData 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​

ExportUse
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, loadManifestRead and validate meetloyd.vertical.json

The manifest​

meetloyd.vertical.json sits at the root of the App:

FieldRequiredDescription
nameYesLowercase kebab-case identifier
displayName, descriptionYesHow the App is presented
versionYesSemantic version
scopeYesPackage scope of the App
meetloyd.minVersionYesOldest platform version the App supports
entryPointsNoPaths to the tools, MCP server, API, database schema, screens, knowledge base, skills and compliance extensions
capabilitiesYesAny of mcp-tools, mcp-server, mcp-apps, trpc-api, web-ui, prisma-db, compliance-extensions
categoriesYesDomain categories
compliance, regulatoryFrameworks, dataResidencyNoWhat 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