@enfyra/mcp-server 0.1.18 → 0.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -483,15 +483,18 @@ const googleCallbackUrl = apiBase + "/auth/google/callback"
483
483
  // https://demo.enfyra.io/api/auth/google/callback
484
484
 
485
485
  // 4. After the user provides Google client id/secret, save Enfyra config:
486
- create_record({
486
+ create_records({
487
487
  tableName: "enfyra_oauth_config",
488
- body: JSON.stringify({
489
- provider: "google",
490
- clientId: "<google-client-id>",
491
- clientSecret: "<google-client-secret>",
492
- redirectUri: googleCallbackUrl,
493
- isEnabled: true
494
- })
488
+ globalRulesAckKey: "<globalRulesAckKey>",
489
+ records: JSON.stringify([
490
+ {
491
+ provider: "google",
492
+ clientId: "<google-client-id>",
493
+ clientSecret: "<google-client-secret>",
494
+ redirectUri: googleCallbackUrl,
495
+ isEnabled: true
496
+ }
497
+ ])
495
498
  })`,
496
499
  notes: [
497
500
  'Ask for the app/admin URL such as https://demo.enfyra.io; derive the API base by appending /api.',
@@ -524,15 +527,20 @@ window.location.href = oauthUrl.toString()`,
524
527
  })
525
528
 
526
529
  // If a row exists, update it instead of creating a duplicate.
