@xano/developer-mcp 1.0.27 → 1.0.28

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.
Files changed (76) hide show
  1. package/README.md +1 -1
  2. package/dist/api_docs/format.d.ts +5 -0
  3. package/dist/api_docs/format.js +171 -0
  4. package/dist/api_docs/index.d.ts +52 -0
  5. package/dist/api_docs/index.js +111 -0
  6. package/dist/api_docs/topics/agent.d.ts +2 -0
  7. package/dist/api_docs/topics/agent.js +142 -0
  8. package/dist/api_docs/topics/api.d.ts +2 -0
  9. package/dist/api_docs/topics/api.js +176 -0
  10. package/dist/api_docs/topics/apigroup.d.ts +2 -0
  11. package/dist/api_docs/topics/apigroup.js +124 -0
  12. package/dist/api_docs/topics/authentication.d.ts +2 -0
  13. package/dist/api_docs/topics/authentication.js +61 -0
  14. package/dist/api_docs/topics/branch.d.ts +2 -0
  15. package/dist/api_docs/topics/branch.js +73 -0
  16. package/dist/api_docs/topics/file.d.ts +2 -0
  17. package/dist/api_docs/topics/file.js +70 -0
  18. package/dist/api_docs/topics/function.d.ts +2 -0
  19. package/dist/api_docs/topics/function.js +164 -0
  20. package/dist/api_docs/topics/history.d.ts +2 -0
  21. package/dist/api_docs/topics/history.js +149 -0
  22. package/dist/api_docs/topics/mcp_server.d.ts +2 -0
  23. package/dist/api_docs/topics/mcp_server.js +139 -0
  24. package/dist/api_docs/topics/middleware.d.ts +2 -0
  25. package/dist/api_docs/topics/middleware.js +156 -0
  26. package/dist/api_docs/topics/realtime.d.ts +2 -0
  27. package/dist/api_docs/topics/realtime.js +112 -0
  28. package/dist/api_docs/topics/start.d.ts +2 -0
  29. package/dist/api_docs/topics/start.js +107 -0
  30. package/dist/api_docs/topics/table.d.ts +2 -0
  31. package/dist/api_docs/topics/table.js +195 -0
  32. package/dist/api_docs/topics/task.d.ts +2 -0
  33. package/dist/api_docs/topics/task.js +165 -0
  34. package/dist/api_docs/topics/tool.d.ts +2 -0
  35. package/dist/api_docs/topics/tool.js +150 -0
  36. package/dist/api_docs/topics/workflows.d.ts +2 -0
  37. package/dist/api_docs/topics/workflows.js +131 -0
  38. package/dist/api_docs/topics/workspace.d.ts +2 -0
  39. package/dist/api_docs/topics/workspace.js +153 -0
  40. package/dist/api_docs/types.d.ts +79 -0
  41. package/dist/api_docs/types.js +4 -0
  42. package/dist/meta_api_docs/topics/workspace.js +45 -2
  43. package/dist/templates/init-workspace.d.ts +10 -0
  44. package/dist/templates/init-workspace.js +278 -0
  45. package/dist/templates/xanoscript-index.d.ts +11 -0
  46. package/dist/templates/xanoscript-index.js +72 -0
  47. package/dist/xanoscript_docs/README.md +3 -13
  48. package/dist/xanoscript_docs/ephemeral.md +330 -0
  49. package/dist/xanoscript_docs/functions.md +0 -21
  50. package/dist/xanoscript_docs/integrations.md +0 -10
  51. package/dist/xanoscript_docs/performance.md +1 -10
  52. package/dist/xanoscript_docs/realtime.md +1 -48
  53. package/dist/xanoscript_docs/security.md +2 -0
  54. package/dist/xanoscript_docs/tools.md +2 -21
  55. package/dist/xanoscript_docs/triggers.md +2 -27
  56. package/dist/xanoscript_docs_auto/README.md +119 -0
  57. package/dist/xanoscript_docs_auto/agents.md +446 -0
  58. package/dist/xanoscript_docs_auto/apis.md +517 -0
  59. package/dist/xanoscript_docs_auto/control-flow.md +543 -0
  60. package/dist/xanoscript_docs_auto/database.md +551 -0
  61. package/dist/xanoscript_docs_auto/debugging.md +527 -0
  62. package/dist/xanoscript_docs_auto/filters.md +464 -0
  63. package/dist/xanoscript_docs_auto/functions.md +431 -0
  64. package/dist/xanoscript_docs_auto/integrations.md +657 -0
  65. package/dist/xanoscript_docs_auto/mcp-servers.md +408 -0
  66. package/dist/xanoscript_docs_auto/operators.md +368 -0
  67. package/dist/xanoscript_docs_auto/syntax.md +287 -0
  68. package/dist/xanoscript_docs_auto/tables.md +447 -0
  69. package/dist/xanoscript_docs_auto/tasks.md +479 -0
  70. package/dist/xanoscript_docs_auto/testing.md +574 -0
  71. package/dist/xanoscript_docs_auto/tools.md +485 -0
  72. package/dist/xanoscript_docs_auto/triggers.md +595 -0
  73. package/dist/xanoscript_docs_auto/types.md +323 -0
  74. package/dist/xanoscript_docs_auto/variables.md +462 -0
  75. package/dist/xanoscript_docs_auto/version.json +5 -0
  76. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ import type { TopicDoc } from "../types.js";
