MCPcopy
hub / github.com/Cinnamon/kotaemon / add

Method add

libs/ktem/ktem/mcp/manager.py:46–57  ·  view source on GitHub ↗

Add a new MCP server configuration.

(self, name: str, config: dict)

Source from the content-addressed store, hash-verified

44 return self._info.get(name)
45
46 def add(self, name: str, config: dict):
47 """Add a new MCP server configuration."""
48 name = name.strip()
49 if not name:
50 raise ValueError("Name must not be empty")
51
52 with Session(engine) as session:
53 item = MCPTable(name=name, config=config)
54 session.add(item)
55 session.commit()
56
57 self.load()
58
59 def update(self, name: str, config: dict):
60 """Update an existing MCP server configuration."""

Callers 15

change_passwordMethod · 0.45
save_settingMethod · 0.45
create_userFunction · 0.45
create_userMethod · 0.45
new_convMethod · 0.45
rename_convMethod · 0.45
reportMethod · 0.45
persist_data_sourceMethod · 0.45
is_likedMethod · 0.45
runFunction · 0.45

Calls 2

loadMethod · 0.95
MCPTableClass · 0.85