MCPcopy Create free account

hub / github.com/3choff/mcp-chatbot / functions

Functions18 in github.com/3choff/mcp-chatbot

↓ 2 callersMethodcleanup
Clean up server resources.
main.py:180
↓ 2 callersMethodcleanup_servers
Clean up all servers properly.
main.py:302
↓ 2 callersMethodget_response
Get a response from the LLM. Args: messages: A list of message dictionaries. Returns: Th
main.py:241
↓ 2 callersMethodlist_tools
List available tools from the server. Returns: A list of available tools. Raises: Runtim
main.py:92
↓ 1 callersMethodexecute_tool
Execute a tool with retry mechanism. Args: tool_name: Name of the tool to execute. arguments: Tool arguments.
main.py:124
↓ 1 callersMethodformat_for_llm
Format tool information for LLM. Returns: A formatted string describing the tool.
main.py:213
↓ 1 callersMethodinitialize
Initialize the server connection.
main.py:74
↓ 1 callersMethodload_config
Load server configuration from JSON file. Args: file_path: Path to the JSON configuration file. Retu
main.py:32
↓ 1 callersMethodload_env
Load environment variables from .env file.
main.py:27
↓ 1 callersFunctionmain
Initialize and run the chat session.
main.py:431
↓ 1 callersMethodprocess_llm_response
Process the LLM response and execute tools if needed. Args: llm_response: The response from the LLM.
main.py:314
↓ 1 callersMethodstart
Main chat session handler.
main.py:352
Method__init__
Initialize configuration with environment variables.
main.py:20
Method__init__
(self, name: str, config: Dict[str, Any])
main.py:66
Method__init__
(self, name: str, description: str, input_schema: Dict[str, Any])
main.py:208
Method__init__
(self, api_key: str)
main.py:238
Method__init__
(self, servers: List[Server], llm_client: LLMClient)
main.py:298
Methodllm_api_key
Get the LLM API key. Returns: The API key as a string. Raises: ValueError: If the API ke
main.py:49