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.What you get
agent.mjsfor Node 20 andagent.pyfor 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
| Variable | Value |
|---|---|
LUMO_BASE_URL | https://app.lumoauth.dev |
LUMO_ORG | Your organization. |
LUMO_ADMIN_TOKEN | A token or an API key that may register agents. |
MCP_URL | The address of the sample server. |
Next steps
- Move to the SDK: An agent gets its first token.
Where the code is today
The examples folder of the server repository. It will move into this catalog.