@xano/developer-mcp 2.2.2-beta.2 → 2.2.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xano/developer-mcp",
3
- "version": "2.2.2-beta.2",
3
+ "version": "2.2.2",
4
4
  "description": "MCP server and library for Xano development - XanoScript validation, Meta API, Run API, and CLI documentation",
5
5
  "type": "module",
6
6
  "main": "dist/lib.js",
@@ -1,146 +0,0 @@
1
- ---
2
- applyTo: []
3
- ---
4
-
5
- # Skills & Docs (Agent Knowledge)
6
-
7
- Teach the Xano AI agent how to work in your workspace — standing rules, reference docs, and repeatable procedures it follows when building your backend.
8
-
9
- > **TL;DR:** Agent Knowledge has three kinds of files. **Context** (`AGENTS.md`) is always loaded — standing rules for every run. A **Doc** is a single markdown file the agent reads for reference when a task calls for it. A **Skill** is a folder (`SKILL.md` + optional reference files) the agent follows step by step. Control *when* each loads with a disclosure mode, and *who* sees it with a scope.
10
-
11
- ---
12
-
13
- ## Quick Reference
14
-
15
- | Type | Lives at | Best for | Loading |
16
- |------|----------|----------|---------|
17
- | **Context** | `AGENTS.md` | Standing rules & conventions the agent must always know | Always, in full |
18
- | **Doc** | `docs/<name>.md` | Facts, specs, guidelines the agent reads on demand | On demand |
19
- | **Skill** | `skills/<name>/SKILL.md` | Repeatable, multi-step procedures | On demand or manual |
20
- | **Reference** | a file inside a skill | Supporting detail a skill step needs | Pulled in by its skill |
21
-
22
- **Disclosure** (when it loads): `Always included` · `On demand` · `Manual`
23
- **Scope** (who sees it): `Workspace` (everyone) · `Private` (only you)
24
-
25
- ---
26
-
27
- ## The three knowledge types
28
-
29
- ### Context — your `AGENTS.md`
30
-
31
- A single `AGENTS.md` file that is **injected into every agent session, in full**. It's the right home for the conventions, rules, and patterns you want the agent to repeat on every run: the backend's purpose, the data model's shape, naming conventions, the auth model, standard error shapes.
32
-
33
- Because every line is loaded on every run, every line has a permanent context cost — so keep it lean. Capture the *shape* and the *non-obvious*; let the agent drill into specifics with its own tools when it needs them.
34
-
35
- ```markdown
36
- # Acme Orders API
37
-
38
- > Backend for the Acme storefront — handles auth, catalog, and checkout.
39
-
40
- ## Data model
41
- | Table | Purpose | Key fields / relationships |
42
- | ------ | --------------- | ---------------------------- |
43
- | users | Auth + profile | id, email; has many `orders` |
44
- | orders | Customer orders | id, user_id → users, status |
45
-
46
- Orders are soft-deleted (`deleted_at`), never hard-deleted.
47
-
48
- ## Conventions
49
- - Auth: JWT in `Authorization: Bearer`. Protect every non-public endpoint.
50
- - Errors: return `{ error: { code, message } }`, never a bare string.
51
- ```
52
-
53
- > **Tip:** Use the **`init`** skill to scaffold `AGENTS.md` — it inspects your workspace (read-only) and works with you to capture purpose, data model, APIs, logic, and conventions, asking one question at a time rather than guessing.
54
-
55
- ### Doc — reference material
56
-
57
- A single markdown file at `docs/<name>.md` that the agent reads **when a task calls for it**. Best for facts, specs, and guidelines — a style guide, an external API's quirks, a domain glossary. The agent sees the title and description up front and pulls in the full file only when relevant, so docs don't spend context on every run.
58
-
59
- ### Skill — a repeatable procedure
60
-
61
- A folder at `skills/<name>/` containing a `SKILL.md` (and optional reference files) that the agent **follows step by step**. Best for multi-step workflows that recur — "scaffold a CRUD API for a table", "apply rate limiting to an endpoint", "add audit logging to a mutation".
62
-
63
- ```markdown
64
- ---
65
- name: rate-limit-endpoint
66
- description: Apply rate limiting to an endpoint. Use when a user asks to
67
- throttle, protect, or rate-limit an endpoint, or guard it from abuse.
68
- ---
69
-
70
- # Rate Limit an Endpoint
71
-
72
- Add a Rate Limit function to the start of an endpoint's stack so repeated
73
- calls from the same caller are rejected before they do work.
74
-
75
- ## Steps
76
- 1. Confirm which endpoint and the limit (requests per window) with the user.
77
- 2. Add a `precondition` that checks the caller's recent request count.
78
- 3. Return a 429 with a clear message when the limit is exceeded.
79
- ```
80
-
81
- > **Tip:** Use the **`create-skill`** skill to author one — it captures *what* the agent should do, *when* it should trigger, and *what good looks like*, then writes a well-formed `SKILL.md`.
82
-
83
- ---
84
-
85
- ## Disclosure — controlling when knowledge loads
86
-
87
- Each doc and skill has a disclosure mode that decides how it enters the agent's context:
88
-
89
- | Mode | What loads | Use when |
90
- |------|-----------|----------|
91
- | **Always included** | The full file, every run | Rules the agent must never miss. Use sparingly — it spends context on every run. |
92
- | **On demand** | Only the title + description up front; the agent pulls the full file when it judges it relevant | The default. Reference material and most skills. |
93
- | **Manual** | Nothing automatically; loads only when you name it in the prompt | Niche or expensive procedures you want to invoke deliberately. |
94
-
95
- `AGENTS.md` is always *Always included* — that's the whole point of Context. Reserve *Always included* on docs and skills for the rare thing the agent genuinely must read every time.
96
-
97
- ---
98
-
99
- ## Scope — controlling who sees it
100
-
101
- | Scope | Who | Use for |
102
- |-------|-----|---------|
103
- | **Workspace** | Everyone in the workspace | Shared conventions, team procedures, project docs |
104
- | **Private** | Only you | Personal helpers and drafts you're still refining |
105
-
106
- ---
107
-
108
- ## Writing knowledge the agent actually follows
109
-
110
- The same principles run through good Context, Docs, and Skills:
111
-
112
- - **Write a description that earns its place.** For docs and skills, the description is the *only* text always loaded — it's what the agent uses to decide whether to pull in the rest. Be explicit and specific: name the exact situations and phrases that should trigger it. A vague description means the file never gets used (or gets used at the wrong time).
113
- - **Explain *why*, not just *what*.** Rigid commands ("ALWAYS do X") are brittle — the agent can't adapt when a situation differs slightly. Give the reasoning instead, so it applies the rule correctly in cases you didn't foresee. Weak: "Validate input before saving." Better: "Validate input before saving — bad records are far harder to find and fix once they're in your live tables."
114
- - **Keep it lean.** Every line costs context the agent could spend reasoning. Cut preamble, ceremony, and anything the agent already knows.
115
- - **Put rules in `AGENTS.md`, procedures in skills.** Workspace-wide conventions (naming, auth, error shapes) belong in `AGENTS.md`, which is always loaded. A skill is for a repeatable *workflow* — it should *assume* those conventions and use them, not restate them.
116
- - **Generalize past the example.** A skill is usually born from one concrete request. Write the general pattern, not the one case, so it helps with the whole class of tasks.
117
- - **Add a guardrail before anything hard to reverse.** Have a skill confirm with the user before a destructive change (deleting a table, dropping an endpoint).
118
-
119
- ---
120
-
121
- ## Common Mistakes
122
-
123
- ❌ **Putting a one-off task in a skill.** Skills are for workflows that recur. A single task is faster to just ask for.
124
- ✅ Create a skill only when the same multi-step workflow comes up again and again.
125
-
126
- ❌ **Restating `AGENTS.md` conventions inside a skill.** Duplicated instructions drift out of sync and bloat the body.
127
- ✅ Assume `AGENTS.md` is loaded; reference its conventions and use them.
128
-
129
- ❌ **Stuffing reference material into `AGENTS.md` to "make sure the agent has it".** It then pays that cost on every run.
130
- ✅ Put reference material in a **Doc** (on demand). Reserve `AGENTS.md` for rules that apply every time.
131
-
132
- ❌ **A vague skill description** ("helps with endpoints").
133
- ✅ A pushy, specific one that names the trigger: "Apply rate limiting to an endpoint. Use when a user asks to throttle or protect an endpoint from abuse."
134
-
135
- ❌ **Marking many skills "Always included".**
136
- ✅ Default to **On demand**; reserve *Always included* for the rare thing the agent must read every time.
137
-
138
- ---
139
-
140
- ## Related Topics
141
-
142
- | Topic | Description |
143
- |-------|-------------|
144
- | `agents` | XanoScript `agent` construct — LLM providers and tools |
145
- | `tools` | Functions an agent can execute |
146
- | `workspace` | Workspace-level settings and preferences |