ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
mcp_job Struct Reference

When code needs to work with mcp policy, it keeps hosted, restricted, address, address6 here instead of scattering it across globals. Initialization establishes the handles and sizes; teardown must release any allocation, lock, thread, or callback context recorded in those fields. More...

#include <src/mcp-server/mcp.h>

Data Fields

struct mcp_server * server
yyjson_doc * message
yyjson_mut_doc * response
http_renderer_process_request_t request
mcp_tool_t tool
gotel_context_t telemetry_parent
http_renderer_job_t renderer_job
void * connection
char session_id [32+1]

Detailed Description

When code needs to work with mcp policy, it keeps hosted, restricted, address, address6 here instead of scattering it across globals. Initialization establishes the handles and sizes; teardown must release any allocation, lock, thread, or callback context recorded in those fields.

For mcp render result, this is the live record that ties text, length, elapsed_ms, timed_out together. The owning code creates it, updates it while work is active, and releases its handles and pointed-to storage before freeing the record.

Definition at line 60 of file mcp.h.

Field Documentation

◆ connection

void* mcp_job::connection

Definition at line 68 of file mcp.h.

Referenced by mcp_dispatch(), and mcp_jobs_reap().

◆ message

yyjson_doc* mcp_job::message

Definition at line 62 of file mcp.h.

Referenced by mcp_dispatch(), and mcp_jobs_reap().

◆ renderer_job

http_renderer_job_t mcp_job::renderer_job

Definition at line 67 of file mcp.h.

Referenced by mcp_dispatch(), mcp_http_run(), mcp_jobs_reap(), mcp_server_main(), and mcp_stdio_run().

◆ request

Definition at line 64 of file mcp.h.

Referenced by mcp_dispatch().

◆ response

yyjson_mut_doc* mcp_job::response

Definition at line 63 of file mcp.h.

Referenced by mcp_jobs_reap().

◆ server

struct mcp_server* mcp_job::server

Definition at line 61 of file mcp.h.

Referenced by mcp_dispatch().

◆ session_id

char mcp_job::session_id[32+1]

Definition at line 69 of file mcp.h.

Referenced by mcp_dispatch().

◆ telemetry_parent

gotel_context_t mcp_job::telemetry_parent

Definition at line 66 of file mcp.h.

Referenced by mcp_dispatch().

◆ tool

mcp_tool_t mcp_job::tool

Definition at line 65 of file mcp.h.

Referenced by mcp_dispatch().


The documentation for this struct was generated from the following file: