|
Entropic 2.3.8
Local-first agentic inference engine
|
entropic CLI binary — top-level dispatcher for subcommands. More...
#include <cstdio>#include <cstring>#include <string>
Go to the source code of this file.
Namespaces | |
| namespace | entropic |
| Activate model on GPU (WARM → ACTIVE). | |
Functions | |
| int | entropic::cli::run_mcp_bridge (int argc, char *argv[]) |
Entry point for the mcp-bridge subcommand. | |
| int | entropic::cli::run_version () |
| Print the engine version and exit. | |
| int | entropic::cli::run_download (int argc, char *argv[]) |
Handle entropic download subcommand. | |
| static void | print_usage () |
| Print top-level usage to stderr. | |
| int | main (int argc, char *argv[]) |
| CLI entry point — dispatch to subcommand. | |
entropic CLI binary — top-level dispatcher for subcommands.
Provides a single entropic executable that ships with the engine. Subcommands let users integrate the engine into other systems with zero code:
entropic mcp-bridge [–project-dir DIR] Speaks JSON-RPC 2.0 over stdio so external MCP clients (Claude Code, VSCode, etc.) can use the engine as a tool provider.
entropic version Print engine version and exit.
The mcp-bridge subcommand is the primary integration point: a user adds entropic to their .mcp.json with command: "entropic" and args: ["mcp-bridge"], and the engine becomes available as MCP tools without writing any code.
Definition in file main.cpp.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
|
static |
| int entropic::cli::run_download | ( | int | argc, |
| char * | argv[] | ||
| ) |
Handle entropic download subcommand.
| argc | argc-like count starting at subcommand name. |
| argv | argv-like vector starting at subcommand name. |
Definition at line 296 of file download.cpp.
| int entropic::cli::run_mcp_bridge | ( | int | argc, |
| char * | argv[] | ||
| ) |
Entry point for the mcp-bridge subcommand.
Resolves the project dir, computes the engine's unix socket path via the same deterministic hash the engine uses, connects, then relays bytes between stdio and the socket until either side closes.
| argc | Argument count (after the "mcp-bridge" subcommand). |
| argv | Argument vector. argv[0] is "mcp-bridge". |
Definition at line 275 of file mcp_bridge.cpp.
| int entropic::cli::run_version | ( | ) |