List skills as the MCP Skills extension serves them

The entries of skills/list: the published definition of each active skill of the space that the caller may read and the server can serve whole. With definition=draft, the drafts of the space that the caller may read (only a caller who may write a package reads its draft), at their @draft URIs, as skills/list lists them with the request _meta {"dev.appstrate/definition": "draft"}. Serves appstrate code sync and reflects the MCP Skills extension (SEP-2640) of the MCP endpoint: same server function, same entries, same bytes, for the space X-Space-Id names. Requires skills:read in that space. Rate-limited to 50 requests/minute.

GET/api/packages/skills/served

Authorization

better-auth.session_token<token>

Cookie session from Better Auth. Requires X-Org-Id header for org-scoped routes.

In: cookie

Query Parameters

definition?string

The definition listed.

Default"published"
Value in"published" | "draft"

Header Parameters

X-Org-Id?string

Organization ID. Required for cookie auth. Not needed for API key auth (org resolved from key).

Formatuuid
X-Space-Id?string

Space ID. Required for space-scoped routes (agents, runs, schedules, and space-scoped module routes). Not needed for API key auth (space resolved from key).

curl -X GET "https://your-instance/api/packages/skills/served"
{
  "object": "list",
  "data": [
    {
      "uri": "string",
      "frontmatter": {
        "name": "string",
        "description": "string"
      },
      "resources": [
        {
          "uri": "string",
          "digest": "string",
          "size": 0
        }
      ],
      "_meta": {
        "dev.appstrate/lock_version": 0
      }
    }
  ],
  "hasMore": true
}

{
  "type": "https://docs.appstrate.dev/errors/validation-failed",
  "title": "Validation Failed",
  "status": 400,
  "detail": "name: Invalid input: expected string, received undefined (+2 more)",
  "code": "validation_failed",
  "request_id": "req_abc123",
  "errors": [
    {
      "field": "name",
      "code": "required",
      "message": "Invalid input: expected string, received undefined"
    },
    {
      "field": "email",
      "code": "invalid_format",
      "message": "Invalid email address"
    },
    {
      "field": "age",
      "code": "invalid_type",
      "message": "Invalid input: expected number, received string"
    }
  ]
}

{
  "type": "https://docs.appstrate.dev/errors/unauthorized",
  "title": "Unauthorized",
  "status": 401,
  "detail": "Invalid or missing session",
  "code": "unauthorized",
  "request_id": "req_abc123"
}
{
  "type": "https://docs.appstrate.dev/errors/forbidden",
  "title": "Forbidden",
  "status": 403,
  "detail": "Insufficient permissions",
  "code": "forbidden",
  "request_id": "req_abc123"
}
{
  "type": "https://docs.appstrate.dev/errors/package-archive-unreadable",
  "title": "Package Archive Unreadable",
  "status": 422,
  "detail": "The package archive expands past the 50 MB decompression limit and was refused (decompressed-budget-exceeded). Republish the package from bytes that fit the limit.",
  "code": "package_archive_unreadable",
  "request_id": "req_abc123"
}
{
  "type": "https://docs.appstrate.dev/errors/rate-limited",
  "title": "Rate Limited",
  "status": 429,
  "detail": "Too many requests. Please try again shortly.",
  "code": "rate_limited",
  "request_id": "req_abc123",
  "retry_after": 30
}