Skip to content

Claude/fix grist ctx parameter xqhnr#6

Merged
nic01asFr merged 6 commits intoofficialfrom
claude/fix-grist-ctx-parameter-Xqhnr
Dec 30, 2025
Merged

Claude/fix grist ctx parameter xqhnr#6
nic01asFr merged 6 commits intoofficialfrom
claude/fix-grist-ctx-parameter-Xqhnr

Conversation

@nic01asFr
Copy link
Owner

No description provided.

claude and others added 6 commits December 30, 2025 05:19
- Fix ctx parameter to be properly injected by FastMCP
- Clients no longer need to pass ctx=null when calling tools
## Bug Fixes
- create_table: use correct format {"tables": [{"id": ..., "columns": [{"id": ..., "fields": {...}}]}]}
- modify_table: use correct format {"tables": [{"id": ..., "fields": {"tableId": ...}}]}
- create_column/modify_column: serialize widgetOptions as JSON string
- create_column: add choices, visible_col, untie_col_id_from_label, description params
- download_table_csv: use download_doc_csv with tableId parameter

## New Features
- create_reference_column: Create Ref/RefList columns with auto visibleCol resolution
- validate_schema: Validate schema structure without creating tables
- create_schema: Create complete schema with tables, columns, references in 5 phases
- export_schema: Export existing document schema to JSON/YAML/Mermaid

## New Files
- src/mcp_server_grist/types.py: Type definitions and schema parsing
- src/mcp_server_grist/tools/utils.py: Shared utility functions
- src/mcp_server_grist/tools/schema.py: New schema tools
- tests/test_schema.py: Unit tests for schema functionality
- CHANGELOG.md: Version history
- client.py: Add table_id parameter to download_doc_xlsx
- tools/export.py: Add table_id parameter and auto-selection
- tools/schema.py: Use correct client methods (list_tables, list_columns, etc.)
- tools/utils.py: Fix client method calls

All tools verified working:
✅ create_table, modify_table
✅ create_column, modify_column (widgetOptions serialized)
✅ download_table_csv, download_document_excel
✅ create_reference_column (auto visibleCol)
✅ validate_schema, create_schema, export_schema
@nic01asFr nic01asFr merged commit e500b6f into official Dec 30, 2025
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.

2 participants