Skip to main content

Minimal agent in Node and Python

One file with no dependencies: register an agent, get a token, call an MCP tool, and ask for a permission.

StarterDraft
This page is a draft. The code exists, and not all of it has been run for this page yet. The page says what was checked. The code is in server/examples today.
Works with
JavaScript / TypeScriptPythonPlain HTTP
Standards
RFC 9728

What you get​

  • agent.mjs for Node 20 and agent.py for Python 3.10, with the standard library only.
  • mcp-server.mjs, a sample MCP server to call.
  • The same calls as a request collection for an HTTP client.

Create it​

Copy the files, set the variables below, start the sample server in one terminal and the agent in another.

Settings​

VariableValue
LUMO_BASE_URLhttps://app.lumoauth.dev
LUMO_ORGYour organization.
LUMO_ADMIN_TOKENA token or an API key that may register agents.
MCP_URLThe address of the sample server.

Next steps​

Where the code is today​

The examples folder of the server repository. It will move into this catalog.