2
+ export declare const mcpServerDoc: TopicDoc;
@@ -0,0 +1,139 @@
1
+ export const mcpServerDoc = {
2
+ topic: "mcp_server",
3
+ title: "MCP Server Management",
4
+ description: `MCP (Model Context Protocol) Servers expose tools to external AI clients like Claude Desktop, Cursor, or other MCP-compatible applications.
5
+
6
+ ## Key Concepts
7
+ - MCP Servers expose Xano tools via the MCP protocol
8
+ - External AI clients can discover and call these tools
9
+ - Supports authentication for secure access
10
+ - Can have triggers for event-driven invocation
11
+ - Standardized interface for AI tool discovery
12
+
13
+ ## Use Cases
14
+ - Expose Xano functionality to Claude Desktop
15
+ - Integrate with AI IDEs like Cursor
16
+ - Build custom AI assistants with Xano backend
17
+ - Provide tools to any MCP-compatible client`,
18
+ ai_hints: `- MCP Servers expose existing tools to external clients
19
+ - Create tools first, then create MCP server to expose them
20
+ - Authentication settings control who can access the server
21
+ - Use triggers to invoke actions when MCP events occur
22
+ - Check documentation endpoint for client setup instructions`,
23
+ endpoints: [
24
+ {
25
+ method: "GET",
26
+ path: "/workspace/{workspace_id}/mcp_server",
27
+ tool_name: "listMcpServers",
28
+ description: "List all MCP servers in a workspace.",
29
+ parameters: [
30
+ { name: "workspace_id", type: "integer", required: true, in: "path", description: "Workspace ID" },
31
+ { name: "page", type: "integer", default: 1, description: "Page number" },
32
+ { name: "per_page", type: "integer", default: 50, description: "Items per page" },
33
+ { name: "search", type: "string", description: "Search by name" },
34
+ { name: "include_xanoscript", type: "boolean", default: false, description: "Include XanoScript definition" }
35
+ ]
36
+ },
37
+ {
38
+ method: "GET",
39
+ path: "/workspace/{workspace_id}/mcp_server/{mcp_server_id}",
40
+ tool_name: "getMcpServer",
41
+ description: "Get details of a specific MCP server.",
42
+ parameters: [
43
+ { name: "workspace_id", type: "integer", required: true, in: "path", description: "Workspace ID" },
44
+ { name: "mcp_server_id", type: "integer", required: true, in: "path", description: "MCP Server ID" },
45
+ { name: "include_xanoscript", type: "boolean", default: false, description: "Include XanoScript definition" }
46
+ ]
47
+ },
48
+ {
49
+ method: "POST",
50
+ path: "/workspace/{workspace_id}/mcp_server",
51
+ tool_name: "createMcpServer",
52
+ description: "Create a new MCP server to expose tools.",
53
+ parameters: [
54
+ { name: "workspace_id", type: "integer", required: true, in: "path", description: "Workspace ID" }
55
+ ],
56
+ request_body: {
57
+ type: "application/json",
58
+ properties: {
59
+ name: { type: "string", description: "MCP server name", required: true },
60
+ description: { type: "string", description: "MCP server description" },
61
+ xanoscript: { type: "string", description: "XanoScript MCP server definition", required: true }
62
+ }
63
+ },
64
+ example: {
65
+ method: "POST",
66
+ path: "/workspace/1/mcp_server",
67
+ body: {
68
+ name: "my_tools",
69
+ description: "MCP server exposing customer support tools",
70
+ xanoscript: `mcp_server my_tools {
71
+ tools = [lookup_order, update_ticket, send_notification]
72
+ authentication {
73
+ type = "bearer"
74
+ token = env.MCP_TOKEN
75
+ }
76
+ }`
77
+ }
78
+ }
79
+ },
80
+ {
81
+ method: "PUT",
82
+ path: "/workspace/{workspace_id}/mcp_server/{mcp_server_id}",
83
+ tool_name: "updateMcpServer",
84
+ description: "Update an existing MCP server.",
85
+ parameters: [
86
+ { name: "workspace_id", type: "integer", required: true, in: "path", description: "Workspace ID" },
87
+ { name: "mcp_server_id", type: "integer", required: true, in: "path", description: "MCP Server ID" }
88
+ ],
89
+ request_body: {
90
+ type: "application/json",
91
+ properties: {
92
+ name: { type: "string", description: "MCP server name" },
93
+ description: { type: "string", description: "MCP server description" },
94
+ xanoscript: { type: "string", description: "XanoScript MCP server definition" }
95
+ }
96
+ }
97
+ },
98
+ {
99
+ method: "DELETE",
100
+ path: "/workspace/{workspace_id}/mcp_server/{mcp_server_id}",
101
+ tool_name: "deleteMcpServer",
102
+ description: "Delete an MCP server.",
103
+ parameters: [
104
+ { name: "workspace_id", type: "integer", required: true, in: "path", description: "Workspace ID" },
105
+ { name: "mcp_server_id", type: "integer", required: true, in: "path", description: "MCP Server ID" }
106
+ ]
107
+ },
108
+ {
109
+ method: "GET",
110
+ path: "/mcp_server/documentation",
111
+ tool_name: "getMcpDocumentation",
112
+ description: "Get MCP documentation for setup and syntax reference.",
113
+ parameters: [
114
+ { name: "type", type: "string", enum: ["start", "api", "function", "task", "mcp", "agent", "tool", "fs-syntax", "table", "database"], description: "Documentation type to retrieve" }
115
+ ]
116
+ }
117
+ ],
118
+ schemas: {
119
+ McpServer: {
120
+ type: "object",
121
+ properties: {
122
+ id: { type: "integer" },
123
+ name: { type: "string" },
124
+ description: { type: "string" },
125
+ tools: { type: "array", items: { type: "string" } },
126
+ authentication: {
127
+ type: "object",
128
+ properties: {
129
+ type: { type: "string", enum: ["none", "bearer", "basic"] },
130
+ token: { type: "string" }
131
+ }
132
+ },
133
+ created_at: { type: "string", format: "date-time" },
134
+ updated_at: { type: "string", format: "date-time" }
135
+ }
136
+ }
137
+ },
138
+ related_topics: ["tool", "agent", "authentication"]
139
+ };
@@ -0,0 +1,2 @@
1
+ import type { TopicDoc } from "../types.js";
2
+ export declare const middlewareDoc: TopicDoc;
@@ -0,0 +1,156 @@
1
+ export const middlewareDoc = {
2
+ topic: "middleware",
3
+ title: "Middleware Management",
4
+ description: `Middleware are request/response interceptors that run before or after API endpoints. They handle cross-cutting concerns like authentication, logging, rate limiting, and request transformation.
5
+
6
+ ## Key Concepts
7
+ - Middleware runs before (pre) or after (post) API endpoints
8
+ - Can modify requests, responses, or halt execution
9
+ - Used for: auth validation, logging, rate limiting, CORS, etc.
10
+ - Can be applied to specific endpoints or entire API groups
11
+ - Support draft/publish workflow
12
+
13
+ ## Common Middleware Patterns
14
+ - Authentication/authorization checks
15
+ - Request logging and timing
16
+ - Rate limiting
17
+ - Request/response transformation
18
+ - CORS handling
19
+ - Input validation`,
20
+ ai_hints: `- Middleware runs on every matching request - keep it fast
21
+ - Pre-middleware can halt execution (auth checks)
22
+ - Post-middleware can transform responses
23
+ - Check existing middleware before creating duplicates
24
+ - Security settings control which endpoints use the middleware`,
25
+ endpoints: [
26
+ {
27
+ method: "GET",
28
+ path: "/workspace/{workspace_id}/middleware",
29
+ tool_name: "listMiddlewares",
30
+ description: "List all middleware in a workspace.",
31
+ parameters: [
32
+ { name: "workspace_id", type: "integer", required: true, in: "path", description: "Workspace ID" },
33
+ { name: "page", type: "integer", default: 1, description: "Page number" },
34
+ { name: "per_page", type: "integer", default: 50, description: "Items per page" },
35
+ { name: "search", type: "string", description: "Search by name" },
36
+ { name: "include_xanoscript", type: "boolean", default: false, description: "Include XanoScript code" },
37
+ { name: "include_draft", type: "boolean", default: false, description: "Include draft versions" }
38
+ ]
39
+ },
40
+ {
41
+ method: "GET",
42
+ path: "/workspace/{workspace_id}/middleware/{middleware_id}",
43
+ tool_name: "getMiddleware",
44
+ description: "Get details of a specific middleware.",
45
+ parameters: [
46
+ { name: "workspace_id", type: "integer", required: true, in: "path", description: "Workspace ID" },
47
+ { name: "middleware_id", type: "integer", required: true, in: "path", description: "Middleware ID" },
48
+ { name: "include_xanoscript", type: "boolean", default: false, description: "Include XanoScript code" },
49
+ { name: "include_draft", type: "boolean", default: false, description: "Include draft version" }
50
+ ]
51
+ },
52
+ {
53
+ method: "POST",
54
+ path: "/workspace/{workspace_id}/middleware",
55
+ tool_name: "createMiddleware",
56
+ description: "Create a new middleware.",
57
+ parameters: [
58
+ { name: "workspace_id", type: "integer", required: true, in: "path", description: "Workspace ID" }
59
+ ],
60
+ request_body: {
61
+ type: "application/json",
62
+ properties: {
63
+ name: { type: "string", description: "Middleware name", required: true },
64
+ description: { type: "string", description: "Middleware description" },
65
+ type: { type: "string", description: "pre or post", required: true },
66
+ xanoscript: { type: "string", description: "XanoScript middleware definition", required: true }
67
+ }
68
+ },
69
+ example: {
70
+ method: "POST",
71
+ path: "/workspace/1/middleware",
72
+ body: {
73
+ name: "rate_limiter",
74
+ description: "Limit requests to 100 per minute per IP",
75
+ type: "pre",
76
+ xanoscript: `middleware rate_limiter {
77
+ stack {
78
+ var $key {
79
+ value = "ratelimit:" + $request.ip
80
+ }
81
+ var $count {
82
+ value = redis.incr($key)
83
+ }
84
+ if ($count == 1) {
85
+ redis.expire($key, 60)
86
+ }
87
+ if ($count > 100) {
88
+ throw(429, "Rate limit exceeded")
89
+ }
90
+ }
91
+ }`
92
+ }
93
+ }
94
+ },
95
+ {
96
+ method: "PUT",
97
+ path: "/workspace/{workspace_id}/middleware/{middleware_id}",
98
+ tool_name: "updateMiddleware",
99
+ description: "Update an existing middleware.",
100
+ parameters: [
101
+ { name: "workspace_id", type: "integer", required: true, in: "path", description: "Workspace ID" },
102
+ { name: "middleware_id", type: "integer", required: true, in: "path", description: "Middleware ID" },
103
+ { name: "publish", type: "boolean", default: true, description: "Publish changes immediately" }
104
+ ],
105
+ request_body: {
106
+ type: "application/json",
107
+ properties: {
108
+ name: { type: "string", description: "Middleware name" },
109
+ description: { type: "string", description: "Middleware description" },
110
+ xanoscript: { type: "string", description: "XanoScript middleware definition" }
111
+ }
112
+ }
113
+ },
114
+ {
115
+ method: "DELETE",
116
+ path: "/workspace/{workspace_id}/middleware/{middleware_id}",
117
+ tool_name: "deleteMiddleware",
118
+ description: "Delete a middleware.",
119
+ parameters: [
120
+ { name: "workspace_id", type: "integer", required: true, in: "path", description: "Workspace ID" },
121
+ { name: "middleware_id", type: "integer", required: true, in: "path", description: "Middleware ID" }
122
+ ]
123
+ },
124
+ {
125
+ method: "PUT",
126
+ path: "/workspace/{workspace_id}/middleware/{middleware_id}/security",
127
+ tool_name: "updateMiddlewareSecurity",
128
+ description: "Update security settings for the middleware.",
129
+ parameters: [
130
+ { name: "workspace_id", type: "integer", required: true, in: "path", description: "Workspace ID" },
131
+ { name: "middleware_id", type: "integer", required: true, in: "path", description: "Middleware ID" }
132
+ ],
133
+ request_body: {
134
+ type: "application/json",
135
+ properties: {
136
+ guid: { type: "string", description: "Security group GUID" }
137
+ }
138
+ }
139
+ }
140
+ ],
141
+ schemas: {
142
+ Middleware: {
143
+ type: "object",
144
+ properties: {
145
+ id: { type: "integer" },
146
+ name: { type: "string" },
147
+ description: { type: "string" },
148
+ type: { type: "string", enum: ["pre", "post"] },
149
+ xanoscript: { type: "string" },
150
+ created_at: { type: "string", format: "date-time" },
151
+ updated_at: { type: "string", format: "date-time" }
152
+ }
153
+ }
154
+ },
155
+ related_topics: ["api", "apigroup", "authentication"]
156
+ };
@@ -0,0 +1,2 @@
1
+ import type { TopicDoc } from "../types.js";
2
+ export declare const realtimeDoc: TopicDoc;
@@ -0,0 +1,112 @@
1
+ export const realtimeDoc = {
2
+ topic: "realtime",
3
+ title: "Realtime Channel Management",
4
+ description: `Realtime channels enable WebSocket-based push notifications and live updates to connected clients.
5
+
6
+ ## Key Concepts
7
+ - Channels are WebSocket endpoints for real-time communication
8
+ - Clients subscribe to channels to receive updates
9
+ - Server can publish messages to channels
10
+ - Triggers can respond to channel events
11
+ - Useful for chat, notifications, live updates
12
+
13
+ ## Common Use Cases
14
+ - Live chat applications
15
+ - Real-time notifications
16
+ - Live dashboards
17
+ - Collaborative editing
18
+ - Push updates to mobile apps`,
19
+ ai_hints: `- Create channels for different message types (chat, notifications, etc.)
20
+ - Use triggers to respond to channel events (subscribe, message, etc.)
21
+ - Channels require authenticated connections for security
22
+ - Consider rate limiting for high-traffic channels
23
+ - Test with WebSocket clients before production`,
24
+ endpoints: [
25
+ {
26
+ method: "GET",
27
+ path: "/workspace/{workspace_id}/realtime/channel",
28
+ tool_name: "listRealtimeChannels",
29
+ description: "List all realtime channels in a workspace.",
30
+ parameters: [
31
+ { name: "workspace_id", type: "integer", required: true, in: "path", description: "Workspace ID" },
32
+ { name: "page", type: "integer", default: 1, description: "Page number" },
33
+ { name: "per_page", type: "integer", default: 50, description: "Items per page" },
34
+ { name: "search", type: "string", description: "Search by channel name" }
35
+ ]
36
+ },
37
+ {
38
+ method: "GET",
39
+ path: "/workspace/{workspace_id}/realtime/channel/{channel_id}",
40
+ tool_name: "getRealtimeChannel",
41
+ description: "Get details of a specific realtime channel.",
42
+ parameters: [
43
+ { name: "workspace_id", type: "integer", required: true, in: "path", description: "Workspace ID" },
44
+ { name: "channel_id", type: "integer", required: true, in: "path", description: "Channel ID" }
45
+ ]
46
+ },
47
+ {
48
+ method: "POST",
49
+ path: "/workspace/{workspace_id}/realtime/channel",
50
+ tool_name: "createRealtimeChannel",
51
+ description: "Create a new realtime channel.",
52
+ parameters: [
53
+ { name: "workspace_id", type: "integer", required: true, in: "path", description: "Workspace ID" }
54
+ ],
55
+ request_body: {
56
+ type: "application/json",
57
+ properties: {
58
+ name: { type: "string", description: "Channel name", required: true },
59
+ description: { type: "string", description: "Channel description" }
60
+ }
61
+ },
62
+ example: {
63
+ method: "POST",
64
+ path: "/workspace/1/realtime/channel",
65
+ body: {
66
+ name: "notifications",
67
+ description: "User notification channel"
68
+ }
69
+ }
70
+ },
71
+ {
72
+ method: "PUT",
73
+ path: "/workspace/{workspace_id}/realtime/channel/{channel_id}",
74
+ tool_name: "updateRealtimeChannel",
75
+ description: "Update an existing realtime channel.",
76
+ parameters: [
77
+ { name: "workspace_id", type: "integer", required: true, in: "path", description: "Workspace ID" },
78
+ { name: "channel_id", type: "integer", required: true, in: "path", description: "Channel ID" }
79
+ ],
80
+ request_body: {
81
+ type: "application/json",
82
+ properties: {
83
+ name: { type: "string", description: "Channel name" },
84
+ description: { type: "string", description: "Channel description" }
85
+ }
86
+ }
87
+ },
88
+ {
89
+ method: "DELETE",
90
+ path: "/workspace/{workspace_id}/realtime/channel/{channel_id}",
91
+ tool_name: "deleteRealtimeChannel",
92
+ description: "Delete a realtime channel.",
93
+ parameters: [
94
+ { name: "workspace_id", type: "integer", required: true, in: "path", description: "Workspace ID" },
95
+ { name: "channel_id", type: "integer", required: true, in: "path", description: "Channel ID" }
96
+ ]
97
+ }
98
+ ],
99
+ schemas: {
100
+ RealtimeChannel: {
101
+ type: "object",
102
+ properties: {
103
+ id: { type: "integer" },
104
+ name: { type: "string" },
105
+ description: { type: "string" },
106
+ created_at: { type: "string", format: "date-time" },
107
+ updated_at: { type: "string", format: "date-time" }
108
+ }
109
+ }
110
+ },
111
+ related_topics: ["api", "function"]
112
+ };
@@ -0,0 +1,2 @@
1
+ import type { TopicDoc } from "../types.js";
2
+ export declare const startDoc: TopicDoc;
@@ -0,0 +1,107 @@
1
+ export const startDoc = {
2
+ topic: "start",
3
+ title: "Xano Meta API - Getting Started",
4
+ description: `The Xano Meta API provides programmatic access to manage your Xano instance. Use it to create, modify, and manage workspaces, databases, APIs, functions, scheduled tasks, AI agents, and more.
5
+
6
+ ## Base URL
7
+ \`\`\`
8
+ https://<your-instance-subdomain>.xano.io/api:meta/<endpoint>
9
+ \`\`\`
10
+
11
+ **Example:** If your Xano instance is \`https://x8ki-letl-twmt.n7.xano.io\`, the full URL to list workspaces would be:
12
+ \`\`\`
13
+ https://x8ki-letl-twmt.n7.xano.io/api:meta/workspace
14
+ \`\`\`
15
+
16
+ Your instance URL can be found in the Xano dashboard URL or in your API endpoint URLs.
17
+
18
+ ## Authentication
19
+ Include your Access Token in the Authorization header:
20
+ \`\`\`
21
+ Authorization: Bearer <your-access-token>
22
+ \`\`\`
23
+
24
+ Access tokens are created in the Xano dashboard under Settings > Access Tokens.
25
+
26
+ ## Quick Start
27
+ 1. **Get your workspaces:** \`GET /workspace\`
28
+ 2. **List tables in a workspace:** \`GET /workspace/{id}/table\`
29
+ 3. **Create an API endpoint:** \`POST /workspace/{id}/apigroup/{id}/api\`
30
+
31
+ ## Resource Hierarchy
32
+ \`\`\`
33
+ workspace/
34
+ ├── apigroup/ # API groups (REST endpoint collections)
35
+ │ └── api/ # Individual endpoints
36
+ ├── table/ # Database tables
37
+ │ ├── schema/ # Table schema definitions
38
+ │ ├── index/ # Database indexes
39
+ │ └── trigger/ # Table triggers
40
+ ├── function/ # Reusable functions
41
+ ├── task/ # Scheduled tasks
42
+ ├── agent/ # AI agents
43
+ │ └── trigger/ # Agent triggers
44
+ ├── tool/ # Agent tools
45
+ ├── mcp_server/ # MCP servers
46
+ │ └── trigger/ # MCP triggers
47
+ ├── middleware/ # Request interceptors
48
+ ├── realtime/ # WebSocket channels
49
+ │ └── trigger/ # Realtime triggers
50
+ ├── branch/ # Environment branches
51
+ └── file/ # File storage
52
+ \`\`\`
53
+
54
+ ## Common Parameters
55
+ Most list endpoints support:
56
+ - \`page\`: Page number (default: 1)
57
+ - \`per_page\`: Items per page (default: 50, max: 10000)
58
+ - \`search\`: Search by name
59
+ - \`sort\`: Sort field (usually: id, name, created_at)
60
+ - \`order\`: Sort direction (asc, desc)
61
+ - \`branch\`: Filter by branch name
62
+
63
+ ## XanoScript Integration
64
+ Many endpoints accept XanoScript code for logic definition:
65
+ - Use \`include_xanoscript=true\` to get code in responses
66
+ - POST/PUT bodies can include XanoScript directly
67
+ - Use \`/convert/fromXS\` and \`/convert/toXS\` for format conversion`,
68
+ ai_hints: `- Start by calling \`GET /workspace\` to get workspace IDs
69
+ - Use \`GET /workspace/{id}/context\` to get a full workspace map for AI understanding
70
+ - Always check existing resources before creating new ones
71
+ - Use \`include_xanoscript=true\` to see implementation details
72
+ - Draft/publish workflow: changes are drafts until published`,
73
+ related_topics: ["authentication", "workspace", "workflows"],
74
+ examples: [
75
+ {
76
+ title: "List all workspaces",
77
+ description: "Get a list of all accessible workspaces",
78
+ request: {
79
+ method: "GET",
80
+ path: "/workspace",
81
+ headers: { "Authorization": "Bearer <token>" }
82
+ },
83
+ response: {
84
+ curPage: 1,
85
+ nextPage: null,
86
+ prevPage: null,
87
+ items: [
88
+ { id: 1, name: "My App", description: "Production workspace" }
89
+ ]
90
+ }
91
+ },
92
+ {
93
+ title: "Get workspace context for AI",
94
+ description: "Generate complete workspace context for AI agents",
95
+ request: {
96
+ method: "GET",
97
+ path: "/workspace/1/context?format=json",
98
+ headers: { "Authorization": "Bearer <token>" }
99
+ },
100
+ response: {
101
+ tables: ["users", "posts", "comments"],
102
+ api_groups: [{ name: "public", endpoints: 12 }],
103
+ functions: ["auth_check", "send_email"]
104
+ }
105
+ }
106
+ ]
107
+ };
@@ -0,0 +1,2 @@
1
+ import type { TopicDoc } from "../types.js";
2
+ export declare const tableDoc: TopicDoc;