MCPcopy Create free account
hub / github.com/AI45Lab/Code / add_mcp

Method add_mcp

sdk/python/src/lib.rs:2619–2621  ·  view source on GitHub ↗

Add an MCP server with the compact object-shaped API.

(&self, py: Python<'_>, config: &Bound<'_, PyDict>)

Source from the content-addressed store, hash-verified

2617
2618 /// Add an MCP server with the compact object-shaped API.
2619 fn add_mcp(&self, py: Python<'_>, config: &Bound<'_, PyDict>) -> PyResult<usize> {
2620 self.add_mcp_server_config(py, config)
2621 }
2622
2623 /// Dynamically register agents from a directory with the live session.
2624 ///

Callers

nothing calls this directly

Calls 1

add_mcp_server_configMethod · 0.45

Tested by

no test coverage detected