@smart-grid/mcp-server
v1.2.0
Published
MCP server foundation for Smart Grid metadata and AI-assisted grid workflows.
Downloads
366
Maintainers
Readme
@smart-grid/mcp-server
Monorepo / npm release 1.2.0 (stable 1.x); depends on
@smart-grid/core ^1.2.0.
What's new in 1.2.0
- Aligns with core 1.2.0 feature matrix (column sizing, pinning, accessibility helpers). See CHANGELOG.md.
Small MCP-oriented helpers for Smart Grid: human-readable grid summaries, feature matrix introspection, default menu definitions, chart suggestions, and a createSmartGridMcpTools() manifest you can map to real MCP tool handlers. Built on @smart-grid/core. For browser grids, use @smart-grid/react, @smart-grid/angular, or @smart-grid/js instead.
Live demo & docs: https://smart-grid-mu.vercel.app/
This package does not start an MCP server by itself — it exports functions you call from your server process or test harness.
Install
npm install @smart-grid/mcp-serverUsage — describe a grid schema
import { describeGrid, type GridSchemaSummary } from "@smart-grid/mcp-server";
const schema: GridSchemaSummary = {
rowCount: 1_250,
columns: [
{ field: "orderId", headerName: "Order", sortable: true, filter: true },
{ field: "total", headerName: "Total", sortable: true }
]
};
console.log(describeGrid(schema));
// "Grid with 1250 rows and 2 columns: Order, Total."Usage — list community vs enterprise features
import { listSmartGridFeatures } from "@smart-grid/mcp-server";
const { communityFeatures, enterpriseFeatures, featureMatrix, featureSections } = listSmartGridFeatures();
console.log(communityFeatures.length, enterpriseFeatures.length, featureMatrix.length, featureSections.length);
// featureSections: same matrix rows grouped (Platform & data access, Analytics & modeling, Delivery & support).Usage — tool manifest for MCP
import { createSmartGridMcpTools } from "@smart-grid/mcp-server";
const tools = createSmartGridMcpTools();
// Map each `name` + `description` to your MCP server implementation,
// then delegate to suggestGridInsight, listGridMenus, etc.Other exports include suggestGridInsight, listGridMenus, and suggestChartTool — see src/index.ts.
Related packages
@smart-grid/core— full engine (re-exported from this package’s entry).@smart-grid/enterprise— optional licensing helpers.
Links
- Homepage / demo: smart-grid-mu.vercel.app
- Repository: github.com/rajkishorsahu89/smart-grid
- Issues: github.com/rajkishorsahu89/smart-grid/issues
