Skip to main content

AgentsML Language Server

Language Server Protocol implementation for AgentsML documents (.agentsml.yaml).

Features

Feature Description
Diagnostics JSON Schema validation, YAML parse errors, required keys, version validation, cross-reference resolution, enum validation
Completions Top-level keys, collection item names, agent-side refs (tools/resources/prompts/policies), step targets, model refs, step ID refs, profile/side_effect/transport enums
Hover Agent/tool/model/workflow/resource/prompt/policy/MCP/A2A/step info with description, role, model ref, side effects; condition grammar help
Go to definition Jump from a reference to the item it names
Find references List every place a definition is referenced
Document links Turn every reference into a clickable link to its definition
Document Symbols Hierarchical outline of all collections and their items
Code actions A quick fix that creates the missing agent, tool, model, ... when a reference cannot be resolved

Diagnostics are reported at the line and column of the offending value, not at the top of the document.

Install

cd agentsml-ide/language-server
pip install -e .

This installs the agentsml-lsp console script.

Release

The package is published to PyPI by the publish workflow when a v* tag is pushed. Bump project.version in pyproject.toml before tagging — the workflow refuses to publish a tag whose version differs from the package metadata. See the project README for the details.

Run

# stdio mode — this is what editors use
python3 src/agentsml_lsp/server.py
python3 src/agentsml_lsp/server.py   # after installation: agentsml-lsp

# TCP mode, for debugging with an external LSP client
python3 src/agentsml_lsp/server.py --tcp --port 2087

Tests

python3 -m pytest tests/ -v
  • tests/test_diagnostics.py — the diagnostics engine against the shipped example documents.
  • tests/test_server_stdio.py — an end-to-end LSP session: initialize, open a document, check the published diagnostics, completions and hover.
  • tests/test_completions.py — the completion constants.

Layout

src/agentsml_lsp/server.py      LSP server: index, diagnostics, completion, hover, symbols
src/agentsml_lsp/completions.py  Completion constants (top-level keys, profiles, enums)
tests/               Diagnostics and end-to-end protocol tests

Validation rules

Rule Severity
Missing required top-level keys (agentsml, kind, metadata) Error
Invalid kind value Error
Invalid agentsml version Warning
Missing metadata.name Error
Unknown model/tool/resource/prompt/policy reference in an agent Error
Unknown agent/tool/workflow/a2a_agent reference in a step Error
Missing step required field (id) Error
Unknown edge from/to step ID Error
Unknown profile name Warning
Invalid tool side_effect value Warning
Invalid MCP transport value Warning

Metadata

Release files for agentsml-lsp 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agentsml-lsp 0.2.0
File Size Uploaded Provenance Actions
agentsml_lsp-0.2.0.tar.gz 24.1 kB Without provenance Details for agentsml_lsp-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agentsml-lsp 0.2.0
File Interpreter ABI Platform Actions
agentsml_lsp-0.2.0-py3-none-any.whl Python 3 none any Details for agentsml_lsp-0.2.0-py3-none-any.whl

Total release size: 42.8 kB

Release files / agentsml_lsp-0.2.0.tar.gz

Download URL agentsml_lsp-0.2.0.tar.gz
Size 24.1 kB
Tags Source
SHA-256 checksum
How to use checksums
eed9432e27cfcc50d74d0e116a0bc3530bdc23bb1ccffba7fdc36cb261677794
BLAKE2b-256 checksum
How to use checksums
50bd888374c7e822271d4a576e63fed8a40f4d651ef56430e01337a9f0395f3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / agentsml_lsp-0.2.0-py3-none-any.whl

Download URL agentsml_lsp-0.2.0-py3-none-any.whl
Size 18.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d6b7fa3f0dec183d3a37a26913cf884ab770cf4a5317d4fcc7d8681c2fadf097
BLAKE2b-256 checksum
How to use checksums
66e0fd4ee44275d3c2a461599aa66ec69c8d46ec44e672ac0b3cfc1a43ba7f6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for agentsml-lsp 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page