Skip to content

Conversation

@Meseriasul19
Copy link
Collaborator

Initial Implementation: MCP-based Chart Visualization Workspace Manager

This PR introduces the foundational architecture for a chart visualization workspace manager built on the Model Context Protocol (MCP). The system is designed to allow AI agents to create, manage, and iterate on interactive chart visualizations inside isolated workspaces.


What’s included

1. charts-mcp — Core MCP Server

A TypeScript-based MCP server responsible for workspace creation and orchestration.

Implemented MCP tools:

  • get_supported_charts_libs – returns supported charting libraries (amCharts 5, Chart.js)
  • initialize_wk – creates a new timestamped workspace
  • get_wk_path – returns the active workspace path
  • refresh – intended to trigger browser reloads via SSE

Workspace generation:

  • Creates isolated folders under workspaces/
  • Generates:
    • index.html with CDN imports and SSE client
    • chart.js with starter chart code

2. HTTP Server with Live Reload (Partial)

An Express-based server intended to provide live preview and auto-reload functionality.

Implemented:

  • Static file serving on port 3000
  • File watching via chokidar
  • SSE endpoint (/events) for reload notifications

Current status:

  • Server starts successfully
  • File watching is active
  • SSE infrastructure is present

Next Steps (Follow-up PRs)

  • Fix SSE reload propagation and browser refresh behavior
  • Add error handling and logging around workspace lifecycle
  • Support additional chart libraries
  • Introduce persistence via PostgreSQL

Status

  • ✅ Architecture and MCP tool design validated
  • ✅ Workspace creation functional
  • ⚠️ Live preview pending

@radumarias radumarias linked an issue Dec 13, 2025 that may be closed by this pull request
@radumarias radumarias changed the title Setup MVP Setup MCP Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MCP implementation

1 participant