1. Conduid
  2. Agents
  3. PyWry
MCP server · Agents

PyWry

PyWry is a cross-platform app factory, rendering engine and UI toolkit for Python that produces native desktop, web, and notebook experiences from a single API.

66Good

Scored 5 hours ago · breakdown

About PyWry

PyWry is an MCP server published by deeleeramone in the Agents category: pyWry is a cross-platform app factory, rendering engine and UI toolkit for Python that produces native desktop, web, and notebook experiences from a single API. Conduid read 67 tools from its source: build_div, build_ticker_item, chat_get_history, chat_manage_thread, chat_register_command, chat_send_message and 61 more. No package is published for it, so it installs from a source checkout.

The repository has 100 stars and 9 forks, and its last commit was on 13 Oct 2026. Conduid has no tagged release on record for it. It passes all 1 static checks Conduid ran on the repository. Its topics include aggrid, anywidget, chat-application, claude-code-plugin, claude-skills and dashboard.

Install

From source
git clone https://github.com/deeleeramone/PyWry

Tools (67)

build_divBuild a Div component HTML string. Use component_id to update later. **MANDATORY SYNTAX**: ```json {"content": "0", "component_id": "counter", "style": "font-size:48px;text-align:center"} ``` Returns: `{"html": "<div id="counter" style="...">0</div>"}` Use the returned html in create_widget's html parameter.
build_ticker_itemBuild a TickerItem for Marquee. Can be updated dynamically via update_ticker_item. **MANDATORY SYNTAX**: ```json {"ticker": "AAPL", "text": "AAPL: $150.00", "style": "color: green"} ``` Returns HTML span with data-ticker attribute for targeting updates.
chat_get_historyRetrieve conversation history for a thread. Supports cursor-based pagination via `before_id`.
chat_manage_threadCreate, switch, delete, or rename a chat thread. Actions: - `create`: Create a new thread (returns thread_id) - `switch`: Switch to an existing thread (loads history) - `delete`: Delete a thread and its messages - `rename`: Rename a thread - `list`: List all threads for the widget
chat_register_commandRegister a slash command in a chat widget at runtime. The command name is auto-prefixed with `/` if missing.
chat_send_messageSend a user message to a chat widget and get the assistant response. The message is appended to the thread history and the configured LLM provider is invoked. If streaming is enabled, chunks are emitted as progress notifications. To stop a running generation, use `chat_stop_generation`.
chat_set_typingShow or hide the typing indicator in a chat widget.
chat_stop_generationStop an in-flight LLM generation. Sets the cancel event on the active GenerationHandle, causing the provider to stop producing tokens. Returns the partial content generated so far. Idempotent — safe to call multiple times.
chat_update_settingsUpdate chat settings for a widget (model, temperature, system prompt, etc.). Changes are applied immediately and pushed to the frontend.
create_chat_widgetCreate a chat widget with conversational UI. Returns a widget with message area, input bar, optional thread sidebar, slash commands, and settings panel. Supports streaming responses and stop-generation. **Example**: ```json { "title": "AI Chat", "system_prompt": "You are a helpful assistant.", "model": "gpt-4", "streaming": true, "provider": "openai", "show_sidebar": true } ```
create_widgetCreate an interactive native window with HTML content and Pydantic toolbar components. ⚠️ **CALL get_skills(skill="component_reference") FIRST** for complete documentation. **MANDATORY SYNTAX** - Use EXACTLY this structure: ```json { "html": "<div id="counter" style="font-size:48px;text-align:center;padding:50px">0</div>", "title": "Counter", "height": 400, "toolbars": [{ "position": "top", "items": [ {"type": "button", "label": "+1", "event": "counter:increment", "variant": "primary"}, {"type": "button", "label": "-1", "event": "counter:decrement", "variant": "neutral"}, {"type": "button", "label": "Reset", "event": "counter:reset", "variant": "danger"} ] }] } ``` **BUTTON EVENTS AUTO-WIRE** when following pattern `elementId:action`: - `counter:increment` → adds 1 to element with id="counter" - `counter:decrement` → subtracts 1 - `counter:reset` → sets to 0 - `status:toggle` → toggles true/false **ALL COMPONENT TYPES AND EVENT SIGNATURES**: | Type | Event Payload | Required Props | |------|--------------|----------------| | button | `{componentId, ...data}` | label, event | | select | `{value, componentId}` | event, options | | multiselect | `{values: [], componentId}` | event, options | | toggle | `{value: boolean, componentId}` | event | | checkbox | `{value: boolean, componentId}` | event, label | | radio | `{value, componentId}` | event, options | | tabs | `{value, componentId}` | event, options | | text | `{value, componentId}` | event | | textarea | `{value, componentId}` | event | | search | `{value, componentId}` | event | | number | `{value: number, componentId}` | event | | date | `{value: "YYYY-MM-DD", componentId}` | event | | slider | `{value: number, componentId}` | event | | range | `{start, end, componentId}` | event | | secret | `{value: base64, encoded: true, componentId}` | event | | div | NO EVENTS | content | | marquee | `{value, componentId}` (if clickable) | text | **EVENT FORMAT RULES**: - MUST be `namespace:action` format (e.g., `form:submit`, `view:change`) - Reserved namespaces (DO NOT USE): `pywry`, `plotly`, `grid` **OPTIONS FORMAT** (for select/multiselect/radio/tabs): ```json "options": [{"label": "Dark", "value": "dark"}, {"label": "Light", "value": "light"}] ``` **TOOLBAR POSITIONS**: top, bottom, left, right, header, footer, inside
destroy_widgetDestroy a widget and clean up resources.
downloadTrigger a file download in the browser.
export_widgetExport a created widget as Python code. Generates standalone Python code that recreates the widget without MCP. Use this to save your work or share widget implementations.
get_component_docsGet documentation for a PyWry component. Returns detailed documentation including properties and usage examples. Available components: button, select, multiselect, toggle, checkbox, radio, tabs, text, textarea, search, number, date, slider, range, div, secret, marquee, ticker_item.
get_component_sourceGet source code for a PyWry component class. Returns the Python source code for implementing the component. Useful for understanding implementation details or extending components.
get_eventsGet events from a widget (button clicks, input changes, etc.). Events include: event_type, data, and label. Use clear=true to clear after reading.
get_skillsGet context-appropriate skills and guidance for creating widgets. ⚠️ **MANDATORY FIRST STEP**: Call this with skill="component_reference" BEFORE creating ANY widget. The component_reference contains the ONLY correct event signatures and system events. **System Events for Updates (from component_reference):** - `grid:update-data` with `{"data": [...], "strategy": "set|append|update"}` - `grid:request-state` / `grid:restore-state` / `grid:reset-state` for state persistence - `plotly:update-figure` with `{"data": [...], "layout": {...}}` - `plotly:request-state` for chart state persistence - `pywry:set-content` with `{"id": "...", "text": "..."}` or `{"id": "...", "html": "..."}` - `pywry:update-theme` with `{"theme": "dark|light|system"}` - `toolbar:set-value` / `toolbar:request-state` for toolbar component state Available skills: - **component_reference** (MANDATORY): Complete reference for ALL 18 component types, system events, and exact event signatures - **interactive_buttons**: How to make buttons work automatically with auto-wired callbacks - native: Desktop window with full control - jupyter: Inline widgets in notebook cells - iframe: Embedded in external web pages - deploy: Production multi-user server - data_visualization: Charts, tables, live data - forms_and_inputs: User input collection Call without arguments to list all skills, or specify a skill name.
get_widget_appReturn the widget as a full AppArtifact snapshot. Renders *widget_id* as self-contained HTML (CSS + JS + data inlined) and returns it as an ``AppArtifact`` with a bumped revision counter. MCP clients that render ``text/html`` embedded resources (Claude Desktop artifact pane, mcp-ui clients, PyWry's own chat widget) show the app inline. Older revisions of the same widget in chat history freeze at their last known state because their WebSocket bridge is rejected server-side on revision mismatch. Widget-creating tools (``create_widget``, ``show_plotly``, ``show_dataframe``, ``show_tvchart``, ``create_chat_widget``) auto-return an ``AppArtifact`` already; call this explicitly only to re-snapshot an existing widget after it has been mutated.
inject_cssInject CSS styles into a widget. Creates or updates a <style> element with the given CSS. Use a unique style_id to update the same styles later.
list_resourcesList all available resources. Returns URIs for: - Component documentation (pywry://component/{name}) - Component source code (pywry://source/{name}) - Widget exports (pywry://export/{widget_id}) - Built-in events reference (pywry://docs/events) - Quick start guide (pywry://docs/quickstart)
list_widgetsList all active widgets with their URLs.
navigateNavigate the widget to a new URL (client-side redirect).
remove_cssRemove previously injected CSS by style_id.
send_eventSend a custom event to a widget. **AG Grid Data Updates (CRITICAL - use these exact formats):** - grid:update-data: {"data": [...rows...], "strategy": "set"} - Replace all data - grid:update-data: {"data": [...rows...], "strategy": "append"} - Append rows - grid:update-data: {"data": [...rows...], "strategy": "update"} - Update existing - grid:update-columns: {"columnDefs": [...]} - Update columns - grid:update-cell: {"rowId": "row-1", "colId": "price", "value": 99.50} - Update cell **AG Grid State Persistence:** - grid:request-state: {} - Request state (response via grid:state-response) - grid:restore-state: {"state": {...savedState...}} - Restore saved state - grid:reset-state: {"hard": false} - Soft reset (keeps columns) - grid:reset-state: {"hard": true} - Hard reset (full reset) **Plotly Chart Updates:** - plotly:update-figure: {"data": [...], "layout": {...}, "config": {...}} - plotly:update-layout: {"layout": {...}} - plotly:reset-zoom: {} - Reset chart zoom **Plotly State Persistence:** - plotly:request-state: {} - Request state (response via plotly:state-response) - plotly:export-data: {} - Export data (response via plotly:export-response) **Toolbar Component State (Get/Set Values):** - toolbar:set-value: {"componentId": "my-select", "value": "option2"} - Set one - toolbar:set-values: {"values": {"id1": "v1", "id2": true}} - Set multiple - toolbar:request-state: {} - Request all values (response via toolbar:state-response) **DOM Content Updates:** - pywry:set-content: {"id": "elementId", "text": "..."} or {"id": "elementId", "html": "..."} - pywry:set-style: {"id": "elementId", "styles": {"color": "red", "fontSize": "18px"}} **Theme Updates:** - pywry:update-theme: {"theme": "dark"} or {"theme": "light"} or {"theme": "system"} **Other Events:** - pywry:alert: {"message": "...", "type": "info|success|warning|error"} - pywry:navigate: {"url": "https://..."} - pywry:download: {"content": "...", "filename": "file.txt", "mimeType": "text/plain"} - toolbar:marquee-set-item: {"ticker": "AAPL", "text": "AAPL $185", "styles": {"color": "green"}}
set_contentUpdate element text/HTML by component_id. Uses pywry:set-content event. The element must have a component_id set (e.g., via Div component or id attribute in HTML).
set_styleUpdate element CSS styles by component_id. Uses pywry:set-style event. Pass styles as camelCase properties.
show_dataframeCreate an AG Grid table widget from JSON data. **To update the grid data later**, use `send_event` with: - event_type: `grid:update-data` - data: `{"data": [...new rows...], "strategy": "set"}` Strategy options: "set" (replace all), "append" (add rows), "update" (update existing)
show_plotlyCreate a Plotly chart widget. Pass figure JSON from fig.to_json(). **To update the chart later**, use `send_event` with: - event_type: `plotly:update-figure` - data: `{"data": [...], "layout": {...}}` Or use `update_plotly` tool with new figure_json.
show_toastDisplay a toast notification in the widget.
show_tvchartCreate a TradingView Lightweight Chart widget from OHLCV data. Data must be a JSON array of objects with time, open, high, low, close, and optional volume fields. Time should be Unix epoch seconds. **To update the chart later**, use `send_event` with: - event_type: `tvchart:update` - data: `{"bars": [...], "chartId": "..."}`
tvchart_add_indicatorAdd a built-in technical indicator to the chart. Emits ``tvchart:add-indicator``. The indicator is computed natively by the charting engine from the current bar data. Supports legend, undo/redo, and subplot panes automatically. Valid ``name`` values: - Moving averages: ``SMA``, ``EMA``, ``WMA``, ``SMA (50)``, ``SMA (200)``, ``EMA (12)``, ``EMA (26)``, ``Moving Average`` - Momentum: ``RSI``, ``Momentum`` - Volatility: ``Bollinger Bands``, ``ATR`` - Volume: ``VWAP``, ``Volume SMA`` - Lightweight Examples: ``Average Price``, ``Median Price``, ``Weighted Close``, ``Percent Change``, ``Correlation``, ``Spread``, ``Ratio``, ``Sum``, ``Product``
tvchart_add_markersAdd buy/sell or event markers at specific bars. Emits ``tvchart:add-markers``. Each marker is ``{time, position, color, shape, text}`` where ``position`` is ``"aboveBar"`` or ``"belowBar"`` and ``shape`` is one of ``"arrowUp"``, ``"arrowDown"``, ``"circle"``, etc.
tvchart_add_price_lineDraw a horizontal price line (support/resistance/target). Emits ``tvchart:add-price-line``.
tvchart_add_seriesAdd a pre-computed overlay series to the chart. Emits ``tvchart:add-series``. Use this for any series whose values you already computed in Python (custom indicators, compare symbols, forecasts, etc.). For the built-in indicator engine (SMA/EMA/RSI/BB/…) use ``tvchart_add_indicator`` instead.
tvchart_apply_optionsApply chart-level or series-level option patches. Emits ``tvchart:apply-options``. ``chart_options`` patches the chart (layout/grid/crosshair/timeScale); ``series_options`` patches the specified series (colour, lineWidth, priceScaleId, etc.).
tvchart_auto_scaleToggle auto-scale on the price axis. Emits ``tvchart:auto-scale``.
tvchart_change_intervalChange the chart timeframe / bar interval. Emits ``tvchart:interval-change``. Valid intervals match the chart's ``supported_resolutions``. Typical values: ``1m 3m 5m 15m 30m 45m 1h 2h 3h 4h 1d 1w 1M 3M 6M 12M``.
tvchart_chart_typeChange the main series chart type. Emits ``tvchart:chart-type-change``. Valid values: ``Candles``, ``Hollow Candles``, ``Heikin Ashi``, ``Bars``, ``Line``, ``Area``, ``Baseline``, ``Histogram``.
tvchart_compareAdd a symbol as an overlay compare series on the chart. Emits ``tvchart:compare``. When ``query`` is set the compare panel runs a datafeed search and — if ``auto_add`` (default true) — adds the exact-ticker match (or the first result otherwise) to the chart. The tool polls chart state until the new compare series appears in ``state.compareSymbols`` and returns the confirmed state; if the match doesn't commit in time, the result includes a ``note``. Omit ``query`` to just open the panel for the user. ``symbol_type`` and ``exchange`` narrow the datafeed search — e.g. ``symbol_type="etf"`` routes ``SPY`` to the SPDR ETF rather than a near-prefix match.
tvchart_drawing_toolActivate a drawing tool or toggle drawing-layer state. Emits one of ``tvchart:tool-cursor``, ``tvchart:tool-crosshair``, ``tvchart:tool-magnet``, ``tvchart:tool-eraser``, ``tvchart:tool-visibility``, ``tvchart:tool-lock`` depending on ``mode``.
tvchart_fit_contentFit all bars to the visible area. Emits ``tvchart:time-scale`` with ``{fitContent: true}``.
tvchart_fullscreenToggle chart fullscreen mode. Emits ``tvchart:fullscreen``.
tvchart_list_indicatorsReturn the list of active built-in indicators. Synchronously round-trips ``tvchart:list-indicators`` → ``tvchart:list-indicators-response`` and returns the decoded response (``{indicators: [{seriesId, name, type, period, color, group}]}``).
tvchart_log_scaleToggle the logarithmic price scale. Emits ``tvchart:log-scale``.
tvchart_open_layoutOpen the layout picker dialog. Emits ``tvchart:open-layout``.
tvchart_redoRedo the last undone chart action. Emits ``tvchart:redo``.
tvchart_remove_indicatorRemove a built-in indicator by series id. Emits ``tvchart:remove-indicator``. Grouped indicators (e.g. the three Bollinger bands) are removed together, and subplot panes are cleaned up automatically.
tvchart_remove_seriesRemove a series or overlay by id. Emits ``tvchart:remove-series``. Works for any series added via ``tvchart_add_series`` or ``tvchart_add_indicator``.
tvchart_request_stateRead a single chart's full state synchronously. Round-trips ``tvchart:request-state`` → ``tvchart:state-response`` and returns the decoded state object (``{chartId, theme, series, visibleRange, rawData, drawings, indicators}``).
tvchart_save_layoutSave the current chart layout (indicators + drawings). Emits ``tvchart:save-layout``.
tvchart_save_stateRequest a full state export from every chart in the widget. Emits ``tvchart:save-state``. Use ``tvchart_request_state`` for a synchronous single-chart snapshot.
tvchart_screenshotTake a screenshot of the chart. Emits ``tvchart:screenshot``.
tvchart_set_visible_rangeSet the chart's visible time range. Emits ``tvchart:time-scale`` with ``{visibleRange: {from, to}}``. Times are Unix epoch seconds.
tvchart_show_indicatorsOpen the indicator picker panel. Emits ``tvchart:show-indicators``.
tvchart_show_settingsOpen the chart settings modal. Emits ``tvchart:show-settings``.
tvchart_symbol_searchOpen the symbol search dialog, optionally pre-filling it. Emits ``tvchart:symbol-search``. When ``query`` is set the datafeed search runs with that query and — if ``auto_select`` (default true) — the exact-ticker match (or the first result otherwise) is selected as soon as results arrive. ``symbol_type`` and ``exchange`` narrow the datafeed search to a specific security class or venue — e.g. ``symbol_type="etf"`` ensures ``SPY`` resolves to the SPDR ETF rather than a near-prefix match like ``SPYM``.
tvchart_time_rangeZoom to a preset time range. Emits ``tvchart:time-range``. Typical values: ``1D 1W 1M 3M 6M 1Y 5Y YTD``.
tvchart_time_range_pickerOpen the date-range picker dialog. Emits ``tvchart:time-range-picker``.
tvchart_toggle_dark_modeToggle the chart's dark/light theme. Emits ``tvchart:toggle-dark-mode``.
tvchart_undoUndo the last chart action. Emits ``tvchart:undo``.
tvchart_update_barStream a single real-time bar update. Emits ``tvchart:stream`` with the merged bar payload. If the bar's time matches the most recent bar the chart updates that bar; otherwise a new bar is appended. Volume colour is auto-derived from open/close unless provided.
tvchart_update_seriesReplace the bar data for a chart series. Emits ``tvchart:update`` with ``{bars, volume?, fitContent?, chartId?, seriesId?}``. Time values are Unix epoch seconds. Use ``series_id`` to target a specific series (defaults to the main OHLCV series).
update_marqueeUpdate marquee content, speed, or state. Can update text, individual ticker items, speed, or pause/resume animation.
update_plotlyUpdate an existing Plotly chart with new data/layout.
update_themeSwitch widget theme to dark/light/system.
update_ticker_itemUpdate a single ticker item in a Marquee by its ticker ID. Uses TickerItem.update_payload() pattern to generate the event. Updates ALL elements matching the ticker (handles duplicated marquee content).

Security checks

  • ✓README presentThe repository's README runs to about 1.0K words.

5 checks have not been run yet.

README

The repository's README runs to about 1.0K words. The original in the repository is authoritative.

Read full README
Questions

About PyWry

How do I install PyWry?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is PyWry safe to use with an AI agent?

Its trust score is 66 out of 100 (good). It passes all 1 static checks Conduid ran on the repository. It has no ConduID identity yet, so agent calls to it are not receipted.

Is PyWry still maintained?

Yes — the last commit was a month ago. The repository has 100 stars and 9 forks.

What tools does PyWry provide?

Conduid read 67 tools from the source: build_div, build_ticker_item, chat_get_history, chat_manage_thread, chat_register_command, chat_send_message, chat_set_typing, chat_stop_generation and 59 more.