Chartory
Chart types, props, JSON Schemas and install commands for the Chartory React chart library.
我该使用它吗
质量与安全性
发现(1)
- LOW在 get_chart_code 中
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"chartory": {
"url": "https://usechartory.com/mcp"
}
}
}远程端点
https://usechartory.com/mcpstreamable-http它能做什么
工具清单
工具(4)
🟢search_charts(query, question, freeOnly, limit)
Find the Chartory chart types that fit a question about the user's data, in plain words ("monthly revenue against target", "where users drop off in signup"). Returns each type's slug, what it answers and its install command.
输入模式
{
"type": "object",
"properties": {
"query": {
"type": "string",
"maxLength": 300,
"description": "What the chart should show, in plain words"
},
"question": {
"description": "Only types that answer this question",
"type": "string",
"enum": [
"Change over time",
"Compare items",
"Part of a whole",
"Distribution",
"Flow between steps",
"Relationship",
"Schedule and status",
"Space and place"
]
},
"freeOnly": {
"description": "Only the free types (no licence key needed)",
"type": "boolean"
},
"limit": {
"description": "How many to return (default 8)",
"type": "integer",
"minimum": 1,
"maximum": 20
}
},
"required": [
"query"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_chart_spec(slug)
The component, its props, sizes and the JSON Schema of its data prop, for one chart type by slug (from search_charts). Shape the user's data to the schema.
输入模式
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"maxLength": 80,
"description": "The type's slug, e.g. waterfall"
}
},
"required": [
"slug"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_chart_code(slug, with)
The install command and the component file for one chart type, plus an example file with sample data. Paid types need a Code or Complete licence key sent as the Bearer token.
输入模式
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"maxLength": 80,
"description": "The type's slug, e.g. waterfall"
},
"with": {
"description": "chart (default), its widget, or the interactive widget",
"type": "string",
"enum": [
"chart",
"widget",
"interactive"
]
}
},
"required": [
"slug"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_tokens(mode, filter)
Chartory's design tokens (CSS custom properties from chartory.css) in one of the four modes, optionally filtered by a name fragment ("data", "surface", "signal"). Light is :root, dark is .dark; data-theme picks a mode for a subtree.
输入模式
{
"type": "object",
"properties": {
"mode": {
"description": "The mode (default chartory-light)",
"type": "string",
"enum": [
"chartory-light",
"chartory-dark",
"ember",
"ember-light"
]
},
"filter": {
"description": "Only tokens whose name contains this",
"type": "string",
"maxLength": 40
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}社区
证据