inou/portal
James 257a021669 feat: add create_entry MCP tool for direct AI-to-inou writing
Adds a write-capable create_entry tool to the MCP server, enabling
Claude (Opus/Sonnet/Haiku) to save health insights directly into a
dossier instead of losing them in chat.

Tool: create_entry
- Required: dossier (16-char hex), category (e.g. 'supplement',
  'nutrition', 'tracker'), value (short label)
- Optional: type, summary, data (JSON), parent, timestamp (default: now)
- RBAC-enforced via EntryWrite — only writable dossiers accepted
- Category validated against CategoryFromString; unknown categories
  return a helpful error listing valid options
- data field validated as JSON before write

Use cases:
- Claude analyzing supplements: 'Create a supplement entry for Vitamin D3
  5000 IU with notes on dosing rationale'
- Nutrition logs from a meal conversation
- Tracker observations or AI-generated insights with provenance

The MCP server was previously read-only (all tools had readOnlyHint).
create_entry intentionally omits readOnlyHint as it mutates state.
2026-03-23 12:36:08 -04:00
..
bin Initial commit 2026-02-01 02:43:27 -05:00
lang Document processing pipeline: OpenRouter OCR + Stepfun extraction 2026-03-15 05:28:05 -04:00
static feat: add AI commentary to lab trend charts 2026-03-23 12:27:20 -04:00
templates feat: add AI commentary to lab trend charts 2026-03-23 12:27:20 -04:00
access_log.go Initial commit 2026-02-01 02:43:27 -05:00
api_client.go TASK-019: Fix XSS vulnerability in DICOM series display 2026-03-23 00:36:06 -04:00
api_mobile.go feat: enrich /api/v1/dashboard with family profile display fields 2026-03-23 12:32:57 -04:00
api_proxy.go Lab reference charts, import tracking, DossierFromEntry consolidation 2026-02-24 05:15:03 -05:00
defense.go chore: commit accumulated WIP (Mar 23) 2026-03-23 12:11:13 -04:00
dossier_sections.go feat: add AI commentary to lab trend charts 2026-03-23 12:27:20 -04:00
genome.go chore: commit accumulated WIP (Mar 23) 2026-03-23 12:11:13 -04:00
import_json.go Lab reference charts, import tracking, DossierFromEntry consolidation 2026-02-24 05:15:03 -05:00
inou-portal Initial commit 2026-02-01 02:43:27 -05:00
main.go feat: add AI commentary to lab trend charts 2026-03-23 12:27:20 -04:00
main.go.bak Initial commit 2026-02-01 02:43:27 -05:00
mcp_http.go feat: add create_entry MCP tool for direct AI-to-inou writing 2026-03-23 12:36:08 -04:00
mcp_tools.go feat: add create_entry MCP tool for direct AI-to-inou writing 2026-03-23 12:36:08 -04:00
oauth.go Checkpoint: all pending changes across lib, portal, api, tools 2026-03-11 23:37:44 -04:00
oauth_chatgpt.go chore: commit accumulated WIP (Mar 23) 2026-03-23 12:11:13 -04:00
portal Initial commit 2026-02-01 02:43:27 -05:00
trackers.go Lab reference charts, import tracking, DossierFromEntry consolidation 2026-02-24 05:15:03 -05:00
upload.go Document processing pipeline: OpenRouter OCR + Stepfun extraction 2026-03-15 05:28:05 -04:00