Entropic 2.3.8
Local-first agentic inference engine
Loading...
Searching...
No Matches
i_mcp_server.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
37#pragma once
38
39#include <stddef.h>
41
42#ifdef __cplusplus
43extern "C" {
44#endif
45
50typedef struct entropic_mcp_server* entropic_mcp_server_t;
51
59
67
78char* entropic_mcp_server_execute(entropic_mcp_server_t server, const char* tool_name, const char* args_json);
79
93 const char* config_json);
94
109 const char* path);
110
117
123void entropic_free(void* ptr);
124
137typedef struct {
139 char* (*get_config)(void* user_data);
140
142 char* (*get_identities)(void* user_data);
143
145 char* (*get_tools)(void* user_data);
146
151 char* (*get_history)(int max_entries, void* user_data);
152
154 char* (*get_state)(void* user_data);
155
157 char* (*get_metrics)(void* user_data);
158
163 char* (*get_docs)(const char* section, void* user_data);
164
182 char* (*search_delegations)(const char* query, int max_results,
183 void* user_data);
184
200 char* (*load_delegation_conversation)(const char* delegation_id,
201 void* user_data);
202
218 char* (*get_residency)(void* user_data);
219
223
224#ifdef __cplusplus
225}
226#endif
227
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.
Definition error.h:35
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.
Definition mcp_c_api.cpp:86
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.
Definition mcp_c_api.cpp:56
char * entropic_mcp_server_list_tools(entropic_mcp_server_t server)
List tools as JSON array string.
Definition mcp_c_api.cpp:70
Read-only engine state provider for introspection tools.
void * user_data
Opaque user data passed to all callbacks.