93 const char* config_json);
139 char* (*get_config)(
void* user_data);
142 char* (*get_identities)(
void* user_data);
145 char* (*get_tools)(
void* user_data);
151 char* (*get_history)(
int max_entries,
void* user_data);
154 char* (*get_state)(
void* user_data);
157 char* (*get_metrics)(
void* user_data);
163 char* (*get_docs)(
const char* section,
void* user_data);
182 char* (*search_delegations)(
const char* query,
int max_results,
200 char* (*load_delegation_conversation)(
const char* delegation_id,
218 char* (*get_residency)(
void* user_data);
237#define ENTROPIC_MCP_PLUGIN_API_VERSION 1
Error types for cross-.so error reporting.
entropic_error_t
Error codes returned by all C API functions.
void entropic_free(void *ptr)
Free a string allocated by the server.
char * entropic_mcp_server_execute(entropic_mcp_server_t server, const char *tool_name, const char *args_json)
Execute a tool and return ServerResponse JSON envelope.
struct entropic_mcp_server * entropic_mcp_server_t
Opaque handle to an MCP server instance.
entropic_error_t entropic_mcp_server_configure(entropic_mcp_server_t server, const char *config_json)
Configure a server instance after creation.
entropic_error_t entropic_mcp_server_set_working_dir(entropic_mcp_server_t server, const char *path)
Set the working directory for a server.
void entropic_mcp_server_destroy(entropic_mcp_server_t server)
Destroy a server instance.
const char * entropic_mcp_server_name(entropic_mcp_server_t server)
Get the server name.
char * entropic_mcp_server_list_tools(entropic_mcp_server_t server)
List tools as JSON array string.
Read-only engine state provider for introspection tools.
void * user_data
Opaque user data passed to all callbacks.