Config
Object Hierarchy:
Description:
public class Config : Object, Serializable
Configuration for a single MCP server (one service).
Corresponds to one element in the mcp.json array. Used by Registry/Loader to create a client (via a transport factory) and register
tools.
Content:
Properties:
- public bool allow_unsandboxed { get; set; }
When true, allow stdio MCP without OLLMchat's bubblewrap layer (direct
subprocess spawn). Required on Windows and inside Flatpak; ignored when bubblewrap is used on a Linux host.
network and
allow_writes do not apply on the unsandboxed path.
- public ArrayList<string> allow_writes { get; set; }
Extra allow_write entries from mcp.json (string split on ":" or JSON
array elements). Passed to Bubble write_array at spawn; may include "project" or absolute paths as configured.
- public ArrayList<string> args { get; set; }
For stdio: arguments (e.g. ["-y", "@modelcontextprotocol/server-
chrome"]).
- public string command { get; set; }
For stdio: command to run (e.g. "npx").
- public bool enabled { get; set; }
If false, skip this server (no client, no tools).
- public Map<string,string> env { get; set; }
For stdio: optional environment variables.
- public string id { get; set; }
Unique key for this server (tool name prefix, e.g. mcp:id:tool_name).
- public bool network { get; set; }
When true, allow network in bwrap sandbox (omit --unshare-net).
Default false.
- public string transport { get; set; }
Transport: "stdio" or "http".
- public string url { get; set; }
Static methods:
Creation methods:
Methods:
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref
All known members inherited from interface Json.Serializable
- default_deserialize_property
- default_serialize_property
- deserialize_property
- find_property
- get_property
- list_properties
- serialize_property
- set_property