From 56e6977e2ef2a145d57edc666860106a55f2efa8 Mon Sep 17 00:00:00 2001 From: Kenneth Hough Date: Sun, 2 Aug 2026 19:59:10 -0500 Subject: [PATCH] docs: point KyteJS SDK CRUD/session methods at the MCP authoring guide Doc-only. The get/post/put/delete + session signatures and response/error contract are documented for AI code generation in kyte-php's get_kytejs_guide MCP tool; add a KEEP-IN-SYNC note so a material SDK change updates that guide in the same change and doesn't drift. Co-Authored-By: Claude Opus 4.8 (1M context) --- kyte-source.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/kyte-source.js b/kyte-source.js index 0af6579..48e9796 100644 --- a/kyte-source.js +++ b/kyte-source.js @@ -332,6 +332,15 @@ class Kyte { } ); } + /* ⚠️ KEEP IN SYNC WITH THE MCP AUTHORING GUIDE. + * The signatures + response/error contract of get/post/put/delete and + * sessionCreate/sessionDestroy below are documented for AI code generation in + * kyte-php's get_kytejs_guide MCP tool (Mcp/Tools/AccountTools::getKytejsGuide). + * Any material change here (param order, response.data shape, error callback + * behaviour, session signatures) MUST update that guide in the same change, or + * AI-generated page JS will drift out of spec. + */ + /* Post * * Use sign() to obtain authorization to transact and