createChart
Create and prove a chart
Select, validate, diagnose, render, and prove a static-data Semiotic chart. This is the default public workflow.
data必填propsthemeintentaudiencecomponentfieldRolesidentifiers
io.github.nteract由 GitHub 帳號 nteract 發布v3.13.3更新於 Oct 30, 2026
Verified React chart generation: select, validate, repair, render, and inspect charts through MCP.
Semiotic 的 MCP 伺服器讓助理挑選、驗證、算繪並稽核 React 圖表設定,回傳 SVG 與算繪證據。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/io.github.nteract%2Fsemiotic/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"semiotic": {
"type": "http",
"url": "https://semiotic-mcp-server-481507046413.us-west1.run.app/mcp"
}
}
}[CI] [npm version] [TypeScript] [MseeP.ai Security Assessment Badge]
A React data visualization library designed for AI-assisted development and streaming data.
Start with a small chart component. Add network graphs, streaming data and coordinated views when the task needs them. Structured schemas, diagnostics and rendering evidence help coding assistants implement, check and repair chart configurations.
Work through a complete task: check category totals, maintain a live chart, or correct a published chart. The source task packets identify their build and evidence scope; source availability does not establish installed or deployed parity.
[Semiotic release dashboard showing chart count, bundle sizes, capability coverage, chart families, and documentation growth]3.13.3 improves streaming chart suggestions with field cardinality, additivity, and schema warnings, and adds count aggregation for realtime histograms. Streaming charts preserve extents, hover detail, and keyboard focus as data changes. Pie, donut, and network charts use more of their available space, with matching server rendering. This release also improves chart error recovery, legend fitting, heatmap colors, and compositional routing.
See the changelog for the complete fixes and additions.
Semiotic is a data visualization library for React that combines broad chart coverage with AI tooling. It supports network graphs, streaming data, statistical distributions and coordinated views, with schemas, examples and diagnostics for implementing and checking each task. Check the project's existing dependencies first: extending its current charting library may be the best fit for a small change.
Semiotic provides a workflow for generating, checking and repairing chart configurations. The July 27, 2026 evaluation reports model- and task-specific results; it does not guarantee first-try correctness.
semiotic/ai — a single import with the schema-backed chart capability catalog (XY, ordinal, network, realtime, geo, value, and portable recipes), optimized for LLM code generation. See ai/surface-manifest.json for the generated current inventory. Named imports now tree-shake across published chunks. Prefer family subpaths (semiotic/xy, semiotic/geo, semiotic/value, …) in production code to keep the intended chart family explicit; the cold-consumer table below reports initial-load and on-demand costs.ai/schema.json — machine-readable prop schemas for every componentnpx -y -p semiotic semiotic-mcp — an MCP server for tool-based chart rendering in any MCP clientnpx -p semiotic semiotic-ai --doctor — validate component + props JSON from the command line with typo suggestions and anti-pattern detectiondiagnoseConfig(component, props) — programmatic anti-pattern detector with actionable fixes, spanning validation, encoding, accessibility, and misleading-design (deception) checksauditData(component, props, data?) — chart-aware numeric preflight for inputs that pass schema validation but break the math: non-finite values, zero-span domains, invalid log inputs, negative size geometry, unsafe normalized totals, and scale-dominating outliers. Returns bounded row evidence and flows into diagnoseConfig, Chart Clinic, CLI doctor, and opt-in ChartContainer notificationsAGENTS.md — concise repository workflow shared by modern coding agents;
CLAUDE.md imports it and Copilot receives a short compatibility bridgeai/reference.md — complete on-demand product reference, kept out of
always-loaded coding-agent contextllms.txt — machine-readable documentation following the emerging standardEvery chart includes a built-in error boundary, dev-mode validation
warnings with typo suggestions, and accessibility features (canvas
aria-label, keyboard-navigable legends, keyboard live-region announcements, SVG
<title>/<desc>) so AI-generated code fails gracefully with
actionable diagnostics instead of a blank screen.
The European Accessibility Act has applied to covered products and services since 28 June 2025. A chart library cannot certify an application's legal compliance: scope, content, surrounding controls, testing, and national enforcement remain the application owner's responsibility. Semiotic supplies testable infrastructure for that work: keyboard interaction, accessible data tables, layered descriptions, structured navigation, reduced-motion and forced-colors paths, and WCAG-derived contrast tests for shipped theme presets. See the Accessibility docs and run the application's own assistive-technology and user testing.
Network visualization. Force-directed graphs, Sankey diagrams, chord diagrams, tree layouts, treemaps, circle packing, and orbit diagrams — all as React components with the same prop API as LineChart.
Streaming data. Realtime charts render on canvas at 60fps with a ref-based push API. Rapid network edge pushes coalesce into one layout per animation frame, while read/mutation methods preserve synchronous read-after-write semantics. Built-in decay, pulse, and staleness encoding for monitoring dashboards.
Coordinated views. LinkedCharts provides hover cross-highlighting,
brush cross-filtering, coordinate-based linked crosshairs, and selection
synchronization across any combination of chart types through shared selection state.
Geographic visualization. Choropleth maps, proportional symbol maps, flow maps with animated particles, and distance cartograms — all canvas-rendered with d3-geo projections, zoom/pan, tile basemaps, and drag-rotate globe spinning.
Statistical summaries. Box plots, violin plots, swarm plots, histograms, LOESS smoothing, forecast with confidence envelopes, and anomaly detection. Marginal distribution graphics on scatterplot axes with a single prop.
First-class annotations. Annotations are data-bound objects, not post-hoc artwork. Labels, callouts, thresholds, enclosures, statistical overlays, and React widgets move with the chart and render through browser, SSR, and export paths. Opt into placement, hierarchy, density, progressive disclosure, audience-aware amount, provenance, and editorial lifecycle when the chart needs to communicate more than its encoding alone.
Chart HOCs register only the mark plugins they need. Direct StreamXYFrame
loads the remaining built-ins on first client paint. Call
registerBuiltInXYPlugins() from semiotic/xy or semiotic/realtime/core
before the first render when SSR or the first frame must include marks.
Every Chart component accepts a frameProps prop to access the underlying
Frame API without leaving the simpler interface.
Charts serialize to JSON and back: toConfig, fromConfig, toURL,
copyConfig, configToJSX. Have Vega-Lite specs? fromVegaLite(spec)
translates them to Semiotic configs — works with configToJSX() for
full round-trip from notebooks and AI-generated specs.
Need an external pitfall review? The experimental unstable_toDataPitfallsChain() builds a
dependency-free chain input for datapitfalls,
combining the Semiotic config, JSX, reader grounding, diagnostics,
accessibility audit, and optional rendered SVG/image evidence:
The return path stays dependency-free too. Use whole-chart findings as
ChartContainer notifications, and only turn findings into annotations after
your app can anchor them to marks or semantic positions:
Need a standard bar or line chart for a dashboard you'll never need to customize beyond colors and labels? Recharts has a larger ecosystem and more community examples. Need GPU-accelerated rendering for millions of data points? Apache ECharts handles that scale.
Semiotic is for projects that outgrow those libraries — when you need network graphs alongside time series, streaming data alongside static snapshots, or coordinated views across chart types.
Requires React 18.1+ or React 19.
Hover one chart and highlight the same data in another through a shared selection:
Live data fades old points, flashes new ones, flags stale feeds:
Force-directed graphs and Sankey diagrams — same API as LineChart:
Choropleth maps, flow maps, and distance cartograms with canvas rendering, zoom/pan, tile basemaps, and animated particles:
Live service topology with threshold alerting and click-to-inspect:
Line, bar, scatter, and area charts share the same accessor-driven API:
Paste a Vega-Lite spec, get a Semiotic chart:
Supports bar, line, area, point, rect, arc, tick marks with encoding translation for color, size, aggregation, and binning.
Capture and replay the path an AI-assisted chart session took:
Semiotic ships 42 stable JavaScript entry points (41 subpaths plus the root). Don't import from "semiotic" unless you need everything — use the smallest sub-path that matches your charts or tooling.
Custom network layouts can opt into a virtual zoom/pan viewport through semiotic/network/zoom. It exports ZoomableNetworkCustomChart and projected-size/LOD hooks; ordinary chart imports exclude its gesture and LOD runtime.
The numbers below are first-party artifact cost: the gzip size of Semiotic's own code for each sub-path. They exclude React and other runtime dependencies, and each row counts every chunk the entry can reach, including code loaded only on demand, so they are not a prediction of a cold application bundle. Do not add artifact rows to estimate an app: dependency resolution and cross-import deduplication happen in the consumer bundler and are measured separately below.
The table above is first-party artifact cost, not an application bundle. The generated table
below measures a different thing: a fresh consumer bundles one retained named import from a packed
semiotic tarball through the public export path, with code splitting as an application build does.
Initial load is what a page downloads before the chart renders; on demand is code fetched
only when a feature needs it. It includes Semiotic and its resolved runtime dependencies,
but externalizes React/React DOM and optional adapter peers that the host application owns. Each row
starts cold, so use it to compare one public import choice—not to add together an application's rows.
The checked machine-readable baseline is benchmarks/setup/cold-consumer-imports.json; refresh it
after a production build with npm run docs:cold-consumer.
Method: fresh npm pack --ignore-scripts tarball → temporary consumer → minified/tree-shaken Rolldown (Vite's bundler) ESM build with code splitting and a production NODE_ENV → gzip -9 per file. Initial load counts the entry and its statically imported chunks; on demand counts chunks fetched only when a feature needs them (brushing, marginal graphics, animated transitions, a bare frame's built-in layouts). React/React DOM and optional adapter peers are external; Semiotic and its resolved runtime dependencies are included.
Line-boundary interpretation: the retained named import from semiotic/line emits 373.9 KiB raw versus 374.0 KiB from semiotic/xy; gzip differs by 0.2 KiB (0.1%). Tree-shaking converges both paths on the same LineChart implementation graph. Treat semiotic/line as a narrower API/direct-ESM artifact boundary, not an application-bundle saving. Do not add another per-chart entry until its packed named import beats the family path by both 10 KiB gzip and 7%.
d3 packaging model: Semiotic externalizes the twelve d3 modules it imports
and declares them as normal runtime dependencies. Consumers do not need to
install d3 packages manually; their bundler resolves, deduplicates, and
tree-shakes that dependency graph. A packed webpack comparison favored this
model in three of four representative chart families, and a Next 16 webpack
route was 22.7 KiB gzip smaller than the fully bundled alternative. The one
bundled win, Sankey, was only 0.4 KiB gzip. This choice retains a 22-package,
1.9 MB unpacked d3 install closure in exchange for smaller common application
graphs and an ordinary dependency contract. The checked policy is
npm run check:d3-packaging; the reproducible evidence is in
benchmarks/setup/d3-packaging.json and can be regenerated with
npm run measure:d3-packaging -- --toolchain-root <dir> after installing
webpack and Next in that isolated toolchain directory.
Tree-shaking & multi-subpath imports: Family entries (semiotic/xy, semiotic/network, semiotic/ai, …) are built as one ESM graph with shared chunks. Stream frames, renderers, and other common code ship once and are imported by every entry that needs them — so combining semiotic/ai + semiotic/xy + semiotic/network does not mean paying for three full copies of the runtime. The package is marked "sideEffects": false, so modern bundlers keep only the named exports you retain (e.g. LineChart + suggestCharts). Prefer family subpaths for clarity; import AI helpers from semiotic/ai or the lighter semiotic/ai/core when you do not need the chart catalog.
When to use "semiotic": Fine when you want one import for mixed families. Shared chunks prevent duplicated runtime code across family subpaths; the cold-consumer table above is the better guide for a single named import.
CommonJS compatibility note: require("semiotic/xy") loads the shared
CommonJS client bundle (about 2.1 MB before compression) so React contexts stay
singletons across family imports. Prefer ESM imports in browser builds when
bundle size matters; splitting that CJS client without a context-identity
contract would be unsafe.
Built with strict: true. Full type definitions ship with the package.
Generics for type-safe accessors:
All chart components render SVG automatically in server environments — no
special imports or configuration needed. Non-streaming chart HOCs can be
imported and rendered directly from a Next.js Server Component: Semiotic's
"use client" directive defines the package boundary, so the importing page
does not need its own wrapper or directive. Props crossing that boundary must
remain serializable; add an app-owned client wrapper only when you introduce
hooks, callback props, browser state, or a push-driven streaming chart.
For standalone SVG/PNG/GIF generation (email, OG images, PDF, Slack), use the server entry point:
mcp-name: io.github.nteract/semiotic
Semiotic ships with an MCP server that lets AI coding assistants render charts, diagnose configuration problems, discover schemas, read packaged AI guidance, and get chart recommendations via tool calls.
Add to your MCP client config (e.g. claude_desktop_config.json for Claude Desktop):
No API keys or authentication required for local stdio. HTTP mode is also available for inspectors, web clients, and ChatGPT Apps SDK experiments: npx -y -p semiotic semiotic-mcp --http --port 3001. It binds to 127.0.0.1 by default and accepts only its bind hostname (plus localhost for loopback). Browser requests require an explicit origin allowlist, for example MCP_ALLOWED_ORIGINS=http://localhost:5173; otherwise any request carrying Origin is rejected with 403. Native MCP clients that omit Origin continue to work. Since 3.7.2, HTTP mode is stateless: each request gets a fresh read-only MCP server + transport, so it can autoscale on serverless hosts without sticky sessions.
For ChatGPT developer mode, expose the HTTP endpoint over HTTPS with a tunnel, set MCP_ALLOWED_HOSTS to the tunnel hostname, and create a connector that points at https://<your-tunnel>/mcp. For a public interface, explicitly use --host 0.0.0.0 or MCP_HOST=0.0.0.0 and configure MCP_ALLOWED_HOSTS with the served hostnames. An all-interface bind still permits only loopback Host values until configured. Both allowlists are comma-separated and checked before preflight, health, or MCP handling. CORS echoes only an explicitly allowed origin; wildcard origins are unsupported. Set MCP_AUTH_TOKEN when transport requests should require a bearer token. The experimental Apps SDK surface is renderInteractiveChart, which returns a text/html;profile=mcp-app widget template plus a hidden SVG payload rendered by Semiotic on the MCP server.
For a hosted deployment, see deploy/cloud-run. The wrapper runs the published semiotic-mcp
binary, exposes /mcp plus health endpoints, and supports MCP_ALLOWED_HOSTS for production
host-header allowlisting. For ChatGPT Apps domain verification, set
OPENAI_APPS_CHALLENGE_TOKEN so HTTP mode serves the raw token from
/.well-known/openai-apps-challenge.
Use --profile=public for the five-tool public surface; separated option values
also work. Explicit invalid profiles or malformed options stop startup. Both
profiles and transports cap complete tool responses at 2 MiB by default through
MCP_MAX_TOOL_OUTPUT_BYTES, returning an explicit error for oversized results.
Artifact tools are opt-in diagnostics, not publication authorization. A
conditional result (including CLI exit code 0) retains open work. Ordinary
renderChart calls do not enforce artifact policy; governed hosts must enforce
their own release boundary. Manual-check resolution and revision-bound release
approval remain separate host workflow work.
Widget SVG is rebuilt from an element, attribute, CSS, and URL allowlist before embedding. Local fragment references and inline base64 PNG/JPEG/GIF/WebP images are supported; external resources, SVG data URLs, scripts, foreign HTML, animation, CSS imports, and font-face rules are removed. Allowed styles are scoped to the chart, preserving automatic dark palettes and annotation disclosure. Theme variables use color, length, font, and other supported token grammars. Malformed SVG returns an explicit tool error instead of an empty successful preview. The widget's host CSP provides an additional boundary.
For quick validation without an MCP client:
--doctor uses the full diagnoseConfig checks when dist is available and falls back to schema-only validation in clean source checkouts.
Semiotic is indexed by AI-coding-agent documentation tools so your assistant (Claude Code, Cursor, Cline, Copilot, etc.) can pull current docs and tools without copy-paste:
context7.json)The Official MCP Registry is the canonical MCP directory record; it is distinct from acceptance into any assistant vendor's curated connector directory. Secondary-directory freshness and release ownership are tracked in MCP_DISTRIBUTION.md.
Agent-facing API surface:
AGENTS.md is the concise repository development contract and CLAUDE.md imports it for Claude Code. These stay repository-local rather than shipping irrelevant contributor instructions to package consumers.ai/reference.md, ai/schema.json, ai/surface-manifest.json, ai/behaviorContracts.cjs, and agent-skill/semiotic-charts/SKILL.md are bundled in the npm tarball (see package.json#files). The reference is the on-demand product guide printed by npx -p semiotic semiotic-ai; the schema, manifest, contracts, and portable skill provide structured generation and validation guidance.semiotic.nteract.io/llms.txt + /llms-full.txt — deployed at the docs site per the llms.txt standard. Agents fetch the navigation map (llms.txt) or the full inlined docs (llms-full.txt) over HTTP; they're not part of the npm package itself.See CONTRIBUTING.md. Our community follows the nteract Code of Conduct.
Development of this library owes a lot to Susie Lu, Jason Reid, James Womack, Matt Herman, Shelby Sturgis, and Tristan Reid.
The Sankey layout engine is based on sankey-plus
by Tom Shanley, which improved on his earlier
d3-sankey-circular with better cycle detection, hierarchical arc stacking,
and dynamic extent adjustment.
Semiotic icon based on an icon by Andre Schauer.
來源:README.md,提交 3cf18f8
Create and prove a chart
Select, validate, diagnose, render, and prove a static-data Semiotic chart. This is the default public workflow.
data必填propsthemeintentaudiencecomponentfieldRolesidentifiersImprove an existing chart
Diagnose a chart configuration, assess data fit, and propose repairs or variants.
dataprops必填intentcomponent必填fieldRolesidentifiersExplain a chart without pixels
Return reader grounding: chart description, communicative intent, and navigable data structure.
props必填component必填Audit chart quality and accessibility
Run design diagnostics plus accessibility and mobile audits, returning prioritized structured findings.
props必填component必填viewportWidthGet a chart schema
Return canonical Semiotic prop-schema guidance for code editing and advanced configuration.
component已滿足適用檢查項的 100%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
import { unstable_toDataPitfallsChain } from "semiotic/experimental"import { detectPitfalls } from "datapitfalls"
const input = unstable_toDataPitfallsChain("LineChart", props, { narrative: "Monthly sales are accelerating.", rendered: { svg, evidence },})
const report = await detectPitfalls(input, { apiKey: process.env.ANTHROPIC_API_KEY })import { ChartContainer } from "semiotic"import { LineChart } from "semiotic/xy"import { unstable_toDataPitfallsAnnotations, unstable_toDataPitfallsNotifications,} from "semiotic/experimental"
const notifications = unstable_toDataPitfallsNotifications(report)const annotations = unstable_toDataPitfallsAnnotations(report, { anchorFor: (finding) => finding.ruleId === "truncated-axis" ? { x: 9, y: 9000 } : null,})
<ChartContainer notifications={notifications}> <LineChart {...props} annotations={annotations} /></ChartContainer>npm install semioticimport { LinkedCharts, Scatterplot, BarChart } from "semiotic"
<LinkedCharts> <Scatterplot data={data} xAccessor="age" yAccessor="income" colorBy="region" linkedHover={{ name: "hl", fields: ["region"] }} selection={{ name: "hl" }} /> <BarChart data={summary} categoryAccessor="region" valueAccessor="total" selection={{ name: "hl" }} /></LinkedCharts>import { RealtimeLineChart } from "semiotic"
const chartRef = useRef()chartRef.current.push({ time: Date.now(), value: cpuLoad })
<RealtimeLineChart ref={chartRef} timeAccessor="time" valueAccessor="value" decay={{ type: "exponential", halfLife: 100 }} staleness={{ threshold: 5000, showBadge: true }}/>import { ForceDirectedGraph, SankeyDiagram } from "semiotic"
<ForceDirectedGraph nodes={people} edges={friendships} colorBy="team" nodeSize={8} showLabels/>
<SankeyDiagram edges={budgetFlows} sourceAccessor="from" targetAccessor="to" valueAccessor="amount"/>import { ChoroplethMap, FlowMap, DistanceCartogram } from "semiotic/geo"
<ChoroplethMap areas={geoJsonFeatures} valueAccessor="gdp" colorScheme="viridis" projection="equalEarth" zoomable tooltip/>
<FlowMap nodes={airports} flows={routes} valueAccessor="passengers" showParticles particleStyle={{ color: "source", speedMultiplier: 1.5 }}/>
<DistanceCartogram points={cities} center="rome" costAccessor="travelDays" showRings costLabel="days" lines={routes}/>import { StreamNetworkFrame, ChartContainer, DetailsPanel, LinkedCharts } from "semiotic"
const chartRef = useRef()chartRef.current.push({ source: "API", target: "Orders", value: 15 })
<LinkedCharts> <ChartContainer title="System Monitor" status="live" detailsPanel={ <DetailsPanel position="right" trigger="click"> {(datum) => <div>{datum.id}: {datum.value} req/s</div>} </DetailsPanel> }> <StreamNetworkFrame ref={chartRef} chartType="sankey" showParticles particleStyle={{ proportionalSpeed: true }} thresholds={{ metric: n => n.value, warning: 100, critical: 250 }} /> </ChartContainer></LinkedCharts>import { LineChart, BarChart } from "semiotic"
<LineChart data={salesData} xAccessor="month" yAccessor="revenue" curve="monotoneX" showPoints/>
<BarChart data={categoryData} categoryAccessor="department" valueAccessor="sales" orientation="horizontal" colorBy="region"/>import { fromVegaLite } from "semiotic/data"import { configToJSX, fromConfig } from "semiotic"
const config = fromVegaLite({ mark: "bar", data: { values: [{ a: "A", b: 28 }, { a: "B", b: 55 }] }, encoding: { x: { field: "a", type: "nominal" }, y: { field: "b", type: "quantitative" }, },})
// Render directlyconst { componentName, props } = fromConfig(config)// → componentName: "BarChart", props: { data, categoryAccessor: "a", valueAccessor: "b" }
// Or generate JSX codeconfigToJSX(config)// → <BarChart data={[...]} categoryAccessor="a" valueAccessor="b" />import { createLocalStorageConversationArcSink, enableConversationArc, getConversationArcStore, loadConversationArc, registerConversationArcSink,} from "semiotic/ai"
const sink = createLocalStorageConversationArcSink({ key: "my-app:arc" })registerConversationArcSink(sink)enableConversationArc({ sessionId: "session-abc" })
getConversationArcStore().record({ type: "chart-rendered", component: "LineChart" })loadConversationArc(sink.load(), { enabled: false })// Import from the sub-path, not from "semiotic"import { LineChart } from "semiotic/xy"import { BarChart } from "semiotic/ordinal"import { SankeyDiagram } from "semiotic/network"import { ChoroplethMap } from "semiotic/geo"interface Sale { month: number; revenue: number }
<LineChart<Sale> data={sales} xAccessor="month" // TS validates this is keyof Sale yAccessor="revenue"/>// app/dashboard/page.tsx — a Next.js Server Componentimport { LineChart } from "semiotic/xy"
// Server: renders <svg> with path/circle/rect elements// Client: renders <canvas> with SVG overlay for axesexport default async function DashboardPage() { const data = await fetchMetrics() return <LineChart data={data} xAccessor="date" yAccessor="value" />}import { renderChart, renderToImage, renderToAnimatedGif } from "semiotic/server"
// SVG — sync, no dependenciesconst svg = renderChart("LineChart", { data, xAccessor: "date", yAccessor: "value", theme: "tufte", title: "Revenue Trend",})
// PNG — async, requires sharpconst png = await renderToImage("BarChart", { data, ... }, { format: "png", scale: 2 })
// Animated GIF — async, requires sharp + gifencconst gif = await renderToAnimatedGif("line", data, { ... }, { fps: 12 }){ "mcpServers": { "semiotic": { "command": "npx", "args": ["-y", "-p", "semiotic", "semiotic-mcp"] } }}Tool: getSchemaArgs: { "component": "LineChart" }→ Returns: { "name": "LineChart", "description": "...", "parameters": { "properties": { "data": ..., "xAccessor": ..., ... } } }Tool: suggestChartArgs: { "data": [ { "month": "Jan", "revenue": 120, "region": "East" }, { "month": "Feb", "revenue": 180, "region": "West" } ]}→ Returns: 1. BarChart (high confidence) — categorical field (region) with values (revenue) 2. StackedBarChart (medium confidence) — two categorical fields (month, region) 3. DonutChart (medium confidence) — 2 categories — proportional compositionTool: renderChartArgs: { "component": "BarChart", "props": { "data": [ { "category": "Q1", "revenue": 120 }, { "category": "Q2", "revenue": 180 }, { "category": "Q3", "revenue": 150 } ], "categoryAccessor": "category", "valueAccessor": "revenue" }}→ Returns: <svg>...</svg>Tool: renderInteractiveChartArgs: { "component": "BarChart", "props": { "title": "Revenue by Quarter", "data": [ { "quarter": "Q1", "revenue": 120 }, { "quarter": "Q2", "revenue": 180 } ], "categoryAccessor": "quarter", "valueAccessor": "revenue" }}→ Returns: structured chart summary for the model + hidden SVG/widget metadata for ChatGPT.Tool: diagnoseConfigArgs: { "component": "LineChart", "props": { "data": [] } }→ Returns: ✗ [EMPTY_DATA] data is an empty array — Fix: provide at least one data pointTool: reportIssueArgs: { "title": "Bug: BarChart tooltip shows undefined for custom accessor", "body": "When using valueAccessor='amount', tooltip displays 'undefined'.\n\ndiagnoseConfig output: ✓ no issues detected.", "labels": ["bug"]}→ Returns: Open this URL to submit the issue: https://github.com/nteract/semiotic/issues/new?...npx -p semiotic semiotic-ai --list # list components with import paths and renderabilitynpx -p semiotic semiotic-ai --list --json # machine-readable component indexnpx -p semiotic semiotic-ai --schema GaugeChartnpx -p semiotic semiotic-ai --suggest '{"data":[{"category":"A","value":10}],"intent":"comparison"}'npx -p semiotic semiotic-ai --doctor # validate component + props JSONnpx -p semiotic semiotic-ai --schema # dump all chart schemasnpx -p semiotic semiotic-ai --compact # compact schema (fewer tokens)