Import
import {
buildFormElicitation,
buildUrlElicitation,
createMCPServer,
registerPrompt,
registerResource,
registerTool,
} from "veryfront/mcp";Examples
import { createMCPServer } from "veryfront/mcp";
import { tool } from "veryfront/tool";
import { defineSchema } from "veryfront/schemas";
// Tools auto-register with MCP when defined
tool({
id: "search",
description: "Search docs",
inputSchema: defineSchema((v) => v.object({ query: v.string() }))(),
execute: async ({ query }) => ({ results: [] }),
});
// Start MCP server - registered tools are exposed automatically.
// `auth` is required: use bearer for production, or the explicit
// `{ type: "none", allowUnauthenticated: true }` opt-in for local dev only.
const server = createMCPServer({
enabled: true,
auth: { type: "none", allowUnauthenticated: true },
});API
createMCPServer(config)
Create mcpserver.
Returns: MCPServer