Documentation

Scriptling is a minimal, sandboxed interpreter for Python-like scripting designed for embedding in Go applications. Use the sections below to get started, integrate with Go, or explore tutorials.

Choose by task

Guides

Tutorials

Step-by-step guides for real-world scenarios:

  • Fetching API Data: Write a CLI script that fetches data from a public API and processes the results.
  • Embedding a Rules Engine: Embed Scriptling in a Go application to evaluate business rules at runtime.
  • MCP Tool Server: Create a Model Context Protocol server with custom tools for AI assistants.
  • Resources & Prompts Server: Create MCP resources and prompts as files, alongside tools.
  • MCP App Package: Build a complete MCP application with an app view, tools, a prompt and a skill, package it as one artifact, and run it from the package.
  • Writing a Go Plugin: Build an executable plugin that exposes functions and classes under plugin.*.
  • Writing a C Plugin: Build a multi-threaded C plugin with functions, classes, properties, callbacks, and logging.
  • Writing a Fetcher Plugin: Serve libraries, assets and script sources from a plugin-owned scheme such as demo://.
  • Plugin Callbacks: Pass a Scriptling callback into a Go plugin and stream events back while the function runs.

Reference

For language syntax, built-in functions, and library APIs, see the Reference section.