A functional-models-orm datastore provider that implements the Model Context Protocol (MCP) using @modelcontextprotocol/sdk (v3.7.1). Designed for frontend environments, it allows you to use functional-models ORM with MCP-compatible backends. This package wraps the ORM operations (CRUD, queries) as MCP tools, enabling seamless integration with MCP servers. Key differentiators: follows functional-models' functional paradigm, leverages MCP for standardized model access, and is specifically built for frontend usage where direct database access is limited. Release cadence is irregular; latest version 3.7.1.
npm install functional-models-orm-mcpNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating an MCP client, instantiating the provider, defining a model, and performing a create operation.
Pass a client object (from @modelcontextprotocol/sdk) instead of a connection URL.
Import createMCPClient from '@modelcontextprotocol/sdk/client/index.js' instead.
Use `import { MCPDatastoreProvider } from 'functional-models-orm-mcp'`.Ensure the MCP server is started and reachable before creating the provider.
Migrate to using the MCP client from the SDK.
Use `import { MCPDatastoreProvider } from 'functional-models-orm-mcp';`Ensure you call `await client.connect(transport)` before creating the provider.
Run `npm install @modelcontextprotocol/sdk`
Upgrade @modelcontextprotocol/sdk to version >=1.0.0