Skip to content

Examples

These examples are complete Nim programs from the repository’s examples/ directory.

Compile an example from the nimwire package directory:

Terminal window
nim c examples/echo_server.nim

Run the resulting executable with an MCP client, or pipe newline-delimited JSON-RPC into the stdio examples.

The HTTP example also includes a minimal reverse proxy configuration.

The examples import ../src/nimwire, so they run directly from a checkout. Installed applications can use import nimwire instead.