527
- update_record({
530
+ update_records({
528
531
  tableName: "enfyra_oauth_config",
529
- id: "<existing-config-id>",
530
- body: JSON.stringify({
531
- clientId: "<google-client-id>",
532
- clientSecret: "<google-client-secret>",
533
- redirectUri: "https://demo.enfyra.io/api/auth/google/callback",
534
- isEnabled: true
535
- })
532
+ globalRulesAckKey: "<globalRulesAckKey>",
533
+ items: JSON.stringify([
534
+ {
535
+ id: "<existing-config-id>",
536
+ data: {
537
+ clientId: "<google-client-id>",
538
+ clientSecret: "<google-client-secret>",
539
+ redirectUri: "https://demo.enfyra.io/api/auth/google/callback",
540
+ isEnabled: true
541
+ }
542
+ }
543
+ ])
536
544
  })`,
537
545
  notes: [
538
546
  'Inspect first so setup is idempotent.',
@@ -547,261 +555,142 @@ update_record({
547
555
  useWhen: 'Use when creating or changing persisted data models.',
548
556
  examples: [
549
557
  {
550
- name: 'Design an app schema without SQL-type or FK retries',
551
- code: `// 1. Create independent lookup/entity tables first.
552
- // Replace the app_* names with the current domain's natural names.
553
- create_table({
554
- name: "app_lookup",
555
- globalRulesAckKey: "<globalRulesAckKey from get_enfyra_required_knowledge>",
556
- columns: JSON.stringify([
557
- { name: "name", type: "varchar", isNullable: false },
558
- { name: "slug", type: "varchar", isNullable: false },
559
- { name: "description", type: "text", isNullable: true }
560
- ]),
561
- uniques: JSON.stringify([["slug"]])
562
- })
563
-
564
- create_table({
565
- name: "app_primary_record",
566
- globalRulesAckKey: "<globalRulesAckKey from get_enfyra_required_knowledge>",
567
- columns: JSON.stringify([
568
- { name: "title", type: "varchar", isNullable: false }, // short display text
569
- { name: "summary", type: "text", isNullable: true }, // long prose
570
- { name: "amount", type: "float", isNullable: false, defaultValue: "0" },
571
- { name: "status", type: "varchar", isNullable: false, defaultValue: "draft" },
572
- { name: "metadata", type: "simple-json", isNullable: true } // structured snapshot only when useful
573
- ]),
574
- relations: JSON.stringify([
575
- { propertyName: "lookup", type: "many-to-one", targetTable: "app_lookup", isNullable: true, onDelete: "SET NULL" },
576
- { propertyName: "owner", type: "many-to-one", targetTable: "enfyra_user", isNullable: false, onDelete: "CASCADE" }
577
- ]),
578
- indexes: JSON.stringify([
579
- ["status", "createdAt"],
580
- ["lookup", "status"]
581
- ])
582
- })
583
-
584
- // 2. For association/state tables, uniqueness is data integrity; do not duplicate those fields in indexes.
585
- create_table({
586
- name: "app_participation",
587
- globalRulesAckKey: "<globalRulesAckKey from get_enfyra_required_knowledge>",
588
- columns: JSON.stringify([
589
- { name: "status", type: "varchar", isNullable: false, defaultValue: "active" },
590
- { name: "score", type: "float", isNullable: false, defaultValue: "0" }
591
- ]),
592
- relations: JSON.stringify([
593
- { propertyName: "record", type: "many-to-one", targetTable: "app_primary_record", isNullable: false, onDelete: "CASCADE" },
594
- { propertyName: "actor", type: "many-to-one", targetTable: "enfyra_user", isNullable: false, onDelete: "CASCADE" }
595
- ]),
596
- uniques: JSON.stringify([["record", "actor"]]),
597
- indexes: JSON.stringify([
598
- ["status", "createdAt"]
558
+ name: 'Bulk schema creation with one-item-or-many arrays',
559
+ code: `// 0. First call get_schema_design_context and get_enfyra_required_knowledge.
560
+ // 1. create_tables is always array-shaped. One table = one item.
561
+ create_tables({
562
+ globalRulesAckKey: "<globalRulesAckKey>",
563
+ items: JSON.stringify([
564
+ {
565
+ name: "app_lookup",
566
+ columns: [
567
+ { name: "name", type: "varchar", isNullable: false },
568
+ { name: "slug", type: "varchar", isNullable: false },
569
+ { name: "description", type: "text", isNullable: true }
570
+ ],
571
+ uniques: [["slug"]]
572
+ },
573
+ {
574
+ name: "app_primary_record",
575
+ columns: [
576
+ { name: "title", type: "varchar", isNullable: false },
577
+ { name: "summary", type: "text", isNullable: true },
578
+ { name: "amount", type: "float", isNullable: false, defaultValue: "0" },
579
+ { name: "status", type: "varchar", isNullable: false, defaultValue: "draft" },
580
+ { name: "metadata", type: "simple-json", isNullable: true }
581
+ ],
582
+ relations: [
583
+ { propertyName: "lookup", type: "many-to-one", targetTable: "app_lookup", isNullable: true, onDelete: "SET NULL" },
584
+ { propertyName: "owner", type: "many-to-one", targetTable: "enfyra_user", isNullable: false, onDelete: "CASCADE" }
585
+ ],
586
+ indexes: [["status", "createdAt"], ["lookup", "status"]]
587
+ },
588
+ {
589
+ name: "app_participation",
590
+ columns: [
591
+ { name: "status", type: "varchar", isNullable: false, defaultValue: "active" },
592
+ { name: "score", type: "float", isNullable: false, defaultValue: "0" }
593
+ ],
594
+ relations: [
595
+ { propertyName: "record", type: "many-to-one", targetTable: "app_primary_record", isNullable: false, onDelete: "CASCADE" },
596
+ { propertyName: "actor", type: "many-to-one", targetTable: "enfyra_user", isNullable: false, onDelete: "CASCADE" }
597
+ ],
598
+ uniques: [["record", "actor"]],
599
+ indexes: [["status", "createdAt"]]
600
+ }
599
601
  ])
600
602
  })
601
603
 
602
- // 3. Insert relation data through propertyName, not hidden FK columns.
603
- create_record({
604
+ // 2. create_records is also array-shaped. One row = one item.
605
+ create_records({
604
606
  tableName: "app_primary_record",
605
- data: JSON.stringify({
606
- title: "<display title>",
607
- amount: 29.99,
608
- status: "active",
609
- lookup: "<app_lookup_id>",
610
- owner: "<enfyra_user_id>"
611
- })
612
- })`,
613
- notes: [
614
- 'This is a modeling pattern, not a domain template. Rename app_lookup/app_primary_record/app_participation and relation names to the current domain vocabulary.',
615
- 'Map lookup to categories/tags/plans/status groups, primary_record to the main business entity, owner/actor to enfyra_user, and participation to joins/state/progress/membership when the domain needs it.',
616
- 'Use live column types from enfyra_column.type. Prefer float for decimal-like money/ratings unless live metadata explicitly supports decimal; prefer text/richtext for long prose; prefer simple-json for structured snapshots only when listed by metadata.',
617
- 'Do not create lookupId, owner_id, actorId, or recordIds scalar fields for normalized relationships. Use relations and later write relation propertyName values such as lookup, owner, record, and actor.',
618
- 'A unique pair such as record+actor already creates the indexed unique lookup; keep those fields out of indexes and index only other hot filters such as status+createdAt.',
619
- 'If a reverse collection is needed later, add inversePropertyName only for a real parent detail/deep/count/sort use case.',
620
- ],
621
- },
622
- {
623
- name: 'Create a chat conversation table',
624
- code: `create_table({
625
- name: "chat_conversation",
626
- globalRulesAckKey: "<globalRulesAckKey from get_enfyra_required_knowledge>",
627
- columns: JSON.stringify([
628
- { name: "kind", type: "varchar", isNullable: false, defaultValue: "dm" },
629
- { name: "title", type: "varchar", isNullable: true },
630
- { name: "description", type: "text", isNullable: true }
607
+ globalRulesAckKey: "<globalRulesAckKey>",
608
+ records: JSON.stringify([
609
+ {
610
+ title: "<display title>",
611
+ amount: 29.99,
612
+ status: "active",
613
+ lookup: "<app_lookup_id>",
614
+ owner: "<enfyra_user_id>"
615
+ }
631
616
  ])
632
617
  })`,
633
618
  notes: [
634
- 'Chat is the illustrative domain here. For another domain, keep the same modeling question: what is the parent entity, what is stored on the parent, and what belongs on child rows?',
635
- 'create_table creates the default route for /chat_conversation.',
636
- 'Keep the latest message as a relation named lastMessage after chat_message exists; do not duplicate last message text/date columns.',
637
- 'Do not create tables just to get custom paths; use create_route for that.',
619
+ 'All mutation tools are plural envelopes. Pass one item in the array for a single mutation.',
620
+ 'create_tables creates tables/columns first, then creates requested relations after all batch tables exist, so target table ordering is handled by the tool.',
621
+ 'Use live column types from get_schema_design_context. Prefer float for decimal-like money/ratings unless live metadata explicitly supports decimal.',
622
+ 'Do not create lookupId, owner_id, actorId, or recordIds scalar fields for normalized relationships. Use relations and write relation propertyName values.',
623
+ 'A unique pair such as record+actor already creates the indexed unique lookup; keep those fields out of indexes.',
638
624
  ],
639
625
  },
640
626
  {
641
- name: 'Create relations directly to enfyra_user',
642
- code: `create_table({
643
- name: "chat_message",
644
- globalRulesAckKey: "<globalRulesAckKey from get_enfyra_required_knowledge>",
645
- columns: JSON.stringify([
646
- { name: "text", type: "text", isNullable: false },
647
- { name: "persistStatus", type: "varchar", defaultValue: "persisted" }
648
- ]),
649
- relations: JSON.stringify([
627
+ name: 'Bulk add columns and relations after initial schema',
628
+ code: `create_columns({
629
+ globalRulesAckKey: "<globalRulesAckKey>",
630
+ items: JSON.stringify([
650
631
  {
651
- propertyName: "conversation",
652
- type: "many-to-one",
653
- targetTable: { id: "<chat_conversation_id>" },
654
- isNullable: false,
655
- onDelete: "CASCADE"
632
+ tableId: "<enfyra_user_table_id>",
633
+ name: "emailVerifiedAt",
634
+ type: "datetime",
635
+ isNullable: true,
636
+ isPublished: true
656
637
  },
657
638
  {
658
- propertyName: "sender",
659
- type: "many-to-one",
660
- targetTable: { id: "<enfyra_user_id>" },
639
+ tableId: "<integration_secret_table_id>",
640
+ name: "value",
641
+ type: "text",
661
642
  isNullable: false,
662
- onDelete: "CASCADE"
643
+ isPublished: false,
644
+ isEncrypted: true
663
645
  }
664
- ]),
665
- indexes: JSON.stringify([
666
- ["conversation", "createdAt"]
667
646
  ])
668
- })`,
669
- notes: [
670
- 'The relation names conversation and sender are examples of domain language; choose relation property names that match the entity model users reason about.',
671
- 'Use enfyra_user as the user table.',
672
- 'Use table ids for targetTable when already known; MCP can also resolve exact table names such as "enfyra_user" before schema mutation.',
673
- 'Do not add inverse relations on enfyra_user unless a concrete user-to-record response, UI, or deep query will use it.',
674
- 'Do not add inverse relations just because a parent table exists. If messages are read by querying chat_message with conversation/member filters, conversation.messages and user.messages are not needed.',
675
- 'createdAt, updatedAt, and custom date/datetime/timestamp fields already get auto-generated single-field indexes; add only compound indexes needed by hot filters.',
676
- 'Do not provide physical FK column names; Enfyra derives them.',
677
- ],
678
- },
679
- {
680
- name: 'Add an inverse only for a planned parent child-list query',
681
- code: `create_relation({
682
- sourceTableId: "chat_message",
683
- targetTableId: "chat_conversation",
684
- globalRulesAckKey: "<globalRulesAckKey from get_enfyra_required_knowledge>",
685
- propertyName: "conversation",
686
- inversePropertyName: "messages",
687
- type: "many-to-one",
688
- isNullable: false,
689
- onDelete: "CASCADE"
690
- })`,
691
- notes: [
692
- 'Use inversePropertyName only when the parent table will actually expose, deep-load, count, or sort by that child collection.',
693
- 'For example, conversation.messages is justified if a conversation detail response loads the latest message page with deep.messages limit/sort, or if a list sorts by _max(messages.createdAt).',
694
- 'Translate this to the current domain by asking whether the parent screen needs a child collection or aggregate; if not, keep the relation one-directional.',
695
- 'If the app only filters chat_message by conversation.id, omit inversePropertyName and keep the schema one-directional.',
696
- 'Before creating an inverse, inspect existing relations and state why the reverse traversal is needed.',
697
- ],
698
- },
699
- {
700
- name: 'Add chat_conversation.lastMessage after chat_message exists',
701
- code: `create_relation({
702
- sourceTableId: "chat_conversation",
703
- targetTableId: "chat_message",
704
- globalRulesAckKey: "<globalRulesAckKey from get_enfyra_required_knowledge>",
705
- propertyName: "lastMessage",
706
- type: "many-to-one",
707
- isNullable: true,
708
- onDelete: "SET NULL"
709
- })`,
710
- notes: [
711
- 'Use create_relation to add a relation after both tables exist; update_table does not modify columns or relations.',
712
- 'Use relation fields such as lastMessage.id,lastMessage.text,lastMessage.createdAt when loading conversation lists.',
713
- 'When deleting the current last message, a post-hook should set lastMessage to the newest remaining message or null.',
714
- ],
715
- },
716
- {
717
- name: 'Unread/read table with unique and indexes',
718
- code: `create_table({
719
- name: "chat_message_read",
720
- globalRulesAckKey: "<globalRulesAckKey from get_enfyra_required_knowledge>",
721
- columns: JSON.stringify([
722
- { name: "isRead", type: "boolean", defaultValue: false },
723
- { name: "readAt", type: "datetime", isNullable: true }
724
- ]),
725
- relations: JSON.stringify([
726
- { propertyName: "message", type: "many-to-one", targetTable: { id: "<chat_message_id>" }, onDelete: "CASCADE" },
727
- { propertyName: "conversation", type: "many-to-one", targetTable: { id: "<chat_conversation_id>" }, onDelete: "CASCADE" },
728
- { propertyName: "member", type: "many-to-one", targetTable: { id: "<enfyra_user_id>" }, onDelete: "CASCADE" }
729
- ]),
730
- uniques: JSON.stringify([["message", "member"]]),
731
- indexes: JSON.stringify([
732
- ["conversation", "isRead"]
647
+ })
648
+
649
+ create_relations({
650
+ globalRulesAckKey: "<globalRulesAckKey>",
651
+ items: JSON.stringify([
652
+ {
653
+ sourceTableId: "chat_conversation",
654
+ targetTableId: "chat_message",
655
+ propertyName: "lastMessage",
656
+ type: "many-to-one",
657
+ isNullable: true,
658
+ onDelete: "SET NULL"
659
+ }
733
660
  ])
734
661
  })`,
735
662
  notes: [
736
- 'Unread is per user and per message; do not put global read state on conversation.',
737
- 'message and member appear in the unique constraint, so they must not be added to indexes; unique fields are already indexed by the unique constraint.',
738
- 'readAt is a datetime field and gets its own auto index; explicit indexes should cover only non-unique hot lookup fields.',
739
- 'For chat-list UX, default to a boolean unread dot instead of exact counts.',
663
+ 'create_columns/create_relations run items sequentially through the schema queue.',
664
+ 'Use relation property names only. Never provide fkCol, sourceColumn, targetColumn, or junction column names.',
665
+ 'Use inversePropertyName only when a concrete parent detail/deep/count/sort use case needs the reverse traversal.',
666
+ 'Use isEncrypted=true for encryption at rest. Add isUpdatable=false separately only when the field should be immutable.',
740
667
  ],
741
668
  },
742
669
  {
743
- name: 'Add server-owned user verification fields',
744
- code: `create_column({
745
- tableId: "<enfyra_user_table_id>",
746
- name: "emailVerifiedAt",
747
- globalRulesAckKey: "<globalRulesAckKey from get_enfyra_required_knowledge>",
748
- type: "datetime",
749
- isNullable: true,
750
- isPublished: true,
751
- description: "When the user's email address was verified."
670
+ name: 'Bulk update and destructive preview',
671
+ code: `update_tables({
672
+ globalRulesAckKey: "<globalRulesAckKey>",
673
+ items: JSON.stringify([
674
+ { tableId: "<table_id>", graphqlEnabled: true },
675
+ { tableId: "<settings_table_id>", isSingleRecord: true }
676
+ ])
752
677
  })
753
678
 
754
- create_column({
755
- tableId: "<enfyra_user_table_id>",
756
- name: "emailVerificationStatus",
757
- globalRulesAckKey: "<globalRulesAckKey from get_enfyra_required_knowledge>",
758
- type: "varchar",
759
- isNullable: false,
760
- defaultValue: "pending",
761
- isPublished: true,
762
- description: "Email verification state controlled by server hooks."
679
+ // Destructive tools preview first.
680
+ delete_columns({
681
+ items: JSON.stringify([{ tableId: "<table_id>", columnId: "<column_id>" }])
763
682
  })
764
683
 
765
- create_column({
766
- tableId: "<integration_secret_table_id>",
767
- name: "value",
768
- globalRulesAckKey: "<globalRulesAckKey from get_enfyra_required_knowledge>",
769
- type: "text",
770
- isNullable: false,
771
- isPublished: false,
772
- isEncrypted: true,
773
- description: "Encrypted secret value."
774
- })`,
775
- notes: [
776
- 'Run schema-changing calls sequentially. Do not parallelize create_column calls.',
777
- 'create_column fetches enfyra_table and patches only real persisted columns with id/_id; generated metadata projections such as createdAt, updatedAt, or relation FK display fields are skipped.',
778
- 'Use isEncrypted=true for encryption at rest. Add isUpdatable=false separately only when the field should be immutable.',
779
- 'Use hooks or field permissions to prevent clients from updating server-owned fields.',
780
- ],
781
- },
782
- {
783
- name: 'Patch table schema from metadata only',
784
- code: `// Safe schema patch process used by create_column/update_column/delete_column:
785
- // 1. Read GET /metadata and find the target table.
786
- // 2. Keep only persisted column rows with id/_id.
787
- // 3. Add, change, or remove the intended column.
788
- // 4. PATCH /enfyra_table/:id with the full preserved columns array.
789
- // 5. If the backend returns requiredConfirmHash, resend with ?schemaConfirmHash=<hash>.
790
- // 6. Re-read metadata and verify unrelated column ids still exist.
791
-
792
- create_column({
793
- tableId: "<table_id>",
794
- name: "api_secret",
795
- globalRulesAckKey: "<globalRulesAckKey from get_enfyra_required_knowledge>",
796
- type: "text",
797
- isPublished: false,
798
- isEncrypted: true
684
+ // Apply only after explicit user approval.
685
+ delete_columns({
686
+ globalRulesAckKey: "<globalRulesAckKey>",
687
+ confirm: true,
688
+ items: JSON.stringify([{ tableId: "<table_id>", columnId: "<column_id>" }])
799
689
  })`,
800
690
  notes: [
801
- 'Do not rebuild schema cascade payloads from enfyra_table?fields=columns.*; nested fields can be truncated or relation-derived.',
802
- 'Generated projections such as createdAt, updatedAt, and relation FK display fields without id/_id are not valid enfyra_column rows.',
803
- 'Never delete or omit unrelated persisted columns when adding one field.',
804
- 'Run schema-changing calls sequentially; migration locks are backend-owned.',
691
+ 'update_tables/update_columns/update_records reject ambiguous duplicate ids where applicable and run sequentially.',
692
+ 'delete_tables/delete_columns/delete_relations/delete_records return previews unless confirm=true.',
693
+ 'Schema tools serialize internally; do not parallelize schema mutation tool calls.',
805
694
  ],
806
695
  },
807
696
  ],
@@ -991,13 +880,17 @@ query_table({
991
880
  GET /enfyra/integrations?filter={"api_token":{"_eq":"plaintext-token"}}
992
881
 
993
882
  // Good: store a separate non-secret lookup hash if lookup is needed.
994
- create_column({
995
- tableId: "<integrations_table_id>",
996
- name: "api_token_lookup_sha256",
883
+ create_columns({
997
884
  globalRulesAckKey: "<globalRulesAckKey from get_enfyra_required_knowledge>",
998
- type: "varchar",
999
- isNullable: false,
1000
- isPublished: false
885
+ items: JSON.stringify([
886
+ {
887
+ tableId: "<integrations_table_id>",
888
+ name: "api_token_lookup_sha256",
889
+ type: "varchar",
890
+ isNullable: false,
891
+ isPublished: false
892
+ }
893
+ ])
1001
894
  })
1002
895
 
1003
896
  // In the create/update handler or pre-hook, hash plaintext before it is encrypted.
@@ -1091,17 +984,21 @@ const scope = {
1091
984
  },
1092
985
  {
1093
986
  name: 'Encrypted field table definition',
1094
- code: `create_table({
1095
- name: "integrations",
987
+ code: `create_tables({
1096
988
  globalRulesAckKey: "<globalRulesAckKey from get_enfyra_required_knowledge>",
1097
- columns: JSON.stringify([
1098
- { name: "name", type: "varchar", isNullable: false },
989
+ items: JSON.stringify([
1099
990
  {
1100
- name: "api_token",
1101
- type: "varchar",
1102
- isNullable: false,
1103
- isPublished: false,
1104
- isEncrypted: true
991
+ name: "integrations",
992
+ columns: [
993
+ { name: "name", type: "varchar", isNullable: false },
994
+ {
995
+ name: "api_token",
996
+ type: "varchar",
997
+ isNullable: false,
998
+ isPublished: false,
999
+ isEncrypted: true
1000
+ }
1001
+ ]
1105
1002
  }
1106
1003
  ])
1107
1004
  })`,
@@ -1659,7 +1556,7 @@ ensure_page_extension({
1659
1556
  'Use enfyra_menu.label, not title.',
1660
1557
  'Sensitive admin menus should include a permission condition at creation time.',
1661
1558
  'For page extensions, create the menu first with ensure_menu and pass its id to ensure_page_extension.',
1662
- 'When editing an existing extension by id or name, use update_extension_code so local guards plus /enfyra_extension/preview and the save happen in one atomic call. Do not spend a second LLM step on validate_extension_code followed by update_record unless the user requested validation-only output.',
1559
+ 'When editing an existing extension by id or name, use update_extension_code so local guards plus /enfyra_extension/preview and the save happen in one atomic call. Do not spend a second LLM step on validate_extension_code followed by update_records unless the user requested validation-only output.',
1663
1560
  'Call get_extension_theme_contract before writing or reviewing page/widget/global extension UI; that tool is the authority for theme, color, layout, modal, drawer, and shell registry details.',
1664
1561
  'Call get_enfyra_required_knowledge before saving extension code, pass globalRulesAckKey as globalRulesAckKey, and pass extensionAckKey as extensionKnowledgeAckKey.',
1665
1562
  'Page extensions must register the app-shell PageHeader with usePageHeaderRegistry instead of rendering a custom top header.',
@@ -1 +1 @@
1
- {"version":3,"file":"mcp-examples.js","sourceRoot":"","sources":["../../src/lib/mcp-examples.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AI,EAAE,6FAA6F;SACpG,CAAC;IACJ,CAAC;IAED,MAAM,KAAK,GAAG,kBAAkB,CAAC,QAAQ,CAAC,CAAC;IAC3C,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO;YACL,KAAK,EAAE,6BAA6B,QAAQ,GAAG;YAC/C,UAAU,EAAE,qBAAqB,EAAE;SACpC,CAAC;IACJ,CAAC;IAED,OAAO;QACL,QAAQ;QACR,cAAc,EAAE,uBAAuB;QACvC,GAAG,KAAK;KACT,CAAC;AACJ,CAAC"}
@@ -25,10 +25,10 @@ export function buildMcpServerInstructions(apiBaseUrl) {
25
25
  '- When the task intent is clear but the right tool path is not, call `discover_enfyra_workflows` with the intent, risk, and optional surface. Use `detail: "plan"` before writes and follow `primaryPath` in order; do not choose from the flat tool list first.',
26
26
  '- Discover before deciding. For architecture/capability questions call `discover_enfyra_system`; for DB/pk/runtime/cache context call `discover_runtime_context`; for filters/deep/sort/relation query shape call `discover_query_capabilities`. Run broad discovery tools sequentially, not in parallel.',
27
27
  '- Inspect narrowly. Use `inspect_table`, `inspect_route`, `inspect_feature`, and DB-backed runtime zone tools for the table/route/feature/surface being changed instead of loading broad metadata.',
28
- '- For DB-backed runtime artifacts not visible in repo search, use `search_runtime_zone`: `mode: "search"` first, then `mode: "inspect"` with `nextInspect.input`. Key zones: `admin_ui`, `api_runtime`, `flow_runtime`, `websocket_runtime`, `graphql_runtime`, `schema_data`, `package_runtime`, `storage_file`, `auth_security`.',
28
+ '- For DB-backed runtime artifacts, use `search_runtime_zone`: search first, then inspect with `nextInspect.input`. Zones: `admin_ui`, `api_runtime`, `flow_runtime`, `websocket_runtime`, `graphql_runtime`, `schema_data`, `package_runtime`, `storage_file`, `auth_security`.',
29
29
  '- Load examples only when needed. Use `get_enfyra_examples` by category. Before extension UI, call `get_extension_theme_contract`; call `get_theme_class_reference` for exact eapp/Nuxt UI theme classes.',
30
30
  '- For server scripts, call `discover_script_contexts` before writing or reviewing handler/hook/flow/websocket/GraphQL logic.',
31
- '- Before mutating metadata, schema, routes, permissions, menus, packages, cache state, dynamic code, or extension UI, call `get_enfyra_required_knowledge`, read the global rules, and pass `globalRulesAckKey` into write tools. Dynamic server code also requires `dynamicCodeAckKey`; extension code also requires `extensionAckKey`.',
31
+ '- Before mutating metadata, schema, routes, permissions, menus, packages, cache state, dynamic code, or extension UI, call `get_enfyra_required_knowledge` and pass `globalRulesAckKey`. Dynamic code also needs `dynamicCodeAckKey`; extension code needs `extensionAckKey`.',
32
32
  '- With non-root API tokens, call `get_permission_profile` before relying on admin helper tools or when debugging 403s. MCP admin helpers require ordinary route permissions for static admin routes such as `/admin/script/validate`, `/admin/test/run`, `/admin/flow/trigger/:id`, and `/admin/reload/*`.',
33
33
  '- Prefer the most specific business operation tool over raw metadata CRUD. `discover_enfyra_workflows` provides the current operation-tool map and negative-routing avoidTools.',
34
34
  '- Before saving standalone dynamic script code, call `validate_dynamic_script` unless the chosen write tool already validates the code. For extension edits, prefer `update_extension_code`, `extension_workflow`, or `ensure_*_extension`; these validate and save atomically. Use `validate_extension_code` only for validation-only checks.',
@@ -40,16 +40,17 @@ export function buildMcpServerInstructions(apiBaseUrl) {
40
40
  '- Tool JSON responses use `responseFormat: "json+columnar-v1"`. If rows are columnar, read values by matching `columns[index]` to `rows[n][index]`; do not guess row keys.',
41
41
  '- `query_table`, `get_all_routes`, and `get_all_tables` require explicit intent: pass `limit` for bounded reads or `all: true` for a complete list. Do not invent arbitrary limits such as 30 or 50.',
42
42
  '- Read tools are minimal by default. Pass explicit `fields`; use metadata inspection before guessing field/relation names. Field exclusion mode exists: `fields=-compiledCode`, and `fields=id,-compiledCode` still means all readable fields except `compiledCode`.',
43
- '- Mutations return ids/status by default. Re-read with `find_one_record` or `query_table` and explicit `fields` when the saved row matters.',
43
+ '- Mutations return ids/status by default. Re-read with explicit `fields` only when saved shape matters.',
44
+ '- Mutation tools are plural-only. Use one-item arrays for single writes; tools preflight arrays and run sequentially.',
44
45
  '- Dynamic repository reads use `filter`, not `where`: `@REPOS.table.find({ filter: {...} })`, `@REPOS.secure.table.find({ filter: {...} })`, `#table.find({ filter: {...} })`, and `exists(filter)`.',
45
46
  '- Dynamic repositories have two trust paths. Use secure `@REPOS.main` or `@REPOS.secure.<table>` for user-facing data. `@REPOS.<table>` is trusted/internal and can see hidden fields; never return raw trusted rows to users.',
46
47
  '- Secure repository choice is not a substitute for authorization. Handlers and hooks still need route access, owner/tenant filters, and explicit checks before returning or mutating records.',
47
48
  '- Filters, sort helpers, counts, and aggregates over unpublished fields/private relations are sensitive data surfaces; do not expose them in user-facing endpoints.',
48
49
  '- Use `enfyra_user` as the user table. Model record links as real relations using relation `propertyName` values, not physical FK fields like `userId`, `conversationId`, `senderId`, or `memberId` in generated DB code.',
49
- '- Before schema/app generation, call `get_schema_design_context`; it returns live column types, table/column/relation input attributes, constraint shape, and creation order. Do not invent SQL dialect types unless liveColumnTypes lists them.',
50
+ '- Before schema/app generation, call `get_schema_design_context`; use live types and plural schema tools, not SQL guesses.',
50
51
  '- Relation design must stay minimal. Create the owning relation needed for writes/filters first; add `inversePropertyName` only when a concrete response, UI, deep query, aggregate sort/count, or parent-to-child traversal will use that reverse field. For schema work, explicitly review existing relations and mention which inverses are intentionally present or intentionally omitted.',
51
52
  '- Do not call internal/no-route system tables such as `enfyra_column` or `enfyra_session` through generic CRUD. Use table/column/relation tools and route-backed tables discovered from metadata.',
52
- '- Custom API paths use `api_endpoint_workflow` when a handler is needed and the model should follow returned nextSteps. Use lower-level `create_route` without `mainTableId` only when intentionally creating a route shell; `create_table` is only for new persisted data.',
53
+ '- Custom API paths use `api_endpoint_workflow` when a handler is needed and the model should follow returned nextSteps. Use lower-level `create_route` without `mainTableId` only when intentionally creating a route shell; `create_tables` is only for new persisted data.',
53
54
  '- For canonical table reads and RLS, preserve client-controlled query shape: do not override `@QUERY.fields`, `@QUERY.deep`, `@QUERY.sort`, `@QUERY.limit`, `@QUERY.page`, `@QUERY.meta`, `@QUERY.aggregate`, or `debugMode`. Merge only security filters into `@QUERY.filter`.',
54
55
  '- If a REST read returns a column or relation marked `isPublished=false`, including through dotted relation fields such as `fields=owner.secret` or equivalent `deep` projections, treat it as an Enfyra core support issue. Confirm the minimal repro with `test_rest_endpoint`, tell the user to send a Cloud/support ticket with the table, field path, and response shape, and do not present route-local pre-hooks or frontend hiding as the real fix.',
55
56
  '- Script source is `sourceCode`; `compiledCode` is generated and may differ textually because macros expand. Do not warn about source/compiled mismatch unless validation or runtime behavior proves the compiled artifact is stale.',
@@ -1 +1 @@
1
- {"version":3,"file":"mcp-instructions.js","sourceRoot":"","sources":["../../src/lib/mcp-instructions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,mEAAmE;AACnE,MAAM,UAAU,gBAAgB,CAAC,UAAU;IACzC,MAAM,IAAI,GAAG,MAAM,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACzD,OAAO;QACL,cAAc,EAAE,GAAG,IAAI,UAAU;QACjC,gBAAgB,EAAE,GAAG,IAAI,iBAAiB;KAC3C,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,UAAU;IACnD,MAAM,IAAI,GAAG,MAAM,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACzD,MAAM,EAAE,cAAc,EAAE,gBAAgB,EAAE,GAAG,gBAAgB,CAAC,UAAU,CAAC,CAAC;IAE1E,OAAO;QACL,eAAe;QACf,EAAE;QACF,gCAAgC,IAAI,KAAK;QACzC,wBAAwB,cAAc,YAAY,gBAAgB,KAAK;QACvE,EAAE;QACF,eAAe;QACf,6JAA6J;QAC7J,kQAAkQ;QAClQ,2SAA2S;QAC3S,oMAAoM;QACpM,oUAAoU;QACpU,2MAA2M;QAC3M,8HAA8H;QAC9H,0UAA0U;QAC1U,4SAA4S;QAC5S,iLAAiL;QACjL,gVAAgV;QAChV,oKA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