technology / ai
AI and MCP
AI connects to AiiB through the Model Context Protocol. You choose the AI, and people decide what goes into documents.
mcp server
MCP server
claude mcp add --transport http aiib http://127.0.0.1:8091/mcp \
--header "Authorization: Bearer <token from Settings>"- transport
- Streamable HTTP
- endpoint
- http://127.0.0.1:8091/mcp (8094 on the Mac App Store version; on the device only)
- auth
- Authorization: Bearer <token>
- token
- 244 random bits. Generated when enabled in Settings, and can be regenerated
- tools
- 7 read tools (6 on store versions) / 58 with a token
draft flow
People approve drafts
AI never edits documents directly.
- 1Build a working draft
AI calls tools against an in-memory draft in the sidecar. Real documents do not change.
- 2Submit as a proposal
Calling submit_* places the draft in an inbox, with up to 20 pending.
- 3Review on screen
The user inspects the content. Drafts not adopted are discarded when the app closes.
- 4Adopt
Adoption saves through the interface’s normal path. When editing an existing document, the original is kept as a version.
draft kinds
- deck
- Slides
- design
- Design
- doc
- Document
- analysis
- Analysis note
- minutes
- Minutes
tools
Tools
- read
- list_decks / get_deck_outline / list_material_files / read_material_file / render_slide_image / describe_workspace / research_lookup
- deck
- create_deck / create_deck_from_template / list_deck_templates / list_roles / list_genres / list_kinds / get_kind_schema / get_kind_schemas / append_slide / append_slides / get_slide_fields / patch_slide_fields / patch_slides / reorder_slides / remove_slide / validate_deck / open_deck_for_edit / submit_deck / get_submission_status
- design
- design_list / design_templates / design_create / design_open_for_edit / design_get / design_edit / submit_design
- doc
- doc_templates / doc_create / doc_list / doc_open_for_edit / doc_get / doc_write / submit_doc
- minutes
- minutes_create / minutes_list / minutes_open_for_edit / minutes_get / minutes_write / submit_minutes
- analysis
- analysis_list / analysis_templates / analysis_steps / analysis_create / analysis_open_for_edit / analysis_get / analysis_add_dataset / analysis_add_step / analysis_remove_step / analysis_run / analysis_set_interpretation / submit_analysis
guards
Guards on AI output
- Redaction stays hidden
Redacted words are replaced with markers before reaching AI and restored when a draft comes back.
- The app does the math
Analysis numbers are computed by the app’s steps. Interpretations containing numbers not in the results are rejected.
- Existing data is limited
When editing an existing analysis, AI receives only column names, statistics and the first few rows.
- Unreadable operations are refused
For design edits and similar, one unreadable operation means nothing changes.
providers
Provider traffic
- allowed hosts
- api.openai.com / api.anthropic.com / generativelanguage.googleapis.com
- check
- Both the URL prefix and the host are verified
- local models
- llama.cpp OpenAI-compatible API