176 const char* config_json);
222 char* (*get_config)(
void* user_data);
225 char* (*get_identities)(
void* user_data);
228 char* (*get_tools)(
void* user_data);
234 char* (*get_history)(
int max_entries,
void* user_data);
237 char* (*get_state)(
void* user_data);
240 char* (*get_metrics)(
void* user_data);
246 char* (*get_docs)(
const char* section,
void* user_data);
265 char* (*search_delegations)(
const char* query,
int max_results,
283 char* (*load_delegation_conversation)(
const char* delegation_id,
301 char* (*get_residency)(
void* user_data);
320#define ENTROPIC_MCP_PLUGIN_API_VERSION 1
Symbol visibility macro for all exported symbols.
Error types for cross-.so error reporting.
entropic_error_t
Error codes returned by all C API functions.
ENTROPIC_EXPORT char * entropic_mcp_server_list_tools(entropic_mcp_server_t server)
List tools as JSON array string.
ENTROPIC_EXPORT void entropic_mcp_server_destroy(entropic_mcp_server_t server)
Destroy a server instance.
ENTROPIC_EXPORT 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_EXPORT entropic_mcp_server_t entropic_create_server(void)
Construct a server instance.
ENTROPIC_EXPORT int entropic_plugin_api_version(void)
Report the plugin API version this plugin was built against.
ENTROPIC_EXPORT entropic_error_t entropic_mcp_server_set_working_dir(entropic_mcp_server_t server, const char *path)
Set the working directory for a server.
ENTROPIC_EXPORT entropic_error_t entropic_mcp_server_configure(entropic_mcp_server_t server, const char *config_json)
Configure a server instance after creation.
ENTROPIC_EXPORT void entropic_free(void *ptr)
Free a string allocated by the server.
ENTROPIC_EXPORT const char * entropic_mcp_server_name(entropic_mcp_server_t server)
Get the server name.
Read-only engine state provider for introspection tools.
void * user_data
Opaque user data passed to all callbacks.