@xano/developer-mcp 1.0.5 → 1.0.7

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.
@@ -1,192 +0,0 @@
1
- # XanoScript AI Documentation v2 - Implementation Plan
2
-
3
- ## Design Principles
4
-
5
- ### AI-First Documentation Goals
6
- 1. **Scannable** - AI can quickly locate relevant syntax/patterns
7
- 2. **Self-contained** - Each doc has everything needed for its topic
8
- 3. **Pattern-consistent** - Identical structure across all docs
9
- 4. **Minimal but complete** - Not verbose, but covers all cases
10
- 5. **Examples inline** - Code immediately follows syntax it demonstrates
11
-
12
- ### Document Structure Template
13
- Every doc follows this structure:
14
- ```
15
- ---
16
- applyTo: "<glob pattern>"
17
- ---
18
-
19
- # <Topic>
20
-
21
- ## Quick Reference
22
- <Table or code block with syntax summary>
23
-
24
- ## Overview
25
- <1-2 paragraph explanation>
26
-
27
- ## <Concept 1>
28
- ### Syntax
29
- ### Example
30
- ### Notes
31
-
32
- ## <Concept 2>
33
- ...
34
-
35
- ## Best Practices
36
- <Bullet list>
37
-
38
- ## Common Patterns
39
- <Real-world usage patterns>
40
- ```
41
-
42
- ---
43
-
44
- ## Proposed File Structure
45
-
46
- ### Core (Required for any XanoScript work)
47
- | File | Purpose | Source Files |
48
- |------|---------|--------------|
49
- | `README.md` | Overview, workspace structure, getting started | README.md, workspace.md |
50
- | `syntax.md` | Expressions, operators, filters | expression_guideline.md, query_filter.md |
51
- | `types.md` | Data types, input blocks, validation | input_guideline.md, functions.md (input section) |
52
-
53
- ### Primary Constructs
54
- | File | Purpose | Source Files |
55
- |------|---------|--------------|
56
- | `tables.md` | Database schemas, indexes, relationships | table_guideline.md, table_examples.md |
57
- | `functions.md` | Reusable function stacks | function_guideline.md, function_examples.md |
58
- | `apis.md` | HTTP API endpoints | api_query_guideline.md, api_query_examples.md |
59
- | `tasks.md` | Scheduled jobs | task_guideline.md, task_examples.md |
60
- | `database.md` | All db.* operations | db_query_guideline.md, functions.md (db section) |
61
-
62
- ### AI Integration
63
- | File | Purpose | Source Files |
64
- |------|---------|--------------|
65
- | `agents.md` | AI agents, LLM providers | agent_guideline.md, agent_examples.md |
66
- | `tools.md` | AI tools for agents/MCP | tool_guideline.md, tool_examples.md |
67
- | `mcp-servers.md` | MCP server configuration | mcp_server_guideline.md, mcp_server_examples.md |
68
-
69
- ### Advanced Features
70
- | File | Purpose | Source Files |
71
- |------|---------|--------------|
72
- | `testing.md` | Unit tests, mocks, assertions | unit_testing_guideline.md |
73
- | `integrations.md` | Cloud, Redis, storage, security | functions.md (cloud/redis/security sections) |
74
- | `frontend.md` | Static frontend, Lovable migration | frontend_guideline.md, build_from_lovable.md |
75
- | `ephemeral.md` | Ephemeral services and jobs | ephemeral_environment_guideline.md |
76
-
77
- ### Reference (Optional)
78
- | File | Purpose | Source Files |
79
- |------|---------|--------------|
80
- | `tips.md` | Tips, tricks, gotchas | tips_and_tricks.md |
81
-
82
- ---
83
-
84
- ## Content Reduction Strategy
85
-
86
- ### V1 Verbosity Issues
87
- 1. **Redundant examples** - Multiple examples showing same pattern
88
- 2. **Explanation repetition** - Same concept explained in guideline AND examples
89
- 3. **Over-commented code** - Examples have excessive inline comments
90
- 4. **Separate files** - guideline.md + examples.md = duplication
91
-
92
- ### V2 Approach
93
- 1. **One canonical example** per feature (not 3-5)
94
- 2. **Table-based syntax reference** - Quick scan, no prose
95
- 3. **Inline examples** - Example immediately after syntax
96
- 4. **Comments only for non-obvious** - Trust the reader
97
-
98
- ### Example Transformation
99
-
100
- **V1 Style (verbose):**
101
- ```xs
102
- // This function calculates the total cost
103
- // by multiplying quantity by price per item
104
- // and returns the result
105
- function "maths/calculate_total" {
106
- description = "Calculate the total cost based on quantity and price per item"
107
-
108
- input {
109
- int quantity filters=min:0 {
110
- description = "Number of items"
111
- }
112
-
113
- decimal price_per_item filters=min:0.01 {
114
- description = "Price for each item"
115
- }
116
- }
117
-
118
- stack {
119
- var $total {
120
- value = 0
121
- description = "Initialize total"
122
- }
123
-
124
- math.add $total {
125
- value = $input.quantity * $input.price_per_item
126
- description = "Calculate total"
127
- }
128
- }
129
-
130
- response = $total
131
- }
132
- ```
133
-
134
- **V2 Style (minimal):**
135
- ```xs
136
- function "calculate_total" {
137
- input {
138
- int quantity filters=min:0
139
- decimal price filters=min:0.01
140
- }
141
- stack {
142
- var $total { value = $input.quantity * $input.price }
143
- }
144
- response = $total
145
- }
146
- ```
147
-
148
- ---
149
-
150
- ## Estimated Reduction
151
-
152
- | Metric | V1 | V2 Target | Reduction |
153
- |--------|-----|-----------|-----------|
154
- | Files | 27 | 14 | ~48% |
155
- | Total Lines | ~5000 | ~2000 | ~60% |
156
- | Avg File Size | 185 lines | 140 lines | ~25% |
157
-
158
- ---
159
-
160
- ## Implementation Order
161
-
162
- ### Phase 1: Foundation
163
- 1. README.md - Workspace overview
164
- 2. syntax.md - All expressions and filters
165
- 3. types.md - Data types and inputs
166
-
167
- ### Phase 2: Core Constructs
168
- 4. tables.md - Database tables
169
- 5. functions.md - Functions
170
- 6. apis.md - API endpoints
171
- 7. tasks.md - Scheduled tasks
172
- 8. database.md - DB operations
173
-
174
- ### Phase 3: AI Features
175
- 9. agents.md - AI agents
176
- 10. tools.md - AI tools
177
- 11. mcp-servers.md - MCP servers
178
-
179
- ### Phase 4: Advanced
180
- 12. testing.md - Unit testing
181
- 13. integrations.md - Cloud/Redis/Security
182
- 14. frontend.md - Frontend + Lovable
183
- 15. ephemeral.md - Ephemeral environments
184
-
185
- ---
186
-
187
- ## Questions Resolved
188
-
189
- - [x] Structure: Consolidated (single file per concept)
190
- - [x] Examples: Minimal (just enough to demonstrate)
191
- - [x] Quick Reference: Yes (syntax cheatsheets at top)
192
- - [x] Scope: Complete coverage (all features)