vizro-mcp 0.1.0__py3-none-any.whl → 0.1.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
vizro_mcp/__init__.py CHANGED
@@ -3,7 +3,7 @@ import sys
3
3
 
4
4
  from .server import mcp
5
5
 
6
- __version__ = "0.1.0"
6
+ __version__ = "0.1.1"
7
7
 
8
8
 
9
9
  def main():
vizro_mcp/server.py CHANGED
@@ -99,7 +99,7 @@ def get_sample_data_info(data_name: Literal["iris", "tips", "stocks", "gapminder
99
99
 
100
100
  @mcp.tool()
101
101
  def validate_model_config(
102
- config: dict[str, Any],
102
+ dashboard_config: dict[str, Any],
103
103
  data_infos: list[DFMetaData], # Should be Optional[..]=None, but Cursor complains..
104
104
  auto_open: bool = True,
105
105
  ) -> ValidationResults:
@@ -109,7 +109,7 @@ def validate_model_config(
109
109
  The PyCafe link will be automatically opened in your default browser if auto_open is True.
110
110
 
111
111
  Args:
112
- config: Either a JSON string or a dictionary representing a Vizro model configuration
112
+ dashboard_config: Either a JSON string or a dictionary representing a Vizro dashboard model configuration
113
113
  data_infos: List of DFMetaData objects containing information about the data files
114
114
  auto_open: Whether to automatically open the PyCafe link in a browser
115
115
 
@@ -119,7 +119,7 @@ def validate_model_config(
119
119
  Vizro._reset()
120
120
 
121
121
  try:
122
- dashboard = vm.Dashboard.model_validate(config)
122
+ dashboard = vm.Dashboard.model_validate(dashboard_config)
123
123
  except ValidationError as e:
124
124
  return ValidationResults(
125
125
  valid=False,
@@ -333,14 +333,14 @@ Create an EDA dashboard based on the following dataset:{file_path_or_url}. Proce
333
333
 
334
334
  @mcp.tool()
335
335
  def validate_chart_code(
336
- config: ChartPlan,
336
+ chart_config: ChartPlan,
337
337
  data_info: DFMetaData,
338
338
  auto_open: bool = True,
339
339
  ) -> ValidationResults:
340
340
  """Validate the chart code created by the user and optionally open the PyCafe link in a browser.
341
341
 
342
342
  Args:
343
- config: A ChartPlan object with the chart configuration
343
+ chart_config: A ChartPlan object with the chart configuration
344
344
  data_info: Metadata for the dataset to be used in the chart
345
345
  auto_open: Whether to automatically open the PyCafe link in a browser
346
346
 
@@ -350,7 +350,7 @@ def validate_chart_code(
350
350
  Vizro._reset()
351
351
 
352
352
  try:
353
- chart_plan_obj = ChartPlan.model_validate(config)
353
+ chart_plan_obj = ChartPlan.model_validate(chart_config)
354
354
  except ValidationError as e:
355
355
  return ValidationResults(
356
356
  valid=False,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vizro-mcp
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: MCP server to help create Vizro dashboards and charts
5
5
  Author: Vizro Team
6
6
  License-File: LICENSE.txt
@@ -17,10 +17,16 @@ Requires-Dist: pandas[excel,html,parquet]
17
17
  Requires-Dist: vizro==0.1.38
18
18
  Description-Content-Type: text/markdown
19
19
 
20
+ <a href="https://glama.ai/mcp/servers/@mckinsey/vizro">
21
+ <img width="380" height="200" src="https://glama.ai/mcp/servers/@mckinsey/vizro/badge" />
22
+ </a>
23
+
20
24
  # Vizro MCP server
21
25
 
22
26
  Vizro-MCP is a [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server, which works alongside a LLM to help you create Vizro dashboards and charts.
23
27
 
28
+ ![Vizro MCP Demo](assets/vizro-mcp.gif)
29
+
24
30
  ## Features of Vizro-MCP
25
31
 
26
32
  Vizro-MCP provides tools and templates to create a functioning Vizro chart or dashboard step by step. Benefits include:
@@ -60,10 +66,27 @@ In principle, the Vizro MCP server works with _any_ MCP enabled LLM applications
60
66
 
61
67
  > ⚠️ **Warning:** In some hosts (like Claude Desktop) the free plan might be less performant, which may cause issues when the request is too complex. In cases where the request causes the UI to crash, opt for using a paid plan, or reduce your request's complexity.
62
68
 
63
- ## Setup Instructions
69
+ ### Setup Instructions
70
+
71
+ The general server config is mostly the same for all hosts:
72
+
73
+ ```json
74
+ {
75
+ "mcpServers": {
76
+ "vizro-mcp": {
77
+ "command": "uvx",
78
+ "args": [
79
+ "vizro-mcp"
80
+ ]
81
+ }
82
+ }
83
+ }
84
+ ```
85
+
86
+ In principle, the Vizro MCP server works with _any_ MCP enabled LLM applications but we recommend Claude Desktop or Cursor as popular choices (see more detailed instructions below). Different AI tools may use different setup methods or connection settings. Check each tool's docs for details.
64
87
 
65
88
  <details>
66
- <summary><strong>Claude</strong></summary>
89
+ <summary><strong>Claude Desktop</strong></summary>
67
90
 
68
91
  Add the following to your `claude_desktop_config.json` [found via Developer Settings](https://modelcontextprotocol.io/quickstart/user#2-add-the-filesystem-mcp-server).
69
92
 
@@ -114,8 +137,6 @@ Similarly, when using Cursor, after a short pause, you should see a green light
114
137
 
115
138
  </details>
116
139
 
117
- In principle, the Vizro MCP server works with _any_ MCP enabled LLM applications but we recommend Claude Desktop or Cursor as popular choices. Different AI tools may use different setup methods or connection settings. Check each tool's docs for details.
118
-
119
140
  ## 💻 Usage
120
141
 
121
142
  ### Use prompt templates to get specific dashboards quickly
@@ -1,12 +1,12 @@
1
- vizro_mcp/__init__.py,sha256=mWzCq5I_M0tVM84u9mqQodTK6fEBxngAYGTEHvnmaUU,379
1
+ vizro_mcp/__init__.py,sha256=nZUsEUDlifJKJw3pG-tvzH7nFxmoPTn85wrORwWWYjs,379
2
2
  vizro_mcp/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- vizro_mcp/server.py,sha256=cINRBPr0hkN5S5tD_Gf6dYu8vC7QviYCOrCtiAxYYwU,14813
3
+ vizro_mcp/server.py,sha256=mQEyb8MS0L_WVtIhee7oknLZzl2N5QIXsxUiiKHM6Dc,14871
4
4
  vizro_mcp/_schemas/__init__.py,sha256=przXt7ukurnDlj3SLRW-K0VO1ksnDDFuS8Njf80xepo,610
5
5
  vizro_mcp/_schemas/schemas.py,sha256=r_0i9fRtyMh7W3q3KgnpCbRUDlBaFjG6XQjCtahgEXc,11625
6
6
  vizro_mcp/_utils/__init__.py,sha256=q-xdwiyRCaOWWTeG5NC_1CzHWXBH4sUKpIBXbUaKg_Y,670
7
7
  vizro_mcp/_utils/utils.py,sha256=gIuKXONR2SvOgA3Vo3ONnkh8Qcc-RLfrexJAjan12zk,9217
8
- vizro_mcp-0.1.0.dist-info/METADATA,sha256=QaRxZjEcQy0n3_WKPfd6t3Eon_VR1QIVwrR__HGpl8M,15591
9
- vizro_mcp-0.1.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
10
- vizro_mcp-0.1.0.dist-info/entry_points.txt,sha256=iSUzPHvx4Ogsn91tK2C0OHxI44SNCHT1F1zUqbTj5O0,45
11
- vizro_mcp-0.1.0.dist-info/licenses/LICENSE.txt,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
12
- vizro_mcp-0.1.0.dist-info/RECORD,,
8
+ vizro_mcp-0.1.1.dist-info/METADATA,sha256=CmPmKTtiJHsANF4eYGNFJrRiLLiGMM6Odgrv3XHC12w,16027
9
+ vizro_mcp-0.1.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
10
+ vizro_mcp-0.1.1.dist-info/entry_points.txt,sha256=iSUzPHvx4Ogsn91tK2C0OHxI44SNCHT1F1zUqbTj5O0,45
11
+ vizro_mcp-0.1.1.dist-info/licenses/LICENSE.txt,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
12
+ vizro_mcp-0.1.1.dist-info/RECORD,,