MCPcopy
hub / github.com/pathwaycom/pathway / get

Method get

python/pathway/xpacks/llm/mcp_server.py:194–200  ·  view source on GitHub ↗

Returns an instance of the MCP server with the given configuration.

(cls, config: McpConfig)

Source from the content-addressed store, hash-verified

192
193 @classmethod
194 def get(cls, config: McpConfig) -> McpServer:
195 """
196 Returns an instance of the MCP server with the given configuration.
197 """
198 if config.name not in cls._instances:
199 cls._instances[config.name] = cls(config)
200 return cls._instances[config.name]
201
202 def _register_endpoint(
203 self,

Callers 15

spawn_from_envFunction · 0.45
cargo_buildFunction · 0.45
parse_imageFunction · 0.45
modelMethod · 0.45
_prep_message_logFunction · 0.45
modelMethod · 0.45
__wrapped__Method · 0.45
__wrapped__Method · 0.45
__wrapped__Method · 0.45
_chunkMethod · 0.45

Calls

no outgoing calls