3.2 KiB
3.2 KiB
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[1.1.0] - 2026-01-02
Added
Logging
- Tool Call Logging: Human-readable logs for every MCP tool call with agent identity, document, stats, and duration
- Token Truncation: Secure token display in logs (first/last 3 chars only)
- Stats Extraction: Meaningful operation stats per tool (e.g., "42 records", "3 tables")
- LOG_LEVEL Support: Configure logging verbosity via environment variable (DEBUG, INFO, WARNING, ERROR)
- Health Check Suppression:
/healthrequests logged at DEBUG level to reduce noise
Log Format
2026-01-02 10:15:23 | agent-name (abc...xyz) | get_records | sales | 42 records | success | 125ms
- Pipe-delimited format for easy parsing
- Multi-line error details with indentation
- Duration tracking in milliseconds
[1.0.0] - 2026-01-01
Initial release of grist-mcp, an MCP server for AI agents to interact with Grist spreadsheets.
Added
Core Features
- MCP Server: Full Model Context Protocol implementation with SSE transport
- Token-based Authentication: Secure agent authentication via
GRIST_MCP_TOKEN - Granular Permissions: Per-document access control with
read,write, andschemascopes - Multi-tenant Support: Configure multiple Grist instances and documents
Discovery Tools
list_documents: List accessible documents with their permissions
Read Tools
list_tables: List all tables in a documentdescribe_table: Get column metadata (id, type, formula)get_records: Fetch records with optional filter, sort, and limitsql_query: Execute read-only SELECT queries
Write Tools
add_records: Insert new records into a tableupdate_records: Modify existing records by IDdelete_records: Remove records by ID
Schema Tools
create_table: Create new tables with column definitionsadd_column: Add columns to existing tablesmodify_column: Change column type or formuladelete_column: Remove columns from tables
Infrastructure
- Docker Support: Multi-stage Dockerfile with non-root user
- Docker Compose: Ready-to-deploy configuration with environment variables
- Health Endpoint:
/healthfor container orchestration readiness checks - SSE Transport: Server-Sent Events for MCP client communication
- Environment Variable Substitution:
${VAR}syntax in config files
Testing
- Unit Tests: Comprehensive coverage with pytest-httpx mocking
- Integration Tests: Docker-based tests with ephemeral containers
- Rich Test Runner: Progress display for test execution
- Test Isolation: Dynamic port discovery for parallel test runs
Developer Experience
- Makefile: Commands for testing, building, and deployment
- Dev Environment: Docker Compose setup for local development
- MCP Config Display: Startup message with client configuration snippet
Security
- SQL injection prevention with SELECT-only query validation
- API key isolation per document
- Token validation at startup (no runtime exposure)
- Non-root container execution