Entropic 2.14.3
Local-first agentic inference engine
Loading...
Searching...
No Matches
serve.cpp File Reference

entropic serve — a headless host for every MCP client (gh#204). More...

#include <entropic/entropic.h>
#include <csignal>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <filesystem>
#include <string>
#include <pthread.h>
Include dependency graph for serve.cpp:

Go to the source code of this file.

Namespaces

namespace  entropic
 Activate model on GPU (WARM → ACTIVE).
 

Functions

int entropic::cli::run_serve (int argc, char *argv[])
 entropic serve entry point.
 

Detailed Description

entropic serve — a headless host for every MCP client (gh#204).

Configures one engine from a YAML file, serves its external bridge at http://127.0.0.1:<port>/mcp, and runs until SIGINT or SIGTERM. Every MCP client points at that one URL with the bearer token from ~/.entropic/serve/<port>.token, instead of each spawning its own host.

Exits non-zero, with the engine's own reason, if the engine cannot be configured or the port cannot be served — a host that is not reachable must not look like one that is.

Version
2.14.0

Definition in file serve.cpp.

Function Documentation

◆ run_serve()

int entropic::cli::run_serve ( int  argc,
char *  argv[] 
)

entropic serve entry point.

Parameters
argcArgument count (argv[0] is "serve").
argvArguments.
Returns
0 after a clean shutdown; 1 on usage or startup failure. @req REQ-BRIDGE-001
Version
2.14.1

Definition at line 154 of file serve.cpp.

Variable Documentation

◆ config

std::string config

–config FILE

Definition at line 38 of file serve.cpp.

◆ port

std::string port

–port N

Definition at line 39 of file serve.cpp.