Skip to main content
The Xano Developer MCP provides 6 tools for AI-assisted XanoScript development. These tools are automatically available to your AI assistant once the MCP server is connected.

validate_xanoscript

Validates XanoScript code for syntax errors. Returns a list of errors with line and column positions, or confirms the code is valid. The language server auto-detects the object type (table, function, query, etc.) from the code syntax.

Parameters

ParameterTypeRequiredDescription
codestringYesThe XanoScript code to validate

Response

FieldTypeDescription
validbooleanWhether the code is valid
errorsarrayList of errors, each with range (start/end line and column), message, and source
messagestringHuman-readable result summary

Examples

Valid code:
validate_xanoscript({ code: "var $result { value = 1 + 2 }" })
Returns:
{
  "valid": true,
  "errors": [],
  "message": "XanoScript is valid. No syntax errors found."
}
Invalid code:
validate_xanoscript({ code: "var $result { value = }" })
Returns errors with the exact line and column where the issue was found, making it easy to pinpoint and fix problems.
Use this tool as you write XanoScript to catch syntax errors before pushing code to Xano. AI assistants will often call this automatically after generating code.

xanoscript_docs

Retrieves XanoScript programming language documentation. Call without parameters for the overview. Use topic for specific documentation, or file_path for context-aware docs based on the file you’re editing.

Parameters

ParameterTypeRequiredDescription
topicstringNoSpecific documentation topic to retrieve
file_pathstringNoFile path being edited (e.g., apis/users/create.xs) for context-aware docs
modestringNofull (default) or quick_reference for a compact syntax cheatsheet

Available Topics

TopicDescription
readmeXanoScript overview, workspace structure, and quick reference
syntaxExpressions, operators, filters, and system variables
typesData types, input blocks, and validation
schemaRuntime schema parsing and validation

Context-Aware Docs

When file_path is provided, the tool automatically returns all documentation relevant to the type of file you’re editing. For example:
File PathTopics Returned
apis/users/create.xssyntax, types, apis, database, testing, integrations, performance, realtime, schema, security, streaming
tables/product.xssyntax, tables
agents/support-bot.xssyntax, types, agents
functions/utils/format.xssyntax, types, functions, database, testing, integrations, performance, realtime, schema, security, streaming, addons
The syntax topic is always included as a foundation. The readme topic is never auto-included (call it explicitly for the overview).

Quick Reference Mode

Use mode: "quick_reference" for compact output that only returns the Quick Reference section from each doc. This is recommended when you need to conserve context window space.

Examples

// Get the overview
xanoscript_docs()

// Get full function docs
xanoscript_docs({ topic: "functions" })

// Context-aware: all docs relevant to API files
xanoscript_docs({ file_path: "apis/users/create.xs" })

// Compact quick reference for database operations
xanoscript_docs({ topic: "database", mode: "quick_reference" })

meta_api_docs

Retrieves documentation for Xano’s Meta API, which provides programmatic access to manage workspaces, databases, APIs, functions, agents, and more.

Parameters

ParameterTypeRequiredDescription
topicstringYesDocumentation topic to retrieve
detail_levelstringNooverview, detailed (default), or examples
include_schemasbooleanNoInclude JSON schemas for requests/responses (default: true)

Available Topics

TopicDescription
startGetting started with the Meta API
authenticationAPI authentication and authorization
workspaceWorkspace management endpoints
apigroupAPI group operations
apiAPI endpoint management
tableDatabase table operations
functionFunction management
taskScheduled task operations
agentAI agent configuration
toolAI tool management
mcp_serverMCP server endpoints
middlewareMiddleware configuration
branchBranch management
realtimeReal-time channel operations
fileFile management
historyVersion history
workflowsStep-by-step workflow guides

Detail Levels

  • overview — Returns just the method, path, and description for each endpoint
  • detailed — Includes parameters, request body details, and response schemas
  • examples — Adds full request/response examples with code blocks

Examples

// Get started
meta_api_docs({ topic: "start" })

// Full table management docs
meta_api_docs({ topic: "table", detail_level: "detailed" })

// API examples without schemas
meta_api_docs({ topic: "api", detail_level: "examples", include_schemas: false })

// Workflow guides
meta_api_docs({ topic: "workflows" })

run_api_docs

Retrieves documentation for Xano’s Run API, which provides runtime execution, session management, and XanoScript execution capabilities.
The Run API uses a fixed base URL: https://app.dev.xano.com/api:run/<endpoint> — this is not your Xano instance URL.

Parameters

ParameterTypeRequiredDescription
topicstringYesDocumentation topic to retrieve
detail_levelstringNooverview, detailed (default), or examples
include_schemasbooleanNoInclude JSON schemas for requests/responses (default: true)

Available Topics

TopicDescription
startGetting started with the Run API
runExecute XanoScript code and API endpoints
sessionSession management for stateful execution
historyExecution history and debugging
dataData operations and variable management
workflowsStep-by-step workflow guides

Examples

// Get started
run_api_docs({ topic: "start" })

// Full execution docs
run_api_docs({ topic: "run", detail_level: "detailed" })

// Session examples
run_api_docs({ topic: "session", detail_level: "examples" })

cli_docs

Retrieves documentation for the Xano CLI (@xano/cli), covering local development workflows, code sync, and XanoScript execution from the command line.

Parameters

ParameterTypeRequiredDescription
topicstringYesDocumentation topic to retrieve
detail_levelstringNooverview, detailed (default), or examples

Available Topics

TopicDescription
startGetting started — installation and setup
profileProfile management — credentials and multi-environment setup
workspaceWorkspace operations — pull/push code sync
branchBranch management
functionFunction management — list, get, create, edit
runRun API commands — execute code, manage projects/sessions
static_hostStatic hosting — deploy frontend builds
integrationCLI + Meta API integration guide — when to use each

Examples

// Get started
cli_docs({ topic: "start" })

// When to use CLI vs Meta API
cli_docs({ topic: "integration" })

// Full workspace commands
cli_docs({ topic: "workspace", detail_level: "detailed" })

mcp_version

Returns the current version of the Xano Developer MCP server.

Parameters

None.

Response

Returns the version string (e.g., "1.0.31").

Example

mcp_version()
// Returns: "1.0.31"