gigi-mcp

v0.0.1
gigi-mcp Checked 2 days ago Published 6 months ago

MCP server for GIGI — fiber-bundle persistent memory and reasoning for Claude and other MCP-aware LLM clients

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

gigi_list_bundles

List the bundles (datasets) available in this GIGI instance. Use this first when the user asks what data is available or before constructing any query. Each bundle's name lets you fetch its schema. Returns ------- list of dict One entry per bundle with summary info (name, record_count, etc.).

gigi_get_schema

Get a bundle's schema — its base fields, fiber fields, and indexes. Use this to understand a bundle's structure before querying it. The returned dict tells you what fields exist and what types they are, so you can construct valid filter expressions or GQL statements. Parameters ---------- name : str Bundle name (from `gigi_list_bundles()`). Returns ------- dict Keys: ``base_fields`` (the index/key fields), ``fiber_fields`` (the value fields), ``indexed_fields`` (which fields have indexes).

ParameterTypeDescription
name *string

gigi_query_bundle

Query records from a bundle with filter expressions. Use this for typed record-level queries. For more expressive queries (joins, aggregations, GIGI's geometric operations), use `gigi_gql` instead. Parameters ---------- name : str Bundle name. filters : list of dict, optional Each filter has the shape ``{"field": <field_name>, "op": <op>, "value": <value>}``. Supported ops: ``eq``, ``gt``, ``lt``, ``gte``, ``lte``, ``in``. Example: ``[{"field": "population", "op": "gt", "value": 1000000}]``. limit : int Maximum recor…

ParameterTypeDescription
name *string
filters
limitinteger

gigi_count

Count records in a bundle matching optional filters. Faster than `gigi_query_bundle` when you only need the count, not the records themselves. Parameters ---------- name : str Bundle name. filters : list of dict, optional Same shape as in `gigi_query_bundle`. Returns ------- int Number of records matching the filters.

ParameterTypeDescription
name *string
filters

gigi_gql

Execute a GIGI Query Language statement directly. GIGI Query Language is GIGI's own SQL-flavored DSL — not GraphQL. Example statements:: CREATE BUNDLE events BASE (id CATEGORICAL) FIBER (ts TIMESTAMP, val NUMERIC) INSERT INTO events (id, ts, val) VALUES ('e1', 1700000000, 42.0) COVER events WHERE val >= 10 SCAN events LIMIT 100 Use this when filter-based queries (`gigi_query_bundle`) aren't expressive enough. The LLM should examine the bundle schema (via `gigi_get_schema`) before constructing complex GQL. Parameters ----------…

ParameterTypeDescription
query *string

gigi_export_dhoom

Export a bundle as a DHOOM-formatted string. DHOOM (Davis Human-readable Optimized Object Markup) is a compact, fiber-bundle-native serialization format — see https://dhoom.dev. Use this when the user wants to inspect, share, or archive a bundle in its natural geometric form, or when round-tripping data through other DHOOM-aware tools (geomstats, etc.). Parameters ---------- name : str Bundle name. Returns ------- str The bundle serialized as a DHOOM document.

ParameterTypeDescription
name *string