@xano/developer-mcp 1.0.12 → 1.0.13
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.
- package/dist/api_docs/format.js +10 -0
- package/package.json +1 -1
package/dist/api_docs/format.js
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Formatting utilities for API documentation output
|
|
3
3
|
*/
|
|
4
|
+
/**
|
|
5
|
+
* Base URL information included with any topic that has endpoints
|
|
6
|
+
*/
|
|
7
|
+
const BASE_URL_INFO = `## Base URL
|
|
8
|
+
\`\`\`
|
|
9
|
+
https://<your-instance-subdomain>.xano.io/api:meta/<endpoint>
|
|
10
|
+
\`\`\`
|
|
11
|
+
Authorization: \`Bearer <your-access-token>\`
|
|
12
|
+
`;
|
|
4
13
|
function formatParameter(param) {
|
|
5
14
|
const required = param.required ? " (required)" : "";
|
|
6
15
|
const defaultVal = param.default !== undefined ? ` [default: ${param.default}]` : "";
|
|
@@ -115,6 +124,7 @@ export function formatDocumentation(doc, detailLevel = "detailed", includeSchema
|
|
|
115
124
|
// Endpoints
|
|
116
125
|
if (doc.endpoints?.length) {
|
|
117
126
|
sections.push("");
|
|
127
|
+
sections.push(BASE_URL_INFO);
|
|
118
128
|
sections.push("## Endpoints");
|
|
119
129
|
for (const ep of doc.endpoints) {
|
|
120
130
|
sections.push("");
|