Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/3choff/mcp-chatbot
/ functions
Functions
18 in github.com/3choff/mcp-chatbot
⨍
Functions
18
◇
Types & classes
5
↓ 2 callers
Method
cleanup
Clean up server resources.
main.py:180
↓ 2 callers
Method
cleanup_servers
Clean up all servers properly.
main.py:302
↓ 2 callers
Method
get_response
Get a response from the LLM. Args: messages: A list of message dictionaries. Returns: Th
main.py:241
↓ 2 callers
Method
list_tools
List available tools from the server. Returns: A list of available tools. Raises: Runtim
main.py:92
↓ 1 callers
Method
execute_tool
Execute a tool with retry mechanism. Args: tool_name: Name of the tool to execute. arguments: Tool arguments.
main.py:124
↓ 1 callers
Method
format_for_llm
Format tool information for LLM. Returns: A formatted string describing the tool.
main.py:213
↓ 1 callers
Method
initialize
Initialize the server connection.
main.py:74
↓ 1 callers
Method
load_config
Load server configuration from JSON file. Args: file_path: Path to the JSON configuration file. Retu
main.py:32
↓ 1 callers
Method
load_env
Load environment variables from .env file.
main.py:27
↓ 1 callers
Function
main
Initialize and run the chat session.
main.py:431
↓ 1 callers
Method
process_llm_response
Process the LLM response and execute tools if needed. Args: llm_response: The response from the LLM.
main.py:314
↓ 1 callers
Method
start
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
Method
llm_api_key
Get the LLM API key. Returns: The API key as a string. Raises: ValueError: If the API ke
main.py:49