Development & Debugging
Inspecting logs
You can inspect basic logs from oterm by invoking the log viewer with ^ Ctrl+l or by using the command palette. This is particurly useful if you want to debug tool calling.
oterm's internal log viewer showing the Brave Search MCP tool in action.
Setup for development
- Create a virtual environment
-
Activate the virtual environment
-
Install oterm
or checkout the repository and install the oterm package from source
Debugging
-
In order to inspect logs from oterm, open a new terminal and run:
This will start the textual console and listen all log messages from oterm, hiding some of the textual UI messsages. -
You can now start oterm in debug mode:
Documentation
oterm uses mkdocs with material to generate the documentation. To build the documentation, run:
This will start a local server and open the documentation pages in your default web browser.