This is page 3 of 20. Use http://codebase.md/fujitsu-ai/mcp-server-for-mas-developments?lines=true&page={x} to view the full context.
# Directory Structure
```
├── .gitattributes
├── .gitignore
├── agents
│ ├── __init__.py
│ ├── AgentInterface
│ │ ├── __init__.py
│ │ ├── Python
│ │ │ ├── __init__.py
│ │ │ ├── agent.py
│ │ │ ├── color.py
│ │ │ ├── config.py
│ │ │ ├── language.py
│ │ │ ├── local_file_handler.py
│ │ │ └── network.py
│ │ └── requirements.txt
│ ├── AgentMonitoring
│ │ ├── ChatBot-Agent Dashboard Example - Grafana.json
│ │ ├── images
│ │ │ ├── Grafana.png
│ │ │ └── Prometheus.png
│ │ ├── IoT-Agent Dashboard Example - Grafana.json
│ │ ├── OpenAI compatible API - Agent Dashboard Example - Grafana.json
│ │ ├── prometheus Example.yml
│ │ └── README.md
│ ├── ChatBotAgent
│ │ ├── __init__.py
│ │ ├── config.json.example
│ │ ├── html
│ │ │ ├── favicon.ico
│ │ │ ├── index_de.html
│ │ │ ├── index.html
│ │ │ ├── Logo_light.svg
│ │ │ ├── start_http_server.ps1
│ │ │ └── start_http_server.sh
│ │ ├── Python
│ │ │ ├── __init__.py
│ │ │ └── chatbot_agent.py
│ │ ├── README.md
│ │ └── requirements.txt
│ ├── IoTAgent
│ │ ├── config_example.json
│ │ ├── Python
│ │ │ ├── iot_mqtt_agent.py
│ │ │ └── language.py
│ │ ├── README.md
│ │ └── requirements.txt
│ ├── ISMAgent
│ │ ├── config_example.json
│ │ ├── PGPT Scenario Prompts
│ │ │ ├── ISM System Prompt - Detecting Error State.txt
│ │ │ ├── ISM User Post-Prompt - Detecting Error State.txt
│ │ │ ├── ISM User Pre-Prompt - Detecting Error State.txt
│ │ │ └── README.md
│ │ ├── Python
│ │ │ ├── ism_agent.py
│ │ │ └── language.py
│ │ ├── README.md
│ │ ├── requirements.txt
│ │ └── start_ism_agent.ps1
│ ├── MCP-Client
│ │ ├── __init__.py
│ │ ├── .env.example
│ │ ├── Python
│ │ │ ├── __init__.py
│ │ │ ├── chat_handler.py
│ │ │ ├── config.py
│ │ │ ├── environment.py
│ │ │ ├── llm_client.py
│ │ │ ├── mcp_client_sse.py
│ │ │ ├── mcp_client.py
│ │ │ ├── messages
│ │ │ │ ├── __init__.py
│ │ │ │ ├── message_types
│ │ │ │ │ ├── __init__.py
│ │ │ │ │ ├── incrementing_id_message.py
│ │ │ │ │ ├── initialize_message.py
│ │ │ │ │ ├── json_rpc_message.py
│ │ │ │ │ ├── ping_message.py
│ │ │ │ │ ├── prompts_messages.py
│ │ │ │ │ ├── prompts_models.py
│ │ │ │ │ ├── resources_messages.py
│ │ │ │ │ └── tools_messages.py
│ │ │ │ ├── send_call_tool.py
│ │ │ │ ├── send_initialize_message.py
│ │ │ │ ├── send_message.py
│ │ │ │ ├── send_ping.py
│ │ │ │ ├── send_prompts.py
│ │ │ │ ├── send_resources.py
│ │ │ │ └── send_tools_list.py
│ │ │ ├── system_prompt_generator.py
│ │ │ ├── tools_handler.py
│ │ │ └── transport
│ │ │ ├── __init__.py
│ │ │ └── stdio
│ │ │ ├── __init__.py
│ │ │ ├── stdio_client.py
│ │ │ ├── stdio_server_parameters.py
│ │ │ └── stdio_server_shutdown.py
│ │ ├── README.md
│ │ ├── requirements.txt
│ │ └── server_config.json
│ ├── OpenAI_Compatible_API_Agent
│ │ ├── __init__.py
│ │ ├── docker-compose.yml
│ │ ├── Dockerfile
│ │ ├── pgpt_openai_api_mcp.json.example
│ │ ├── pgpt_openai_api_proxy.json.example
│ │ ├── Python
│ │ │ ├── __init__.py
│ │ │ ├── client_tests
│ │ │ │ ├── __init__.py
│ │ │ │ ├── openai_test_client_structured.py
│ │ │ │ ├── openai_test_client_tools.py
│ │ │ │ ├── openai_test_client.py
│ │ │ │ ├── vllm_client_multimodal.py
│ │ │ │ ├── vllm_client.py
│ │ │ │ ├── vllm_structured.py
│ │ │ │ └── vllm_structured2.py
│ │ │ ├── generate_api_key.py
│ │ │ ├── open_ai_helper.py
│ │ │ ├── openai_compatible_api.py
│ │ │ ├── openai_mcp_api.py
│ │ │ ├── pgpt_api.py
│ │ │ ├── privategpt_api.py
│ │ │ └── vllmproxy.py
│ │ ├── README.md
│ │ └── requirements.txt
│ └── SourceManagerAgent
│ ├── __init__.py
│ ├── config.json.example
│ └── Python
│ ├── __init__.py
│ ├── file_tools
│ │ └── loader_factory.py
│ ├── file_upload_agent.py
│ └── local_db.py
├── clients
│ ├── __init__.py
│ ├── C# .Net
│ │ ├── 1.0 mcp_login
│ │ │ ├── bin
│ │ │ │ └── Debug
│ │ │ │ └── net9.0
│ │ │ │ ├── mcp_login.deps.json
│ │ │ │ ├── mcp_login.dll
│ │ │ │ ├── mcp_login.exe
│ │ │ │ ├── mcp_login.pdb
│ │ │ │ ├── mcp_login.runtimeconfig.json
│ │ │ │ └── Newtonsoft.Json.dll
│ │ │ ├── mcp_login.csproj
│ │ │ ├── obj
│ │ │ │ ├── Debug
│ │ │ │ │ └── net9.0
│ │ │ │ │ ├── .NETCoreApp,Version=v9.0.AssemblyAttributes.cs
│ │ │ │ │ ├── apphost.exe
│ │ │ │ │ ├── mcp_login.AssemblyInfo.cs
│ │ │ │ │ ├── mcp_login.AssemblyInfoInputs.cache
│ │ │ │ │ ├── mcp_login.assets.cache
│ │ │ │ │ ├── mcp_login.csproj.AssemblyReference.cache
│ │ │ │ │ ├── mcp_login.csproj.CoreCompileInputs.cache
│ │ │ │ │ ├── mcp_login.csproj.FileListAbsolute.txt
│ │ │ │ │ ├── mcp_login.csproj.Up2Date
│ │ │ │ │ ├── mcp_login.dll
│ │ │ │ │ ├── mcp_login.GeneratedMSBuildEditorConfig.editorconfig
│ │ │ │ │ ├── mcp_login.genruntimeconfig.cache
│ │ │ │ │ ├── mcp_login.GlobalUsings.g.cs
│ │ │ │ │ ├── mcp_login.pdb
│ │ │ │ │ ├── ref
│ │ │ │ │ │ └── mcp_login.dll
│ │ │ │ │ └── refint
│ │ │ │ │ └── mcp_login.dll
│ │ │ │ ├── mcp_login.csproj.nuget.dgspec.json
│ │ │ │ ├── mcp_login.csproj.nuget.g.props
│ │ │ │ ├── mcp_login.csproj.nuget.g.targets
│ │ │ │ ├── project.assets.json
│ │ │ │ └── project.nuget.cache
│ │ │ └── Program.cs
│ │ ├── 1.1 mcp_logout
│ │ │ ├── bin
│ │ │ │ └── Debug
│ │ │ │ └── net9.0
│ │ │ │ ├── mcp_logout.deps.json
│ │ │ │ ├── mcp_logout.dll
│ │ │ │ ├── mcp_logout.exe
│ │ │ │ ├── mcp_logout.pdb
│ │ │ │ ├── mcp_logout.runtimeconfig.json
│ │ │ │ └── Newtonsoft.Json.dll
│ │ │ ├── mcp_logout.csproj
│ │ │ ├── obj
│ │ │ │ ├── Debug
│ │ │ │ │ └── net9.0
│ │ │ │ │ ├── .NETCoreApp,Version=v9.0.AssemblyAttributes.cs
│ │ │ │ │ ├── apphost.exe
│ │ │ │ │ ├── mcp_logout.AssemblyInfo.cs
│ │ │ │ │ ├── mcp_logout.AssemblyInfoInputs.cache
│ │ │ │ │ ├── mcp_logout.assets.cache
│ │ │ │ │ ├── mcp_logout.csproj.AssemblyReference.cache
│ │ │ │ │ ├── mcp_logout.csproj.CoreCompileInputs.cache
│ │ │ │ │ ├── mcp_logout.csproj.FileListAbsolute.txt
│ │ │ │ │ ├── mcp_logout.csproj.Up2Date
│ │ │ │ │ ├── mcp_logout.dll
│ │ │ │ │ ├── mcp_logout.GeneratedMSBuildEditorConfig.editorconfig
│ │ │ │ │ ├── mcp_logout.genruntimeconfig.cache
│ │ │ │ │ ├── mcp_logout.GlobalUsings.g.cs
│ │ │ │ │ ├── mcp_logout.pdb
│ │ │ │ │ ├── ref
│ │ │ │ │ │ └── mcp_logout.dll
│ │ │ │ │ └── refint
│ │ │ │ │ └── mcp_logout.dll
│ │ │ │ ├── mcp_logout.csproj.nuget.dgspec.json
│ │ │ │ ├── mcp_logout.csproj.nuget.g.props
│ │ │ │ ├── mcp_logout.csproj.nuget.g.targets
│ │ │ │ ├── project.assets.json
│ │ │ │ └── project.nuget.cache
│ │ │ └── Program.cs
│ │ ├── 2.0 mcp_chat
│ │ │ ├── bin
│ │ │ │ └── Debug
│ │ │ │ └── net9.0
│ │ │ │ ├── mcp_chat.deps.json
│ │ │ │ ├── mcp_chat.dll
│ │ │ │ ├── mcp_chat.exe
│ │ │ │ ├── mcp_chat.pdb
│ │ │ │ ├── mcp_chat.runtimeconfig.json
│ │ │ │ └── Newtonsoft.Json.dll
│ │ │ ├── mcp_chat.csproj
│ │ │ ├── obj
│ │ │ │ ├── Debug
│ │ │ │ │ └── net9.0
│ │ │ │ │ ├── .NETCoreApp,Version=v9.0.AssemblyAttributes.cs
│ │ │ │ │ ├── apphost.exe
│ │ │ │ │ ├── mcp_chat.AssemblyInfo.cs
│ │ │ │ │ ├── mcp_chat.AssemblyInfoInputs.cache
│ │ │ │ │ ├── mcp_chat.assets.cache
│ │ │ │ │ ├── mcp_chat.csproj.AssemblyReference.cache
│ │ │ │ │ ├── mcp_chat.csproj.CoreCompileInputs.cache
│ │ │ │ │ ├── mcp_chat.csproj.FileListAbsolute.txt
│ │ │ │ │ ├── mcp_chat.csproj.Up2Date
│ │ │ │ │ ├── mcp_chat.dll
│ │ │ │ │ ├── mcp_chat.GeneratedMSBuildEditorConfig.editorconfig
│ │ │ │ │ ├── mcp_chat.genruntimeconfig.cache
│ │ │ │ │ ├── mcp_chat.GlobalUsings.g.cs
│ │ │ │ │ ├── mcp_chat.pdb
│ │ │ │ │ ├── ref
│ │ │ │ │ │ └── mcp_chat.dll
│ │ │ │ │ └── refint
│ │ │ │ │ └── mcp_chat.dll
│ │ │ │ ├── mcp_chat.csproj.nuget.dgspec.json
│ │ │ │ ├── mcp_chat.csproj.nuget.g.props
│ │ │ │ ├── mcp_chat.csproj.nuget.g.targets
│ │ │ │ ├── project.assets.json
│ │ │ │ └── project.nuget.cache
│ │ │ └── Program.cs
│ │ ├── 2.1 mcp_continue_chat
│ │ │ ├── bin
│ │ │ │ └── Debug
│ │ │ │ └── net9.0
│ │ │ │ ├── mcp_continue_chat.deps.json
│ │ │ │ ├── mcp_continue_chat.dll
│ │ │ │ ├── mcp_continue_chat.exe
│ │ │ │ ├── mcp_continue_chat.pdb
│ │ │ │ ├── mcp_continue_chat.runtimeconfig.json
│ │ │ │ └── Newtonsoft.Json.dll
│ │ │ ├── mcp_continue_chat.csproj
│ │ │ ├── obj
│ │ │ │ ├── Debug
│ │ │ │ │ └── net9.0
│ │ │ │ │ ├── .NETCoreApp,Version=v9.0.AssemblyAttributes.cs
│ │ │ │ │ ├── apphost.exe
│ │ │ │ │ ├── mcp_cont.EF178231.Up2Date
│ │ │ │ │ ├── mcp_continue_chat.AssemblyInfo.cs
│ │ │ │ │ ├── mcp_continue_chat.AssemblyInfoInputs.cache
│ │ │ │ │ ├── mcp_continue_chat.assets.cache
│ │ │ │ │ ├── mcp_continue_chat.csproj.AssemblyReference.cache
│ │ │ │ │ ├── mcp_continue_chat.csproj.CoreCompileInputs.cache
│ │ │ │ │ ├── mcp_continue_chat.csproj.FileListAbsolute.txt
│ │ │ │ │ ├── mcp_continue_chat.dll
│ │ │ │ │ ├── mcp_continue_chat.GeneratedMSBuildEditorConfig.editorconfig
│ │ │ │ │ ├── mcp_continue_chat.genruntimeconfig.cache
│ │ │ │ │ ├── mcp_continue_chat.GlobalUsings.g.cs
│ │ │ │ │ ├── mcp_continue_chat.pdb
│ │ │ │ │ ├── ref
│ │ │ │ │ │ └── mcp_continue_chat.dll
│ │ │ │ │ └── refint
│ │ │ │ │ └── mcp_continue_chat.dll
│ │ │ │ ├── mcp_continue_chat.csproj.nuget.dgspec.json
│ │ │ │ ├── mcp_continue_chat.csproj.nuget.g.props
│ │ │ │ ├── mcp_continue_chat.csproj.nuget.g.targets
│ │ │ │ ├── project.assets.json
│ │ │ │ └── project.nuget.cache
│ │ │ └── Program.cs
│ │ ├── 2.2 mcp_get_chat_info
│ │ │ ├── bin
│ │ │ │ └── Debug
│ │ │ │ └── net9.0
│ │ │ │ ├── mcp_get_chat_info.deps.json
│ │ │ │ ├── mcp_get_chat_info.dll
│ │ │ │ ├── mcp_get_chat_info.exe
│ │ │ │ ├── mcp_get_chat_info.pdb
│ │ │ │ ├── mcp_get_chat_info.runtimeconfig.json
│ │ │ │ └── Newtonsoft.Json.dll
│ │ │ ├── Dokumente - Verknüpfung.lnk
│ │ │ ├── mcp_get_chat_info.csproj
│ │ │ ├── obj
│ │ │ │ ├── Debug
│ │ │ │ │ └── net9.0
│ │ │ │ │ ├── .NETCoreApp,Version=v9.0.AssemblyAttributes.cs
│ │ │ │ │ ├── apphost.exe
│ │ │ │ │ ├── mcp_get_.DFF47B4E.Up2Date
│ │ │ │ │ ├── mcp_get_chat_info.AssemblyInfo.cs
│ │ │ │ │ ├── mcp_get_chat_info.AssemblyInfoInputs.cache
│ │ │ │ │ ├── mcp_get_chat_info.assets.cache
│ │ │ │ │ ├── mcp_get_chat_info.csproj.AssemblyReference.cache
│ │ │ │ │ ├── mcp_get_chat_info.csproj.CoreCompileInputs.cache
│ │ │ │ │ ├── mcp_get_chat_info.csproj.FileListAbsolute.txt
│ │ │ │ │ ├── mcp_get_chat_info.dll
│ │ │ │ │ ├── mcp_get_chat_info.GeneratedMSBuildEditorConfig.editorconfig
│ │ │ │ │ ├── mcp_get_chat_info.genruntimeconfig.cache
│ │ │ │ │ ├── mcp_get_chat_info.GlobalUsings.g.cs
│ │ │ │ │ ├── mcp_get_chat_info.pdb
│ │ │ │ │ ├── ref
│ │ │ │ │ │ └── mcp_get_chat_info.dll
│ │ │ │ │ └── refint
│ │ │ │ │ └── mcp_get_chat_info.dll
│ │ │ │ ├── mcp_get_chat_info.csproj.nuget.dgspec.json
│ │ │ │ ├── mcp_get_chat_info.csproj.nuget.g.props
│ │ │ │ ├── mcp_get_chat_info.csproj.nuget.g.targets
│ │ │ │ ├── project.assets.json
│ │ │ │ └── project.nuget.cache
│ │ │ └── Program.cs
│ │ ├── 3.0 mcp_create_source
│ │ │ ├── bin
│ │ │ │ └── Debug
│ │ │ │ └── net9.0
│ │ │ │ ├── mcp_create_source.deps.json
│ │ │ │ ├── mcp_create_source.dll
│ │ │ │ ├── mcp_create_source.exe
│ │ │ │ ├── mcp_create_source.pdb
│ │ │ │ ├── mcp_create_source.runtimeconfig.json
│ │ │ │ └── Newtonsoft.Json.dll
│ │ │ ├── mcp_create_source.csproj
│ │ │ ├── obj
│ │ │ │ ├── Debug
│ │ │ │ │ └── net9.0
│ │ │ │ │ ├── .NETCoreApp,Version=v9.0.AssemblyAttributes.cs
│ │ │ │ │ ├── apphost.exe
│ │ │ │ │ ├── mcp_crea.CB4ED912.Up2Date
│ │ │ │ │ ├── mcp_create_source.AssemblyInfo.cs
│ │ │ │ │ ├── mcp_create_source.AssemblyInfoInputs.cache
│ │ │ │ │ ├── mcp_create_source.assets.cache
│ │ │ │ │ ├── mcp_create_source.csproj.AssemblyReference.cache
│ │ │ │ │ ├── mcp_create_source.csproj.CoreCompileInputs.cache
│ │ │ │ │ ├── mcp_create_source.csproj.FileListAbsolute.txt
│ │ │ │ │ ├── mcp_create_source.dll
│ │ │ │ │ ├── mcp_create_source.GeneratedMSBuildEditorConfig.editorconfig
│ │ │ │ │ ├── mcp_create_source.genruntimeconfig.cache
│ │ │ │ │ ├── mcp_create_source.GlobalUsings.g.cs
│ │ │ │ │ ├── mcp_create_source.pdb
│ │ │ │ │ ├── ref
│ │ │ │ │ │ └── mcp_create_source.dll
│ │ │ │ │ └── refint
│ │ │ │ │ └── mcp_create_source.dll
│ │ │ │ ├── mcp_create_source.csproj.nuget.dgspec.json
│ │ │ │ ├── mcp_create_source.csproj.nuget.g.props
│ │ │ │ ├── mcp_create_source.csproj.nuget.g.targets
│ │ │ │ ├── project.assets.json
│ │ │ │ └── project.nuget.cache
│ │ │ └── Program.cs
│ │ ├── 3.1 mcp_get_source
│ │ │ ├── bin
│ │ │ │ └── Debug
│ │ │ │ └── net9.0
│ │ │ │ ├── mcp_get_source.deps.json
│ │ │ │ ├── mcp_get_source.dll
│ │ │ │ ├── mcp_get_source.exe
│ │ │ │ ├── mcp_get_source.pdb
│ │ │ │ ├── mcp_get_source.runtimeconfig.json
│ │ │ │ └── Newtonsoft.Json.dll
│ │ │ ├── mcp_get_source.csproj
│ │ │ ├── obj
│ │ │ │ ├── Debug
│ │ │ │ │ └── net9.0
│ │ │ │ │ ├── .NETCoreApp,Version=v9.0.AssemblyAttributes.cs
│ │ │ │ │ ├── apphost.exe
│ │ │ │ │ ├── mcp_get_.4E61956F.Up2Date
│ │ │ │ │ ├── mcp_get_source.AssemblyInfo.cs
│ │ │ │ │ ├── mcp_get_source.AssemblyInfoInputs.cache
│ │ │ │ │ ├── mcp_get_source.assets.cache
│ │ │ │ │ ├── mcp_get_source.csproj.AssemblyReference.cache
│ │ │ │ │ ├── mcp_get_source.csproj.CoreCompileInputs.cache
│ │ │ │ │ ├── mcp_get_source.csproj.FileListAbsolute.txt
│ │ │ │ │ ├── mcp_get_source.dll
│ │ │ │ │ ├── mcp_get_source.GeneratedMSBuildEditorConfig.editorconfig
│ │ │ │ │ ├── mcp_get_source.genruntimeconfig.cache
│ │ │ │ │ ├── mcp_get_source.GlobalUsings.g.cs
│ │ │ │ │ ├── mcp_get_source.pdb
│ │ │ │ │ ├── ref
│ │ │ │ │ │ └── mcp_get_source.dll
│ │ │ │ │ └── refint
│ │ │ │ │ └── mcp_get_source.dll
│ │ │ │ ├── mcp_get_source.csproj.nuget.dgspec.json
│ │ │ │ ├── mcp_get_source.csproj.nuget.g.props
│ │ │ │ ├── mcp_get_source.csproj.nuget.g.targets
│ │ │ │ ├── project.assets.json
│ │ │ │ └── project.nuget.cache
│ │ │ └── Program.cs
│ │ ├── 3.2 mcp_list_sources
│ │ │ ├── bin
│ │ │ │ └── Debug
│ │ │ │ └── net9.0
│ │ │ │ ├── mcp_list_sources.deps.json
│ │ │ │ ├── mcp_list_sources.dll
│ │ │ │ ├── mcp_list_sources.exe
│ │ │ │ ├── mcp_list_sources.pdb
│ │ │ │ ├── mcp_list_sources.runtimeconfig.json
│ │ │ │ └── Newtonsoft.Json.dll
│ │ │ ├── mcp_list_sources.csproj
│ │ │ ├── obj
│ │ │ │ ├── Debug
│ │ │ │ │ └── net9.0
│ │ │ │ │ ├── .NETCoreApp,Version=v9.0.AssemblyAttributes.cs
│ │ │ │ │ ├── apphost.exe
│ │ │ │ │ ├── mcp_list_sources.AssemblyInfo.cs
│ │ │ │ │ ├── mcp_list_sources.AssemblyInfoInputs.cache
│ │ │ │ │ ├── mcp_list_sources.assets.cache
│ │ │ │ │ ├── mcp_list_sources.csproj.AssemblyReference.cache
│ │ │ │ │ ├── mcp_list_sources.csproj.CoreCompileInputs.cache
│ │ │ │ │ ├── mcp_list_sources.csproj.FileListAbsolute.txt
│ │ │ │ │ ├── mcp_list_sources.dll
│ │ │ │ │ ├── mcp_list_sources.GeneratedMSBuildEditorConfig.editorconfig
│ │ │ │ │ ├── mcp_list_sources.genruntimeconfig.cache
│ │ │ │ │ ├── mcp_list_sources.GlobalUsings.g.cs
│ │ │ │ │ ├── mcp_list_sources.pdb
│ │ │ │ │ ├── mcp_list.A720E197.Up2Date
│ │ │ │ │ ├── ref
│ │ │ │ │ │ └── mcp_list_sources.dll
│ │ │ │ │ └── refint
│ │ │ │ │ └── mcp_list_sources.dll
│ │ │ │ ├── mcp_list_sources.csproj.nuget.dgspec.json
│ │ │ │ ├── mcp_list_sources.csproj.nuget.g.props
│ │ │ │ ├── mcp_list_sources.csproj.nuget.g.targets
│ │ │ │ ├── project.assets.json
│ │ │ │ └── project.nuget.cache
│ │ │ └── Program.cs
│ │ ├── 3.3 mcp_edit_source
│ │ │ ├── bin
│ │ │ │ └── Debug
│ │ │ │ └── net9.0
│ │ │ │ ├── mcp_edit_source.deps.json
│ │ │ │ ├── mcp_edit_source.dll
│ │ │ │ ├── mcp_edit_source.exe
│ │ │ │ ├── mcp_edit_source.pdb
│ │ │ │ ├── mcp_edit_source.runtimeconfig.json
│ │ │ │ └── Newtonsoft.Json.dll
│ │ │ ├── mcp_edit_source.csproj
│ │ │ ├── obj
│ │ │ │ ├── Debug
│ │ │ │ │ └── net9.0
│ │ │ │ │ ├── .NETCoreApp,Version=v9.0.AssemblyAttributes.cs
│ │ │ │ │ ├── apphost.exe
│ │ │ │ │ ├── mcp_edit_source.AssemblyInfo.cs
│ │ │ │ │ ├── mcp_edit_source.AssemblyInfoInputs.cache
│ │ │ │ │ ├── mcp_edit_source.assets.cache
│ │ │ │ │ ├── mcp_edit_source.csproj.AssemblyReference.cache
│ │ │ │ │ ├── mcp_edit_source.csproj.CoreCompileInputs.cache
│ │ │ │ │ ├── mcp_edit_source.csproj.FileListAbsolute.txt
│ │ │ │ │ ├── mcp_edit_source.dll
│ │ │ │ │ ├── mcp_edit_source.GeneratedMSBuildEditorConfig.editorconfig
│ │ │ │ │ ├── mcp_edit_source.genruntimeconfig.cache
│ │ │ │ │ ├── mcp_edit_source.GlobalUsings.g.cs
│ │ │ │ │ ├── mcp_edit_source.pdb
│ │ │ │ │ ├── mcp_edit.7303BE3B.Up2Date
│ │ │ │ │ ├── ref
│ │ │ │ │ │ └── mcp_edit_source.dll
│ │ │ │ │ └── refint
│ │ │ │ │ └── mcp_edit_source.dll
│ │ │ │ ├── mcp_edit_source.csproj.nuget.dgspec.json
│ │ │ │ ├── mcp_edit_source.csproj.nuget.g.props
│ │ │ │ ├── mcp_edit_source.csproj.nuget.g.targets
│ │ │ │ ├── project.assets.json
│ │ │ │ └── project.nuget.cache
│ │ │ └── Program.cs
│ │ ├── 3.4 mcp_delete_source
│ │ │ ├── bin
│ │ │ │ └── Debug
│ │ │ │ └── net9.0
│ │ │ │ ├── mcp_delete_source.deps.json
│ │ │ │ ├── mcp_delete_source.dll
│ │ │ │ ├── mcp_delete_source.exe
│ │ │ │ ├── mcp_delete_source.pdb
│ │ │ │ ├── mcp_delete_source.runtimeconfig.json
│ │ │ │ └── Newtonsoft.Json.dll
│ │ │ ├── mcp_delete_source.csproj
│ │ │ ├── obj
│ │ │ │ ├── Debug
│ │ │ │ │ └── net9.0
│ │ │ │ │ ├── .NETCoreApp,Version=v9.0.AssemblyAttributes.cs
│ │ │ │ │ ├── apphost.exe
│ │ │ │ │ ├── mcp_dele.67DD13F9.Up2Date
│ │ │ │ │ ├── mcp_delete_source.AssemblyInfo.cs
│ │ │ │ │ ├── mcp_delete_source.AssemblyInfoInputs.cache
│ │ │ │ │ ├── mcp_delete_source.assets.cache
│ │ │ │ │ ├── mcp_delete_source.csproj.AssemblyReference.cache
│ │ │ │ │ ├── mcp_delete_source.csproj.CoreCompileInputs.cache
│ │ │ │ │ ├── mcp_delete_source.csproj.FileListAbsolute.txt
│ │ │ │ │ ├── mcp_delete_source.dll
│ │ │ │ │ ├── mcp_delete_source.GeneratedMSBuildEditorConfig.editorconfig
│ │ │ │ │ ├── mcp_delete_source.genruntimeconfig.cache
│ │ │ │ │ ├── mcp_delete_source.GlobalUsings.g.cs
│ │ │ │ │ ├── mcp_delete_source.pdb
│ │ │ │ │ ├── ref
│ │ │ │ │ │ └── mcp_delete_source.dll
│ │ │ │ │ └── refint
│ │ │ │ │ └── mcp_delete_source.dll
│ │ │ │ ├── mcp_delete_source.csproj.nuget.dgspec.json
│ │ │ │ ├── mcp_delete_source.csproj.nuget.g.props
│ │ │ │ ├── mcp_delete_source.csproj.nuget.g.targets
│ │ │ │ ├── project.assets.json
│ │ │ │ └── project.nuget.cache
│ │ │ └── Program.cs
│ │ ├── 4.0 mcp_list_groups
│ │ │ ├── bin
│ │ │ │ └── Debug
│ │ │ │ └── net9.0
│ │ │ │ ├── mcp_list_groups.deps.json
│ │ │ │ ├── mcp_list_groups.dll
│ │ │ │ ├── mcp_list_groups.exe
│ │ │ │ ├── mcp_list_groups.pdb
│ │ │ │ ├── mcp_list_groups.runtimeconfig.json
│ │ │ │ └── Newtonsoft.Json.dll
│ │ │ ├── mcp_list_groups.csproj
│ │ │ ├── obj
│ │ │ │ ├── Debug
│ │ │ │ │ └── net9.0
│ │ │ │ │ ├── .NETCoreApp,Version=v9.0.AssemblyAttributes.cs
│ │ │ │ │ ├── apphost.exe
│ │ │ │ │ ├── mcp_list_groups.AssemblyInfo.cs
│ │ │ │ │ ├── mcp_list_groups.AssemblyInfoInputs.cache
│ │ │ │ │ ├── mcp_list_groups.assets.cache
│ │ │ │ │ ├── mcp_list_groups.csproj.AssemblyReference.cache
│ │ │ │ │ ├── mcp_list_groups.csproj.CoreCompileInputs.cache
│ │ │ │ │ ├── mcp_list_groups.csproj.FileListAbsolute.txt
│ │ │ │ │ ├── mcp_list_groups.dll
│ │ │ │ │ ├── mcp_list_groups.GeneratedMSBuildEditorConfig.editorconfig
│ │ │ │ │ ├── mcp_list_groups.genruntimeconfig.cache
│ │ │ │ │ ├── mcp_list_groups.GlobalUsings.g.cs
│ │ │ │ │ ├── mcp_list_groups.pdb
│ │ │ │ │ ├── mcp_list.EBD5E0D2.Up2Date
│ │ │ │ │ ├── ref
│ │ │ │ │ │ └── mcp_list_groups.dll
│ │ │ │ │ └── refint
│ │ │ │ │ └── mcp_list_groups.dll
│ │ │ │ ├── mcp_list_groups.csproj.nuget.dgspec.json
│ │ │ │ ├── mcp_list_groups.csproj.nuget.g.props
│ │ │ │ ├── mcp_list_groups.csproj.nuget.g.targets
│ │ │ │ ├── project.assets.json
│ │ │ │ └── project.nuget.cache
│ │ │ └── Program.cs
│ │ ├── 4.1 mcp_store_group
│ │ │ ├── bin
│ │ │ │ └── Debug
│ │ │ │ └── net9.0
│ │ │ │ ├── mcp_store_group.deps.json
│ │ │ │ ├── mcp_store_group.dll
│ │ │ │ ├── mcp_store_group.exe
│ │ │ │ ├── mcp_store_group.pdb
│ │ │ │ ├── mcp_store_group.runtimeconfig.json
│ │ │ │ └── Newtonsoft.Json.dll
│ │ │ ├── mcp_store_group.csproj
│ │ │ ├── obj
│ │ │ │ ├── Debug
│ │ │ │ │ └── net9.0
│ │ │ │ │ ├── .NETCoreApp,Version=v9.0.AssemblyAttributes.cs
│ │ │ │ │ ├── apphost.exe
│ │ │ │ │ ├── mcp_stor.AFB4AA35.Up2Date
│ │ │ │ │ ├── mcp_store_group.AssemblyInfo.cs
│ │ │ │ │ ├── mcp_store_group.AssemblyInfoInputs.cache
│ │ │ │ │ ├── mcp_store_group.assets.cache
│ │ │ │ │ ├── mcp_store_group.csproj.AssemblyReference.cache
│ │ │ │ │ ├── mcp_store_group.csproj.CoreCompileInputs.cache
│ │ │ │ │ ├── mcp_store_group.csproj.FileListAbsolute.txt
│ │ │ │ │ ├── mcp_store_group.dll
│ │ │ │ │ ├── mcp_store_group.GeneratedMSBuildEditorConfig.editorconfig
│ │ │ │ │ ├── mcp_store_group.genruntimeconfig.cache
│ │ │ │ │ ├── mcp_store_group.GlobalUsings.g.cs
│ │ │ │ │ ├── mcp_store_group.pdb
│ │ │ │ │ ├── ref
│ │ │ │ │ │ └── mcp_store_group.dll
│ │ │ │ │ └── refint
│ │ │ │ │ └── mcp_store_group.dll
│ │ │ │ ├── mcp_store_group.csproj.nuget.dgspec.json
│ │ │ │ ├── mcp_store_group.csproj.nuget.g.props
│ │ │ │ ├── mcp_store_group.csproj.nuget.g.targets
│ │ │ │ ├── project.assets.json
│ │ │ │ └── project.nuget.cache
│ │ │ └── Program.cs
│ │ ├── 4.2 mcp_delete_group
│ │ │ ├── bin
│ │ │ │ └── Debug
│ │ │ │ └── net9.0
│ │ │ │ ├── mcp_delete_group.deps.json
│ │ │ │ ├── mcp_delete_group.dll
│ │ │ │ ├── mcp_delete_group.exe
│ │ │ │ ├── mcp_delete_group.pdb
│ │ │ │ ├── mcp_delete_group.runtimeconfig.json
│ │ │ │ └── Newtonsoft.Json.dll
│ │ │ ├── mcp_delete_group.csproj
│ │ │ ├── obj
│ │ │ │ ├── Debug
│ │ │ │ │ └── net9.0
│ │ │ │ │ ├── .NETCoreApp,Version=v9.0.AssemblyAttributes.cs
│ │ │ │ │ ├── apphost.exe
│ │ │ │ │ ├── mcp_dele.FE1C6298.Up2Date
│ │ │ │ │ ├── mcp_delete_group.AssemblyInfo.cs
│ │ │ │ │ ├── mcp_delete_group.AssemblyInfoInputs.cache
│ │ │ │ │ ├── mcp_delete_group.assets.cache
│ │ │ │ │ ├── mcp_delete_group.csproj.AssemblyReference.cache
│ │ │ │ │ ├── mcp_delete_group.csproj.CoreCompileInputs.cache
│ │ │ │ │ ├── mcp_delete_group.csproj.FileListAbsolute.txt
│ │ │ │ │ ├── mcp_delete_group.dll
│ │ │ │ │ ├── mcp_delete_group.GeneratedMSBuildEditorConfig.editorconfig
│ │ │ │ │ ├── mcp_delete_group.genruntimeconfig.cache
│ │ │ │ │ ├── mcp_delete_group.GlobalUsings.g.cs
│ │ │ │ │ ├── mcp_delete_group.pdb
│ │ │ │ │ ├── ref
│ │ │ │ │ │ └── mcp_delete_group.dll
│ │ │ │ │ └── refint
│ │ │ │ │ └── mcp_delete_group.dll
│ │ │ │ ├── mcp_delete_group.csproj.nuget.dgspec.json
│ │ │ │ ├── mcp_delete_group.csproj.nuget.g.props
│ │ │ │ ├── mcp_delete_group.csproj.nuget.g.targets
│ │ │ │ ├── project.assets.json
│ │ │ │ └── project.nuget.cache
│ │ │ └── Program.cs
│ │ ├── 5.0 mcp_store_user
│ │ │ ├── bin
│ │ │ │ └── Debug
│ │ │ │ └── net9.0
│ │ │ │ ├── mcp_store_user.deps.json
│ │ │ │ ├── mcp_store_user.dll
│ │ │ │ ├── mcp_store_user.exe
│ │ │ │ ├── mcp_store_user.pdb
│ │ │ │ ├── mcp_store_user.runtimeconfig.json
│ │ │ │ └── Newtonsoft.Json.dll
│ │ │ ├── mcp_store_user.csproj
│ │ │ ├── obj
│ │ │ │ ├── Debug
│ │ │ │ │ └── net9.0
│ │ │ │ │ ├── .NETCoreApp,Version=v9.0.AssemblyAttributes.cs
│ │ │ │ │ ├── apphost.exe
│ │ │ │ │ ├── mcp_stor.6C0F0C8A.Up2Date
│ │ │ │ │ ├── mcp_store_user.AssemblyInfo.cs
│ │ │ │ │ ├── mcp_store_user.AssemblyInfoInputs.cache
│ │ │ │ │ ├── mcp_store_user.assets.cache
│ │ │ │ │ ├── mcp_store_user.csproj.AssemblyReference.cache
│ │ │ │ │ ├── mcp_store_user.csproj.CoreCompileInputs.cache
│ │ │ │ │ ├── mcp_store_user.csproj.FileListAbsolute.txt
│ │ │ │ │ ├── mcp_store_user.dll
│ │ │ │ │ ├── mcp_store_user.GeneratedMSBuildEditorConfig.editorconfig
│ │ │ │ │ ├── mcp_store_user.genruntimeconfig.cache
│ │ │ │ │ ├── mcp_store_user.GlobalUsings.g.cs
│ │ │ │ │ ├── mcp_store_user.pdb
│ │ │ │ │ ├── ref
│ │ │ │ │ │ └── mcp_store_user.dll
│ │ │ │ │ └── refint
│ │ │ │ │ └── mcp_store_user.dll
│ │ │ │ ├── mcp_store_user.csproj.nuget.dgspec.json
│ │ │ │ ├── mcp_store_user.csproj.nuget.g.props
│ │ │ │ ├── mcp_store_user.csproj.nuget.g.targets
│ │ │ │ ├── project.assets.json
│ │ │ │ └── project.nuget.cache
│ │ │ └── Program.cs
│ │ ├── 5.1 mcp_edit_user
│ │ │ ├── bin
│ │ │ │ └── Debug
│ │ │ │ └── net9.0
│ │ │ │ ├── mcp_edit_user.deps.json
│ │ │ │ ├── mcp_edit_user.dll
│ │ │ │ ├── mcp_edit_user.exe
│ │ │ │ ├── mcp_edit_user.pdb
│ │ │ │ ├── mcp_edit_user.runtimeconfig.json
│ │ │ │ └── Newtonsoft.Json.dll
│ │ │ ├── mcp_edit_user.csproj
│ │ │ ├── obj
│ │ │ │ ├── Debug
│ │ │ │ │ └── net9.0
│ │ │ │ │ ├── .NETCoreApp,Version=v9.0.AssemblyAttributes.cs
│ │ │ │ │ ├── apphost.exe
│ │ │ │ │ ├── mcp_edit_user.AssemblyInfo.cs
│ │ │ │ │ ├── mcp_edit_user.AssemblyInfoInputs.cache
│ │ │ │ │ ├── mcp_edit_user.assets.cache
│ │ │ │ │ ├── mcp_edit_user.csproj.AssemblyReference.cache
│ │ │ │ │ ├── mcp_edit_user.csproj.CoreCompileInputs.cache
│ │ │ │ │ ├── mcp_edit_user.csproj.FileListAbsolute.txt
│ │ │ │ │ ├── mcp_edit_user.dll
│ │ │ │ │ ├── mcp_edit_user.GeneratedMSBuildEditorConfig.editorconfig
│ │ │ │ │ ├── mcp_edit_user.genruntimeconfig.cache
│ │ │ │ │ ├── mcp_edit_user.GlobalUsings.g.cs
│ │ │ │ │ ├── mcp_edit_user.pdb
│ │ │ │ │ ├── mcp_edit.94A30270.Up2Date
│ │ │ │ │ ├── ref
│ │ │ │ │ │ └── mcp_edit_user.dll
│ │ │ │ │ └── refint
│ │ │ │ │ └── mcp_edit_user.dll
│ │ │ │ ├── mcp_edit_user.csproj.nuget.dgspec.json
│ │ │ │ ├── mcp_edit_user.csproj.nuget.g.props
│ │ │ │ ├── mcp_edit_user.csproj.nuget.g.targets
│ │ │ │ ├── project.assets.json
│ │ │ │ └── project.nuget.cache
│ │ │ └── Program.cs
│ │ ├── 5.2 mcp_delete_user
│ │ │ ├── bin
│ │ │ │ └── Debug
│ │ │ │ └── net9.0
│ │ │ │ ├── mcp_delete_user.deps.json
│ │ │ │ ├── mcp_delete_user.dll
│ │ │ │ ├── mcp_delete_user.exe
│ │ │ │ ├── mcp_delete_user.pdb
│ │ │ │ ├── mcp_delete_user.runtimeconfig.json
│ │ │ │ └── Newtonsoft.Json.dll
│ │ │ ├── mcp_delete_user.csproj
│ │ │ ├── obj
│ │ │ │ ├── Debug
│ │ │ │ │ └── net9.0
│ │ │ │ │ ├── .NETCoreApp,Version=v9.0.AssemblyAttributes.cs
│ │ │ │ │ ├── apphost.exe
│ │ │ │ │ ├── mcp_dele.CEB7E33D.Up2Date
│ │ │ │ │ ├── mcp_delete_user.AssemblyInfo.cs
│ │ │ │ │ ├── mcp_delete_user.AssemblyInfoInputs.cache
│ │ │ │ │ ├── mcp_delete_user.assets.cache
│ │ │ │ │ ├── mcp_delete_user.csproj.AssemblyReference.cache
│ │ │ │ │ ├── mcp_delete_user.csproj.CoreCompileInputs.cache
│ │ │ │ │ ├── mcp_delete_user.csproj.FileListAbsolute.txt
│ │ │ │ │ ├── mcp_delete_user.dll
│ │ │ │ │ ├── mcp_delete_user.GeneratedMSBuildEditorConfig.editorconfig
│ │ │ │ │ ├── mcp_delete_user.genruntimeconfig.cache
│ │ │ │ │ ├── mcp_delete_user.GlobalUsings.g.cs
│ │ │ │ │ ├── mcp_delete_user.pdb
│ │ │ │ │ ├── ref
│ │ │ │ │ │ └── mcp_delete_user.dll
│ │ │ │ │ └── refint
│ │ │ │ │ └── mcp_delete_user.dll
│ │ │ │ ├── mcp_delete_user.csproj.nuget.dgspec.json
│ │ │ │ ├── mcp_delete_user.csproj.nuget.g.props
│ │ │ │ ├── mcp_delete_user.csproj.nuget.g.targets
│ │ │ │ ├── project.assets.json
│ │ │ │ └── project.nuget.cache
│ │ │ └── Program.cs
│ │ ├── Code Archiv
│ │ │ ├── mcp_chat.cs
│ │ │ ├── mcp_continue_chat.cs
│ │ │ ├── mcp_create_source.cs
│ │ │ ├── mcp_delete_group.cs
│ │ │ ├── mcp_delete_source.cs
│ │ │ ├── mcp_delete_user.cs
│ │ │ ├── mcp_edit_source.cs
│ │ │ ├── mcp_edit_user.cs
│ │ │ ├── mcp_get_chat_info.cs
│ │ │ ├── mcp_get_source.cs
│ │ │ ├── mcp_list_groups.cs
│ │ │ ├── mcp_list_sources.cs
│ │ │ ├── mcp_login.cs
│ │ │ ├── mcp_logout.cs
│ │ │ ├── mcp_store_group.cs
│ │ │ └── mcp_store_user.cs
│ │ └── README.md
│ ├── C++
│ │ ├── .vscode
│ │ │ └── launch.json
│ │ ├── 1.0 mcp_login
│ │ │ ├── MCPLoginClient.cpp
│ │ │ └── Non-TLS version
│ │ │ ├── MCPLoginClient.cpp
│ │ │ └── MCPLoginClient.exe
│ │ ├── 1.1 mcp_logout
│ │ │ ├── MCPLogoutClient.cpp
│ │ │ └── MCPLogoutClient.exe
│ │ ├── 2.0 mcp_chat
│ │ │ ├── MCPChatClient.cpp
│ │ │ └── MCPChatClient.exe
│ │ ├── 2.1 mcp_continue_chat
│ │ │ ├── MCPChatContinuationClient.cpp
│ │ │ └── MCPChatContinuationClient.exe
│ │ ├── 2.2 mcp_get_chat_info
│ │ │ ├── MCPGetChatInfoClient.cpp
│ │ │ └── MCPGetChatInfoClient.exe
│ │ ├── 3.0 mcp_create_source
│ │ │ ├── MCPCreateSourceClient.cpp
│ │ │ └── MCPCreateSourceClient.exe
│ │ ├── 3.1 mcp_get_source
│ │ │ ├── MCPGetSourceClient.cpp
│ │ │ └── MCPGetSourceClient.exe
│ │ ├── 3.2 mcp_list_sources
│ │ │ ├── MCPListSourcesClient.cpp
│ │ │ └── MCPListSourcesClient.exe
│ │ ├── 3.3 mcp_edit_source
│ │ │ ├── MCPEditSourceClient.cpp
│ │ │ └── MCPEditSourceClient.exe
│ │ ├── 3.4 mcp_delete_source
│ │ │ ├── MCPDeleteSourceClient.cpp
│ │ │ └── MCPDeleteSourceClient.exe
│ │ ├── 4.0 mcp_list_groups
│ │ │ ├── MCPListGroupsClient.cpp
│ │ │ └── MCPListGroupsClient.exe
│ │ ├── 4.1 mcp_store_group
│ │ │ ├── MCPStoreGroupClient.cpp
│ │ │ └── MCPStoreGroupClient.exe
│ │ ├── 4.2 mcp_delete_group
│ │ │ ├── MPCDeleteGroupClient.cpp
│ │ │ └── MPCDeleteGroupClient.exe
│ │ ├── 5.0 mcp_store_user
│ │ │ ├── MCPStoreUserClient.cpp
│ │ │ └── MCPStoreUserClient.exe
│ │ ├── 5.1 mcp_edit_user
│ │ │ ├── MCPEditUserClient.cpp
│ │ │ └── MCPEditUserClient.exe
│ │ ├── 5.2 mcp_delete_user
│ │ │ ├── MCPDeleteUserClient.cpp
│ │ │ └── MCPDeleteUserClient.exe
│ │ ├── 9.0 mcp_keygen
│ │ │ ├── MCPKeygenClient.cpp
│ │ │ └── MCPKeygenClient.exe
│ │ └── README.md
│ ├── Go
│ │ ├── 1.0 mcp_login
│ │ │ ├── go.mod
│ │ │ ├── MCPLoginClient.exe
│ │ │ └── MCPLoginClient.go
│ │ ├── 1.1 mcp_logout
│ │ │ ├── MCPLogoutClient.exe
│ │ │ └── MCPLogoutClient.go
│ │ ├── 2.0 mcp_chat
│ │ │ ├── MCPChatClient.exe
│ │ │ └── MCPChatClient.go
│ │ ├── 2.1 mcp_continue_chat
│ │ │ ├── MCPChatContinuationClient.exe
│ │ │ └── MCPChatContinuationClient.go
│ │ ├── 2.2 mcp_get_chat_info
│ │ │ ├── MCPGetChatInfoClient.exe
│ │ │ └── MCPGetChatInfoClient.go
│ │ ├── 3.0 mcp_create_source
│ │ │ ├── MCPCreateSourceClient.exe
│ │ │ └── MCPCreateSourceClient.go
│ │ ├── 3.1 mcp_get_source
│ │ │ ├── MCPGetSourceClient.exe
│ │ │ └── MCPGetSourceClient.go
│ │ ├── 3.2 mcp_list_sources
│ │ │ ├── MCPListSourcesClient.exe
│ │ │ └── MCPListSourcesClient.go
│ │ ├── 3.3 mcp_edit_source
│ │ │ ├── MCPEditSourceClient.exe
│ │ │ └── MCPEditSourceClient.go
│ │ ├── 3.4 mcp_delete_source
│ │ │ ├── MCPDeleteSourceClient.exe
│ │ │ └── MCPDeleteSourceClient.go
│ │ ├── 4.0 mcp_list_groups
│ │ │ ├── MCPListGroupsClient.exe
│ │ │ └── MCPListGroupsClient.go
│ │ ├── 4.1 mcp_store_group
│ │ │ ├── MCPStoreGroupClient.exe
│ │ │ └── MCPStoreGroupClient.go
│ │ ├── 4.2 mcp_delete_group
│ │ │ ├── MCPDeleteGroupClient.exe
│ │ │ └── MCPDeleteGroupClient.go
│ │ ├── 5.0 mcp_store_user
│ │ │ ├── MCPStoreUserClient.exe
│ │ │ └── MCPStoreUserClient.go
│ │ ├── 5.1 mcp_edit_user
│ │ │ ├── MCPEditUserClient.exe
│ │ │ └── MCPEditUserClient.go
│ │ ├── 5.2 mcp_delete_user
│ │ │ ├── MCPDeleteUserClient.exe
│ │ │ └── MCPDeleteUserClient.go
│ │ ├── 9.0 mcp_keygen
│ │ │ ├── MCPKeygenClient.exe
│ │ │ └── MCPKeygenClient.go
│ │ └── README.md
│ ├── Gradio
│ │ ├── Api.py
│ │ ├── config.json.example
│ │ ├── config.py
│ │ ├── favicon.ico
│ │ ├── file_tools
│ │ │ └── loader_factory.py
│ │ ├── language.py
│ │ ├── logos
│ │ │ ├── fsas.png
│ │ │ └── Logo_dark.svg
│ │ ├── main.py
│ │ ├── mcp_client.py
│ │ ├── mcp_servers
│ │ │ ├── arxiv
│ │ │ │ ├── arxiv-stdio.js
│ │ │ │ ├── package.json
│ │ │ │ ├── README.md
│ │ │ │ ├── requirements.txt
│ │ │ │ └── server_config.example.json
│ │ │ ├── demo-mcp-server
│ │ │ │ ├── demo-tools-sse.js
│ │ │ │ ├── demo-tools-stdio.js
│ │ │ │ └── tools
│ │ │ │ ├── assets.js
│ │ │ │ ├── calculator.js
│ │ │ │ └── weather.js
│ │ │ ├── filesystem
│ │ │ │ ├── Dockerfile
│ │ │ │ ├── index.ts
│ │ │ │ ├── package.json
│ │ │ │ ├── README.md
│ │ │ │ ├── test
│ │ │ │ │ └── new.txt
│ │ │ │ └── tsconfig.json
│ │ │ ├── moondream
│ │ │ │ └── server.py
│ │ │ ├── pgpt
│ │ │ │ ├── __init__.py
│ │ │ │ ├── Api.py
│ │ │ │ ├── config.json.example
│ │ │ │ ├── config.py
│ │ │ │ ├── language.py
│ │ │ │ ├── pyproject.toml
│ │ │ │ ├── README.md
│ │ │ │ └── server.py
│ │ │ ├── replicate_flux
│ │ │ │ └── server.py
│ │ │ └── sqlite
│ │ │ ├── .python-version
│ │ │ ├── Dockerfile
│ │ │ ├── pyproject.toml
│ │ │ ├── README.md
│ │ │ └── src
│ │ │ └── mcp_server_sqlite
│ │ │ ├── __init__.py
│ │ │ └── server.py
│ │ ├── messages
│ │ │ ├── __init__.py
│ │ │ ├── message_types
│ │ │ │ ├── __init__.py
│ │ │ │ ├── incrementing_id_message.py
│ │ │ │ ├── initialize_message.py
│ │ │ │ ├── json_rpc_message.py
│ │ │ │ ├── ping_message.py
│ │ │ │ ├── prompts_messages.py
│ │ │ │ ├── prompts_models.py
│ │ │ │ ├── resources_messages.py
│ │ │ │ └── tools_messages.py
│ │ │ ├── send_call_tool.py
│ │ │ ├── send_initialize_message.py
│ │ │ ├── send_message.py
│ │ │ ├── send_ping.py
│ │ │ ├── send_prompts.py
│ │ │ ├── send_resources.py
│ │ │ └── send_tools_list.py
│ │ ├── README.md
│ │ ├── requirements.txt
│ │ ├── server_config.json
│ │ ├── SourceManagement.py
│ │ ├── transport
│ │ │ ├── __init__.py
│ │ │ └── stdio
│ │ │ ├── __init__.py
│ │ │ ├── stdio_client.py
│ │ │ ├── stdio_server_parameters.py
│ │ │ └── stdio_server_shutdown.py
│ │ ├── tsconfig.json
│ │ └── UserManagement.py
│ ├── Java
│ │ ├── 1.0 mcp_login
│ │ │ ├── json-20241224.jar
│ │ │ ├── MCPLoginClient.class
│ │ │ └── MCPLoginClient.java
│ │ ├── 1.1 mcp_logout
│ │ │ ├── json-20241224.jar
│ │ │ ├── MCPLogoutClient.class
│ │ │ └── MCPLogoutClient.java
│ │ ├── 2.0 mcp_chat
│ │ │ ├── json-20241224.jar
│ │ │ ├── MCPChatClient.class
│ │ │ └── MCPChatClient.java
│ │ ├── 2.1 mcp_continue_chat
│ │ │ ├── json-20241224.jar
│ │ │ ├── MCPContinueChatClient.class
│ │ │ └── MCPContinueChatClient.java
│ │ ├── 2.2 mcp_get_chat_info
│ │ │ ├── json-20241224.jar
│ │ │ ├── MCPGetChatInfoClient.class
│ │ │ └── MCPGetChatInfoClient.java
│ │ ├── 3.0 mcp_create_source
│ │ │ ├── json-20241224.jar
│ │ │ ├── MCPCreateSourceClient.class
│ │ │ └── MCPCreateSourceClient.java
│ │ ├── 3.1 mcp_get_source
│ │ │ ├── json-20241224.jar
│ │ │ ├── MCPGetSourceClient.class
│ │ │ └── MCPGetSourceClient.java
│ │ ├── 3.2 mcp_list_sources
│ │ │ ├── json-20241224.jar
│ │ │ ├── MCPListSourcesClient.class
│ │ │ └── MCPListSourcesClient.java
│ │ ├── 3.3 mcp_edit_source
│ │ │ ├── json-20241224.jar
│ │ │ ├── MCPEditSourceClient.class
│ │ │ └── MCPEditSourceClient.java
│ │ ├── 3.4 mcp_delete_source
│ │ │ ├── json-20241224.jar
│ │ │ ├── MCPDeleteSourceClient.class
│ │ │ └── MCPDeleteSourceClient.java
│ │ ├── 4.0 mcp_list_groups
│ │ │ ├── json-20241224.jar
│ │ │ ├── MCPListGroupsClient.class
│ │ │ └── MCPListGroupsClient.java
│ │ ├── 4.1 mcp_store_group
│ │ │ ├── json-20241224.jar
│ │ │ ├── MCPStoreGroupClient.class
│ │ │ └── MCPStoreGroupClient.java
│ │ ├── 4.2 mcp_delete_group
│ │ │ ├── json-20241224.jar
│ │ │ ├── MCPDeleteGroupClient.class
│ │ │ └── MCPDeleteGroupClient.java
│ │ ├── 5.0 mcp_store_user
│ │ │ ├── json-20241224.jar
│ │ │ ├── MCPStoreUserClient.class
│ │ │ └── MCPStoreUserClient.java
│ │ ├── 5.1 mcp_edit_user
│ │ │ ├── json-20241224.jar
│ │ │ ├── MCPEditUserClient.class
│ │ │ └── MCPEditUserClient.java
│ │ ├── 5.2 mcp_delete_user
│ │ │ ├── json-20241224.jar
│ │ │ ├── MCPDeleteUserClient.class
│ │ │ └── MCPDeleteUserClient.java
│ │ └── README.md
│ ├── JavaScript
│ │ ├── 1.0 mcp_login
│ │ │ └── MCPLoginClient.js
│ │ ├── 1.1 mcp_logout
│ │ │ └── MCPLogoutClient.js
│ │ ├── 2.0 mcp_chat
│ │ │ └── MCPChatClient.js
│ │ ├── 2.1 mcp_continue_chat
│ │ │ └── MCPContinueChatClient.js
│ │ ├── 2.2 mcp_get_chat_info
│ │ │ └── MCPGetChatInfoClient.js
│ │ ├── 3.0 mcp_create_source
│ │ │ └── MCPCreateSourceClient.js
│ │ ├── 3.1 mcp_get_source
│ │ │ └── MCPGetSourceClient.js
│ │ ├── 3.2 mcp_list_sources
│ │ │ └── MCPListSourcesClient.js
│ │ ├── 3.3 mcp_edit_source
│ │ │ └── MCPEditSourceClient.js
│ │ ├── 3.4 mcp_delete_source
│ │ │ └── MCPDeleteSourceClient.js
│ │ ├── 4.0 mcp_list_groups
│ │ │ └── MCPListGroupsClient.js
│ │ ├── 4.1 mcp_store_group
│ │ │ └── MCPStoreGroupClient.js
│ │ ├── 4.2 mcp_delete_group
│ │ │ └── MCPDeleteGroupClient.js
│ │ ├── 5.0 mcp_store_user
│ │ │ └── MCPStoreUserClient.js
│ │ ├── 5.1 mcp_edit_user
│ │ │ └── MCPEditUserClient.js
│ │ ├── 5.2 mcp_delete_user
│ │ │ └── MCPDeleteUserClient.js
│ │ ├── 9.0 mcp_keygen
│ │ │ └── MCPKeygenClient.js
│ │ └── README.md
│ ├── PHP
│ │ ├── 1.0 mcp_login
│ │ │ └── MCPLoginClient.php
│ │ ├── 1.1 mcp_logout
│ │ │ └── MCPLogoutClient.php
│ │ ├── 2.0 mcp_chat
│ │ │ └── MCPChatClient.php
│ │ ├── 2.1 mcp_continue_chat
│ │ │ └── MCPContinueChatClient.php
│ │ ├── 2.2 mcp_get_chat_info
│ │ │ └── MCPGetChatInfoClient.php
│ │ ├── 3.0 mcp_create_source
│ │ │ └── MCPCreateSourceClient.php
│ │ ├── 3.1 mcp_get_source
│ │ │ └── MCPGetSourceClient.php
│ │ ├── 3.2 mcp_list_sources
│ │ │ └── MCPListSourcesClient.php
│ │ ├── 3.3 mcp_edit_source
│ │ │ └── MCPEditSourceClient.php
│ │ ├── 3.4 mcp_delete_source
│ │ │ └── MCPDeleteSourceClient.php
│ │ ├── 4.0 mcp_list_groups
│ │ │ └── MCPListGroupsClient.php
│ │ ├── 4.1 mcp_store_group
│ │ │ └── MCPStoreGroupClient.php
│ │ ├── 4.2 mcp_delete_group
│ │ │ └── MCPDeleteGroupClient.php
│ │ ├── 5.0 mcp_store_user
│ │ │ └── MCPStoreUserClient.php
│ │ ├── 5.1 mcp_edit_user
│ │ │ └── MCPEditUserClient.php
│ │ ├── 5.2 mcp_delete_user
│ │ │ └── MCPDeleteUserClient.php
│ │ ├── 9.0 mcp_keygen
│ │ │ └── MCPKeygenClient.php
│ │ └── README.md
│ └── Python
│ ├── __init__.py
│ ├── 1.0 mcp_login
│ │ └── MCPLoginClient.py
│ ├── 1.1 mcp_logout
│ │ └── MCPLogoutClient.py
│ ├── 2.0 mcp_chat
│ │ └── MCPChatClient.py
│ ├── 2.1 mcp_continue_chat
│ │ └── MCPContinueChatClient.py
│ ├── 2.2 mcp_get_chat_info
│ │ └── MCPGetChatInfoClient.py
│ ├── 2.3 mcp_delete_all_chats
│ │ └── MCPDeleteAllChatsClient.py
│ ├── 2.4 mcp_delete_chat
│ │ └── MCPDeleteChatClient.py
│ ├── 3.0 mcp_create_source
│ │ └── MCPCreateSourceClient.py
│ ├── 3.1 mcp_get_source
│ │ └── MCPGetSourceClient.py
│ ├── 3.2 mcp_list_sources
│ │ └── MCPListSourcesClient.py
│ ├── 3.3 mcp_edit_source
│ │ └── MCPEditSourceClient.py
│ ├── 3.4 mcp_delete_source
│ │ └── MCPDeleteSourceClient.py
│ ├── 4.0 mcp_list_groups
│ │ └── MCPListGroupsClient.py
│ ├── 4.1 mcp_store_group
│ │ └── MCPStoreGroupClient.py
│ ├── 4.2 mcp_delete_group
│ │ └── MCPDeleteGroupClient.py
│ ├── 5.0 mcp_store_user
│ │ └── MCPStoreUserClient.py
│ ├── 5.1 mcp_edit_user
│ │ └── MCPEditUserClient.py
│ ├── 5.2 mcp_delete_user
│ │ └── MCPDeleteUserClient.py
│ ├── 9.0 mcp_keygen
│ │ └── MCPKeygenClient.py
│ ├── Gradio
│ │ ├── __init__.py
│ │ └── server_config.json
│ └── README.md
├── examples
│ ├── create_users_from_csv
│ │ ├── config.json.example
│ │ ├── config.py
│ │ ├── create_users_from_csv.py
│ │ └── language.py
│ ├── dynamic_sources
│ │ └── rss_reader
│ │ ├── Api.py
│ │ ├── config.json.example
│ │ ├── config.py
│ │ ├── demo_dynamic_sources.py
│ │ └── rss_parser.py
│ ├── example_users_to_add_no_tz.csv
│ └── sftp_upload_with_id
│ ├── Api.py
│ ├── config_ftp.json.example
│ ├── config.py
│ ├── demo_upload.py
│ ├── language.py
│ └── requirements.txt
├── images
│ ├── alternative mcp client.png
│ ├── favicon
│ │ ├── android-chrome-192x192.png
│ │ ├── android-chrome-512x512.png
│ │ ├── apple-touch-icon.png
│ │ ├── favicon-16x16.png
│ │ ├── favicon-32x32.png
│ │ ├── favicon.ico
│ │ └── site.webmanifest
│ ├── mcp-general-architecture.png
│ ├── privateGPT-MCP.png
│ └── privateGPT.png
├── InstallMPCServer.sh
├── jest.config.js
├── LICENSE
├── package.json
├── pgpt.env.json.example
├── README.md
├── security
│ ├── generate_decrypted_password.js
│ └── generate_encrypted_password.js
├── src
│ ├── helper.js
│ ├── index.js
│ ├── logger.js
│ ├── pgpt-messages.js
│ ├── public
│ │ ├── index.html
│ │ └── pgpt-mcp-logo.png
│ ├── services
│ │ └── pgpt-service.ts
│ └── types
│ └── api.ts
├── start_chatbot_agent.ps1
├── start_chatbot_agent.sh
├── start_iot_agent.ps1
├── start_iot_agent.sh
├── start_openai_compatible_api_agent.ps1
├── start_openai_compatible_api_agent.sh
├── tsconfig.json
├── ver
│ ├── index_np.js
│ └── index_proxy_np.js
└── WORKLOG.md
```
# Files
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
```markdown
1 | 
2 |
3 | ## Table of Contents
4 | - [**privateGPT MCP Server**](#privateGPT-mcp-server)
5 | - [**What is MCP?**](#what-is-mcp)
6 | - [Why MCP?](#why-mcp)
7 | - [Why Agents](#why-agents)
8 | - [How it Works](#how-it-works)
9 | - [**Interaction Between Agents, LLMs, and MCP Servers**](#interaction-between-agents-llms-and-mcp-servers)
10 | - [Scenario](#scenario)
11 | 1. [User Input](#user-input)
12 | 2. [Agent Processing](#agent-processing)
13 | 3. [LLM Interaction](#llm-interaction)
14 | 4. [Response Processing](#response-processing)
15 | 5. [Security and Logging](#security-and-logging)
16 | - [**Advantages of Using Agents in This Context**](#advantages-of-using-agents-in-this-context)
17 | - [Modularity](#modularity)
18 | - [Security](#security)
19 | - [Efficiency](#efficiency)
20 | - [Flexibility](#flexibility)
21 | - [**Overview**](#overview)
22 | - [**Security Features Overview**](#security)
23 | - [1. Transport Layer Security (TLS)](#1-transport-layer-security-(tls))
24 | - [2. Password Encryption](#2-password-encryption)
25 | - [3. Key Management](#3-key-management)
26 | - [4. Decryption on the Server](#4-decryption-on-the-server)
27 | - [5. Authorization Tokens](#5-authorization-tokens)
28 | - [6. Restriction of Key Generation (Keygen)](#6-restriction-of-key-generation-keygen)
29 | - [7. Certificate-Based Access Control (CBAC)](#7-certificate-based-access-control-cbac)
30 | - [8. Secure Configuration](#8-secure-configuration)
31 | - [9. Logging and Monitoring](#9-logging-and-monitoring)
32 | - [Summary](#summary)
33 | - [Encrypted Password Generation Tool](#encrypted-password-generation-tool)
34 | 1. [Generate a password for the client and/or the server's Proxy_Config](#generate-encrypted-password)
35 | 2. [Check the generated encrypted password](#check-the-generated-encrypted-password)
36 | - [Encrypted Password Decryption Tool](#encrypted-password-decryption-tool)
37 | 1. [Check the generated encrypted password](#check-the-generated-encrypted-password)
38 | - [**Feature Overview for privateGPT Server**](#feature-overview-for-privateGPT-server)
39 | - [1. Authentication and Authorization](#1-authentication-and-authorization)
40 | - [2. Chat Management](#2-chat-management)
41 | - [3. Group Management](#3-group-management)
42 | - [4. Source Management](#4-source-management)
43 | - [5. User Management](#5-user-management)
44 | - [6. Configuration Flexibility](#6-configuration-flexibility)
45 | - [7. Error Handling and Logging](#7-error-handling-and-logging)
46 | - [8. Security Features](#8-security-features)
47 | - [Example Use Cases](#example-use-cases)
48 | - [How to Use](#how-to-use)
49 | - [**Installation**](#installation)
50 | - [Prerequisites](#prerequisites)
51 | - [Install Dependencies](#install-dependencies)
52 | - [Build the Project](#build-the-project)
53 | - [**Configuration Description**](#configuration-description)
54 | - [Proxy Configuration](#proxy-configuration)
55 | - [Use Proxy](#use-proxy)
56 | - [Header Encryption](#header-encryption)
57 | - [Access Header](#access-header)
58 | - [Example Configuration](#example-configuration)
59 | - [Notes](#notes)
60 | - [Server Configuration](#server-configuration)
61 | - [Server Port](#server-port)
62 | - [Language](#language)
63 | - [SSL Validation](#ssl-validation)
64 | - [Encryption](#encryption)
65 | - [SSL/TLS](#ssltls)
66 | - [Restrictions](#restrictions)
67 | - [Group Restrictions](#restrictions)
68 | - [Enable OpenAI compatible API](#restrictions)
69 | - [Logging](#logging)
70 | - [Written Logfile](#logging)
71 | - [Log IPs](#logging)
72 | - [Anonymous Mode](#logging)
73 | - [Feature Activation/Deactivation](#feature-activationdeactivation)
74 | - [ENABLE_LOGIN](#feature-activationdeactivation)
75 | - [ENABLE_LOGOUT](#feature-activationdeactivation)
76 | - [ENABLE_CHAT](#feature-activationdeactivation)
77 | - [ENABLE_CONTINUE_CHAT](#feature-activationdeactivation)
78 | - [ENABLE_GET_CHAT_INFO](#feature-activationdeactivation)
79 | - [ENABLE_DELETE_ALL_CHATS](#feature-activationdeactivation)
80 | - [ENABLE_DELETE_CHAT](#feature-activationdeactivation)
81 | - [ENABLE_LIST_GROUPS](#feature-activationdeactivation)
82 | - [ENABLE_STORE_GROUP](#feature-activationdeactivation)
83 | - [ENABLE_DELETE_GROUP](#feature-activationdeactivation)
84 | - [ENABLE_CREATE_SOURCE](#feature-activationdeactivation)
85 | - [ENABLE_EDIT_SOURCE](#feature-activationdeactivation)
86 | - [ENABLE_DELETE_SOURCE](#feature-activationdeactivation)
87 | - [ENABLE_GET_SOURCE](#feature-activationdeactivation)
88 | - [ENABLE_LIST_SOURCES](#feature-activationdeactivation)
89 | - [ENABLE_STORE_USER](#feature-activationdeactivation)
90 | - [ENABLE_EDIT_USER](#feature-activationdeactivation)
91 | - [ENABLE_DELETE_USER](#feature-activationdeactivation)
92 | - [ENABLE_REACTIVATE_USER](#feature-activationdeactivation)
93 | - [Usage](#usage)
94 | - [Available Tools](#available-tools)
95 | - [**Project Structure**](#project-structure)
96 | - [License](#license)
97 |
98 |
99 | # privateGPT MCP Server
100 | A Model Context Protocol (MCP) server implementation that allows you to use privateGPT as an agent for your preferred MCP client.
101 | This enables seamless integration between privateGPT's powerful capabilities and any MCP-compatible application.
102 |
103 | ## What is MCP?
104 | MCP is an open protocol that standardizes how applications provide context to LLMs. Think of MCP like a USB-C port for AI applications. Just as USB-C provides a standardized way to connect your devices to various peripherals and accessories, MCP provides a standardized way to connect AI models to different data sources and tools.
105 |
106 | ### Why MCP?
107 | MCP helps you build agents and complex workflows on top of LLMs. LLMs frequently need to integrate with data and tools, and MCP provides:
108 | - A growing list of pre-built integrations that your LLM can directly plug into
109 | - The flexibility to switch between LLM providers and vendors
110 | - Best practices for securing your data within your infrastructure
111 |
112 | ### How it Works
113 | At its core, MCP follows a client-server architecture where a host application can connect to multiple servers:
114 |
115 | 
116 |
117 | - **MCP Hosts**: Programs like Applications, Claude Desktop, IDEs, or AI tools that want to access data through MCP
118 | - **MCP Clients**: Protocol clients that maintain 1:1 connections with servers
119 | - **MCP Servers**: Lightweight programs that each expose specific capabilities through the standardized Model Context Protocol
120 | - **Local Data Sources**: Your computer's files, databases, and services that MCP servers can securely access
121 | - **Remote Services**: External systems available over the internet (e.g., through APIs) that MCP servers can connect to
122 |
123 | ## Overview
124 | This server provides a bridge between MCP clients and the privateGPT API, allowing you to:
125 | - Chat with privateGPT using both public and private knowledge bases
126 | - Create and manage knowledge sources
127 | - Organize sources into groups
128 | - Control access through group-based permissions
129 |
130 |
131 | ---
132 |
133 | # Why Agents
134 | An **agent** in relation to **LLMs** (Large Language Models) and **MCP servers** is a specialized software component that acts as an intermediary between language models and applications. It handles tasks such as processing requests, interacting with the LLM via MCP, managing workflows, ensuring security and efficiency within the overall system, and much more. By utilizing agents, complex AI-based applications can be designed to be effective, secure, and scalable.
135 | **The code for agents in this repository can be used to implement it into own solutions / applications.**
136 |
137 | ## Interaction Between Agents, LLMs, and MCP Servers
138 | The interaction of these components enables the development of powerful, scalable, and secure AI applications. Below is a simplified scenario that illustrates this interaction:
139 |
140 | 1. **User Input:** A user sends a request through a user interface hosted on the MCP server.
141 | 2. **Agent Processing:** An agent on the MCP server receives the request, validates it, and prepares it for the LLM.
142 | 3. **LLM Interaction:** The agent forwards the request to the LLM, which generates a response.
143 | 4. **Response Processing:** The agent receives the response from the LLM, processes it further if necessary (e.g., formatting, integration with other data sources), and sends it back to the user.
144 | 5. **Security and Logging:** During this process, the agent monitors interactions, ensures that security policies are adhered to, and logs relevant information for later analysis.
145 |
146 | ## Advantages of Using Agents in This Context
147 | - **Modularity:** Agents allow for a clear separation of responsibilities, making the system easier to maintain and scale.
148 | - **Security:** Centralized management of access and monitoring of activities help minimize security risks.
149 | - **Efficiency:** Automated agents can perform tasks faster and more consistently than manual processes.
150 | - **Flexibility:** Agents can be easily adapted or extended to support new functions or changes in business requirements.
151 |
152 | ### Importance of Encrypting Passwords
153 | In any application handling sensitive data, security is paramount. This server manages two critical sets of credentials:
154 | 1. **Proxy Headers:** Used by for example HAProxy to authenticate and manage traffic.
155 | 2. **LLM Access Passwords:** Used to secure access to the large language models.
156 |
157 | Storing these passwords in plaintext poses significant security risks, including unauthorized access and potential data breaches.
158 | To mitigate these risks, it is essential to encrypt these passwords and handle only their ciphertext within the system.
159 |
160 | ### Benefits of Using Ciphertext Only
161 | - **Enhanced Security:** Even if an attacker gains access to the configuration files or environment variables, encrypted passwords remain unintelligible without the corresponding decryption keys.
162 | - **Compliance:** Encryption helps in adhering to security standards and regulations that mandate the protection of sensitive information.
163 | - **Integrity:** Ensures that passwords cannot be tampered with, maintaining the integrity of the authentication mechanisms.
164 |
165 | ---
166 |
167 | # Security
168 | The following security features are implemented to ensure data protection and secure communication between the client application and server. These features cover encryption, decryption, key management, and transport security.
169 |
170 | ---
171 |
172 | ## 1. Transport Layer Security (TLS)
173 | - To secure communication between the client and server, TLS can be activate. All data transmitted between the client and server is encrypted using TLS (minimum version 1.2).
174 |
175 | ## Why Should TLS Be Enabled Between Client and Server?
176 |
177 | ### a. **Encryption of Communication**
178 | - TLS (Transport Layer Security) ensures that all data transmitted between the client and server is encrypted. This protects sensitive information such as passwords, credit card details, and personal data from eavesdropping attacks (Man-in-the-Middle attacks).
179 |
180 | ### b. **Data Integrity**
181 | - TLS guarantees that the transmitted data remains unchanged and unaltered. The integrity check ensures that the received data is exactly as it was sent.
182 |
183 | ### c. **Authentication**
184 | - TLS enables secure authentication of the server (and optionally the client) through digital certificates. This prevents users from falling victim to phishing attacks on fake websites.
185 |
186 | ### d. **Protection Against Man-in-the-Middle Attacks**
187 | - TLS encrypts the connection, making it nearly impossible for attackers to intercept or manipulate traffic. Without TLS, attackers could capture and modify data packets.
188 |
189 | ### e. **Compliance with Security Standards and Regulations**
190 | - Many regulatory requirements (e.g., GDPR, PCI-DSS) mandate secure data transmission. TLS is a fundamental component of these security requirements.
191 |
192 | ### f. **Prevention of Downgrade and Replay Attacks**
193 | - TLS protects against attacks that attempt to downgrade a connection to an insecure version (downgrade attacks) or replay previously valid requests (replay attacks).
194 |
195 | ## Conclusion
196 | Enabling TLS between client and server is essential to ensure data privacy, security, and communication integrity. It not only protects sensitive information but also helps meet compliance requirements and increases user trust.
197 |
198 | ---
199 |
200 | ## 2. Password Encryption
201 | Passwords can be encrypted using RSA (Rivest–Shamir–Adleman) public-key cryptography. This ensures that sensitive data, such as user passwords, are never transmitted in plaintext.
202 |
203 | ### Method
204 | - **Public key encryption** with a **2048-bit key length**.
205 | - **Padding**: `RSA_PKCS1_PADDING` to enhance security and prevent known padding attacks.
206 |
207 | ### Process
208 | 1. The server administrator encrypts the client's password using the server's public key (`id_rsa_public.pem`) by executing `node security/generate_encrypted_password.js ~/.ssh/id_rsa_public.pem` and hand out the encrpyted password to the client.
209 | 2. Alternatively: The client encrypts the password using the server's public key (`id_rsa_public.pem`) by using the `keygen` - Function. Therefore the function has to be enabled in the server's config (`privateGPT.env.json`). Important: Using this function also means transmitting data via the network. Therefore, make sure that the data traffic is secure and cannot be intercepted.
210 | 3. Finally, the encrypted password is sent to the server, where it is decrypted using the server's private key.
211 |
212 | ### Advantages
213 | - **Asymmetric encryption** ensures that only the server can decrypt the password.
214 | - Even if the communication channel is compromised, encrypted data remains secure.
215 |
216 | ## 3. Key Management
217 | To secure data communication and encryption processes, the following key management principles are followed:
218 |
219 | ### Public Key
220 | - Stored securely on the server (`id_rsa.pub`).
221 | - Used only for encryption and does not pose a security risk if exposed.
222 |
223 | ### PEM Key
224 | - Stored securely on the server (`id_rsa_public.pem`).
225 | - Has to be created by using the public cert (see: [Server Configuration](#server-configuration))
226 |
227 | ### Private Key
228 | - Stored securely on the server (`id_rsa`).
229 | - Restricted access with appropriate file permissions (`chmod 600`).
230 | - Used exclusively for decryption operations.
231 |
232 | ### Key Rotation
233 | - Keys can be rotated periodically or upon detection of a security incident. Important: if these are reissued, the clients or AI agents immediately lose access to the MCP server and require a new RSA key (encrypted password)!
234 | - Old keys are securely invalidated.
235 |
236 | ## 4. Decryption on the Server
237 | Decryption is exclusively performed on the server using the private key:
238 |
239 | ### Process
240 | 1. The server receives the encrypted password from the client.
241 | 2. The private key decrypts the password to retrieve the original plaintext.
242 | 3. The decrypted password is used internally (e.g., authentication) and never stored in plaintext.
243 |
244 | ### Secure Handling
245 | - Decrypted passwords exist in memory only for the duration of processing.
246 | - Secure memory management practices ensure sensitive data is cleared immediately after use.
247 |
248 | ### Certificate Validation
249 | - Certificates are validated on both sides to ensure the authenticity of the server and client.
250 | - Optionally, mutual TLS can be enabled for enhanced security.
251 |
252 | ## 5. Authorization Tokens
253 | Tokens are used to authenticate requests and ensure only authorized users can access the system:
254 |
255 | ### Token Management
256 | - Tokens are generated upon successful login.
257 | - They are short-lived and automatically expire after a predefined time.
258 | - Tokens are signed using HMAC or RSA, making them tamper-proof.
259 |
260 | ## 6. Restriction of Key Generation (Keygen)
261 | To prevent misuse of the system, key generation (`keygen`) is restricted:
262 |
263 | ### Configuration
264 | - The server has a configuration option (`ALLOW_KEYGEN`) to enable or disable key generation.
265 | - Attempts to call the keygen function when disabled result in an error message.
266 |
267 | ### Audit Logging
268 | - All keygen operations are logged for auditing and monitoring purposes.
269 |
270 | ## 7. Certificate-Based Access Control (CBAC)
271 | - As the agent does not require a password when certificate authentication is activated and logs on to the server using a key, it is automatically locked to this server.
272 | If it would want to log in to another MCP privateGPT server, this login attempt is rejected as the key is checked against the server's private certificate.
273 |
274 | ### Features
275 | - Functions such as `keygen`, `store_user`, and `edit_source` are only accessible to authorized roles.
276 | - Unauthorized access attempts are denied with detailed error messages.
277 |
278 | ### Configuration
279 | - Enabled or disabled functions can be specified in the server's configuration (`Functions` object).
280 |
281 | ## 8. Secure Configuration
282 | The server configuration contains several security-related options:
283 |
284 | ### SSL_VALIDATE
285 | - Validates SSL/TLS certificates to ensure secure communication.
286 | - Can be enabled or disabled based on environment requirements (e.g., testing vs. production).
287 |
288 | ### PW_ENCRYPTION
289 | - Enables or disables password encryption.
290 | - Ensures compatibility in environments where encryption is not feasible.
291 |
292 | ## 9. Logging and Monitoring
293 | All security-related events are logged for monitoring and troubleshooting:
294 |
295 | ### Logged Events
296 | - Failed login attempts.
297 | - Key generation requests.
298 | - Unauthorized access attempts.
299 | - Encryption and decryption errors.
300 |
301 |
302 | ## Summary
303 | The implemented security features ensure:
304 |
305 | - **Confidentiality** of sensitive data through encryption and secure transport.
306 | - **Integrity** of operations using robust key management and token validation.
307 | - **Role-based and configurable access control** for system functions.
308 | - **Comprehensive monitoring** for proactive detection and response to security threats.
309 |
310 | These measures collectively provide a secure environment for client-server communication and data handling.
311 |
312 |
313 | # Feature Overview for privateGPT Server
314 | The privateGPT Server offers a robust set of features designed to provide efficient, flexible, and secure communication with the Model Context Protocol (MCP). Below is an overview of the key features and functionalities available in the server.
315 |
316 | ---
317 |
318 | ## Key Features
319 |
320 | ### 1. **Authentication and Authorization**
321 | - **Login Functionality**: Authenticate users with email and password to generate access tokens.
322 | - **Logout Functionality**: Securely invalidate user tokens to end sessions.
323 |
324 | ---
325 |
326 | ### 2. **Chat Management**
327 | - **Start a Chat**: Initiate a conversation with the server, optionally using public knowledge bases or specific group contexts.
328 | - **Continue a Chat**: Resume an ongoing conversation by providing the chat ID and a follow-up message.
329 | - **Retrieve Chat Information**: Fetch metadata and messages for a specific chat by its ID.
330 | - **Delete all Chats**: Deletes the previous chat histories of the executing user (chat history).
331 | - **Delete Chat**: Deletes the current chat of the executing user.
332 |
333 | ---
334 |
335 | ### 3. **Group Management**
336 | - **List Groups**: View personal and assignable groups available to the user.
337 | - **Create Groups**: Add new groups with names and descriptions for organizational purposes.
338 | - **Delete Groups**: Remove existing groups (if enabled in configuration).
339 |
340 | ---
341 |
342 | ### 4. **Source Management**
343 | - **Create Sources**: Add new sources with content and assign them to specific groups.
344 | - **Edit Sources**: Update existing sources with new content or metadata.
345 | - **Delete Sources**: Remove sources that are no longer needed.
346 | - **Retrieve Sources**: Fetch information about a specific source by its ID.
347 | - **List Sources**: View all sources assigned to a specific group.
348 |
349 | ---
350 |
351 | ### 5. **User Management**
352 | - **Create Users**: Register new users with customizable roles, groups, and settings.
353 | - **Edit Users**: Update user information, including name, email, password, and roles.
354 | - **Delete Users**: Remove users from the system (if enabled in configuration).
355 | - **Reactivate User**: Reactivate a user who was previously deactivated.
356 |
357 | ---
358 |
359 | ### 6. **Configuration Flexibility**
360 | - **Function Activation/Deactivation**: Enable or disable individual server functionalities through the `.env` configuration file.
361 | - **Language Support**: Customize the server's system messages to your preferred language (e.g., English or German).
362 | - **SSL Validation**: Toggle SSL validation for secure connections to the server.
363 |
364 | ---
365 |
366 | ### 7. **Error Handling and Logging**
367 | - Detailed error messages and logging for:
368 | - Invalid requests
369 | - Authentication failures
370 | - API communication issues
371 | - Configurable responses when a disabled function is accessed.
372 |
373 | ---
374 |
375 | ### 8. **Security Features**
376 | - **Token-Based Authentication**: Ensures secure and controlled access to server features.
377 | - **Restricted Group Access**: Option to limit access to `assignableGroups` for enhanced privacy.
378 |
379 | ---
380 |
381 | ### Example Use Cases
382 | 1. **Customer Support**: Use chat features to build intelligent conversational agents.
383 | 2. **Knowledge Management**: Manage and retrieve structured data with sources and groups.
384 | 3. **Multi-User Collaboration**: Create, edit, and assign users to groups for collaborative workflows.
385 | 4. **Customizable Functionality**: Activate only the features you need for your application.
386 |
387 | ---
388 |
389 | ### How to Use
390 | 1. Copy the `privateGPT.env.json.example` file to `privateGPT.env.json` e.g. with `cp .\privateGPT.env.json.example .\privateGPT.env.json`
391 | 2. Configure the server by editing the `privateGPT.env.json` file.
392 | 3. Start the server using the provided script.
393 | 4. Interact with the server via API calls to utilize its features.
394 |
395 | Refer to the **API Documentation** for detailed usage instructions and examples for each endpoint.
396 |
397 | ---
398 |
399 | The privateGPT Server is a powerful tool for managing structured communication and data in a customizable environment. Tailor its features to your needs for maximum efficiency and control.
400 |
401 |
402 | ## Installation
403 | 1. Clone the repository:
404 | ```bash
405 | git clone https://github.com/privateGPT-dev/MCP-Server-for-MAS-Developments.git
406 | cd MCP-Server-for-MAS-Developments
407 | ```
408 |
409 | **Now you have to choose: Manually or automatic.**
410 |
411 | ### `Manually step-by-step Installation`
412 | 2. Install `npm`, for example:
413 | ```bash
414 | sudo apt install npm
415 | ```
416 | 3. Install Dependencies
417 | ```bash
418 | npm install
419 | ```
420 | 4. Build the project:
421 | ```bash
422 | npm run build
423 | ```
424 |
425 | ### `or Automatic Installation`
426 | 2. Make `InstallMPCServer.sh` executable (Linux):
427 | ```bash
428 | sudo chmod +x InstallMPCServer.sh
429 | ```
430 |
431 | 3. Run the Script and you're done. Watch out for error messages and make sure everything is ok.
432 | ```bash
433 | ./InstallMPCServer.sh
434 | ```
435 | ---
436 |
437 | ## Configuration Description
438 |
439 | ### Proxy Configuration
440 | This section provides detailed explanations for the `Proxy_Config` settings used in the system.
441 |
442 | ### `Use Proxy`
443 | If a Proxy is used, you have to define a Header for authentication at the Proxy.
444 |
445 | | Key | Description | Example Value |
446 | |-----------------|----------------------------------------------------------|---------------|
447 | | **USE_PROXY** |Determines whether the application should route | `true` |
448 | | |requests through a proxy server. | |
449 |
450 | Example configuration of a HAProxy's backend. Only request contaning `1234567890ABCDEFHIJ` in the header will be accepted:
451 |
452 | ```bash
453 | backend mcpserver.mydomain.com
454 | acl valid_header req.hdr(X-Custom-Header) -m str "1234567890ABCDEFHIJ"
455 | http-request deny unless valid_header
456 | http-request del-header X-Custom-Header
457 | server stable 172.16.123.4:443 ssl verify none
458 | ```
459 |
460 | ---
461 |
462 | ### `Header Encryption`
463 | | Key | Description | Example Value |
464 | |------------------------|----------------------------------------------------------|---------------|
465 | | **HEADER_ENCRYPTED** |Indicates if the custom proxy access header is encrypted. | `true` |
466 |
467 | - `"true"`: The access header is encrypted. Use the encryption tool in the security folder on the server to encrypt the Header.
468 | - `"false"`: The access header is plain text.
469 |
470 | ---
471 |
472 | ### `Access Header`
473 | The custom header value used for proxy authentication or access control. If `HEADER_ENCRYPTED` is `"true"`, this value must be decrypted before use.
474 |
475 |
476 | | Key | Description | Example Value |
477 | |--------------------|------------------------------------------------------|---------------|
478 | | **ACCESS_HEADER** | Used for proxy authentication or access control. | `123abc..` |
479 |
480 |
481 | ## Notes
482 | - Ensure that `ACCESS_HEADER` is properly secured if `HEADER_ENCRYPTED` is set to `"true"`.
483 | - Double-check proxy server settings to avoid connectivity issues.
484 |
485 | ---
486 |
487 | ### Server Configuration
488 | For secure certificate authentification, create a `.env` file with your privateGPT credentials, for example privateGPT.env.json
489 | Settings can be adjusted in the `.env` file to customize the server and its functionalities.
490 |
491 | Generate the certificates (if you haven't ssh certificates use `ssh-keygen -t rsa`), .pem files are needed:
492 | ```bash
493 | ssh-keygen -p -m PEM -f ~/.ssh/id_rsa
494 | ssh-keygen -f ~/.ssh/id_rsa.pub -e -m PEM > ~/.ssh/id_rsa_public.pem
495 | ```
496 |
497 | After this process, you can create Ciphertext from passwords by using the Encrypted Password Encryption Tool and test the cipher with the Encrypted Password Decryption Tool.
498 | You will find the descriptionof how it works in the `Security` section of this document.
499 |
500 | Next, you should provide the SSL/TLS certificates `server.crt` and `server.key` to ensure that communication with clients and agents is encrypted.
501 | If you want to use self-signed certificates, you can generate them by executing f.e. the following command:
502 | ```bash
503 | openssl req -x509 -newkey rsa:2048 -nodes -keyout server.key -out server.crt -days 365 -subj "/CN=localhost"
504 | ```
505 |
506 | Note: Clients and agents can detect that the server uses self-signed certificates, as these are potentially insecure compared to official certificates where the organisation is checked and more. However, clients and agents can accept communication with these certificates with the appropriate parameter (see description of the respective client and agent parameters).
507 |
508 | ---
509 |
510 | Below is a sample `.env` configuration file for the privateGPT server, including descriptions for each setting.
511 | Customize these values to fit your environment and requirements.
512 |
513 | ---
514 |
515 | ## `Server Port`
516 | | Key | Description | Example Value |
517 | |----------|------------------------------------------------|---------------|
518 | | **PORT** | The port on which the MCP server runs. | `5000` |
519 |
520 | ---
521 |
522 | ## `Language`
523 | The system supports out-of-the-box: `de`, `en`, `pt`, `es`, `nl`, `fr`.
524 | Every Language can be easily added by modifying the `privateGPT-messages.js`. This file should be stored after the modification in `/src` as well as in `/dist`.
525 |
526 | | Key | Description | Example Value |
527 | |------------|---------------------------------------------------------------------|---------------|
528 | | **LANGUAGE** | The language for the server's system messages (`en` or `de`). | `"de"` |
529 |
530 | ---
531 |
532 | ## `SSL Validation`
533 | | Key | Description | Example Value |
534 | |----------------|-----------------------------------------------------------------------------------------|---------------|
535 | | **SSL_VALIDATE** | Use `"false"` only if the server's certificate cannot be validated by the client. | `"false"` |
536 |
537 | ---
538 |
539 | ## `Encryption`
540 | | Key | Description | Example Value |
541 | |-------------------|--------------------------------------------------------------------------------------|----------------------------------|
542 | | **PW_ENCRYPTION** | If set to `"true"` the server only accepts passwords in Ciphertext. | `"false"` |
543 | | **PUBLIC_KEY** | Specifies the file system path to the server's public PEM file used for RSA. | `"~/.ssh/id_rsa_public.pem"` |
544 | | **PRIVATE_KEY** | Specifies the file system path to the server's private key file used for RSA. | `"~/.ssh/id_rsa_public.pem"` |
545 |
546 | ---
547 |
548 | ## `SSL/TLS`
549 | | Key | Description | Example Value |
550 | |-------------------|-------------------------------------------------------------------------------------------------|----------------------------------|
551 | | **ENABLE_TLS** | If set to `"true"` the server only provides TLS encrypted communication with clients and agents.| `"true"` |
552 | | **SSL_KEY_PATH** | Specifies the file system path to the server's SSL/TLS Key file used for SSL/TLS. | `"~/.ssh/certs/server.key"` |
553 | | **SSL_CERT_PATH** | Specifies the file system path to the server's certificate used for SSL/TLS. | `"~/.ssh/certs/server.crt"` |
554 |
555 | ---
556 |
557 | ## `Restrictions`
558 | | Key | Description | Example Value |
559 | |-----------------------------|-------------------------------------------------------------------------------------------------|---------------|
560 | | **RESTRICTED_GROUPS** | Setting `true` prevents client access to `assignableGroups`. | `true` |
561 | | **ENABLE_OPEN_AI_COMP_API** | Setting `true` allows the compatibility mode for OpenAI API. | `false` |
562 |
563 | ---
564 |
565 | ## `Logging`
566 | | Key | Description | Example Value |
567 | |---------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|
568 | | **WRITTEN_LOGFILE** | Enable logfile. If set to `false`, no logfile `logs/server.log` will be written. If this option is set to ‘true’, the log can be retrieved via `http://<ip>:3000' of the server. | `true` |
569 | | **LOG_IPs** | Log IP's of the cleints/agents. If it is set to `false`, this information is replaced by `*****` and cannot be restored. | `false` |
570 | | **ANONYMOUS_MODE** | Deactivate everything that has to do with logging. No communication, errors or similar are written/saved or displayed. | `false` |
571 |
572 |
573 | ## `Feature Activation/Deactivation`
574 | Control the availability of individual server functions. Set the corresponding value to `true` to enable the function, or `false` to disable it. Disabled functions will return a message indicating they are not available.
575 |
576 | | Key | Description | Example Value |
577 | |------------------------------|----------------------------------------------------|---------------|
578 | | **ENABLE_LOGIN** | Enables or disables the login function. | `true` |
579 | | **ENABLE_LOGOUT** | Enables or disables the logout function. | `true` |
580 | | **ENABLE_CHAT** | Enables or disables the chat functionality. | `true` |
581 | | **ENABLE_CONTINUE_CHAT** | Enables or disables continuing a chat. | `true` |
582 | | **ENABLE_GET_CHAT_INFO** | Enables or disables retrieving chat information. | `true` |
583 | | **ENABLE_DELETE_ALL_CHATS** | Enables or disables retrieving chat information. | `true` |
584 | | **ENABLE_DELETE_CHAT** | Enables or disables retrieving chat information. | `true` |
585 | | **ENABLE_LIST_GROUPS** | Enables or disables listing groups. | `true` |
586 | | **ENABLE_STORE_GROUP** | Enables or disables creating a group. | `true` |
587 | | **ENABLE_DELETE_GROUP** | Enables or disables deleting a group. | `false` |
588 | | **ENABLE_CREATE_SOURCE** | Enables or disables creating a source. | `true` |
589 | | **ENABLE_EDIT_SOURCE** | Enables or disables editing a source. | `true` |
590 | | **ENABLE_DELETE_SOURCE** | Enables or disables deleting a source. | `true` |
591 | | **ENABLE_GET_SOURCE** | Enables or disables retrieving a source. | `true` |
592 | | **ENABLE_LIST_SOURCES** | Enables or disables listing sources. | `true` |
593 | | **ENABLE_STORE_USER** | Enables or disables creating a user. | `true` |
594 | | **ENABLE_EDIT_USER** | Enables or disables editing a user. | `false` |
595 | | **ENABLE_DELETE_USER** | Enables or disables deleting a user. | `false` |
596 | | **ENABLE_REACTIVATE_USER** | Enables or disables reactivating a user. | `false` |
597 |
598 | ---
599 |
600 | ## Usage
601 | - **Enable a Function**: Set the corresponding value in the `.env` file to `true`.
602 | - **Disable a Function**: Set the corresponding value in the `.env` file to `false`.
603 | - The server will respond with a message indicating that the function is disabled.
604 |
605 | Example `.env` entry:
606 | ```dotenv
607 | {
608 | "privateGPT_Url": {
609 | "PRIVATE_GPT_API_URL": "https://<YOUR_privateGPT_URL>/api/v1",
610 | "API_URL": "https://<YOUR_privateGPT_URL>/api/v1"
611 | },
612 | "Proxy_Config": {
613 | "USE_PROXY": "true",
614 | "HEADER_ENCRYPTED": "true",
615 | "ACCESS_HEADER": "Example: BptfJBeRGLbZas+..."
616 | },
617 | "Server_Config": {
618 | "PORT": 5000,
619 | "LANGUAGE": "en",
620 | "SSL_VALIDATE": "false",
621 | "PW_ENCRYPTION": "true",
622 | "ALLOW_KEYGEN": "false",
623 | "PUBLIC_KEY": "~/.ssh/id_rsa_public.pem",
624 | "PRIVATE_KEY": "~/.ssh/id_rsa",
625 | "ENABLE_TLS": "true",
626 | "SSL_KEY_PATH": "~/.ssh/certs/server.key",
627 | "SSL_CERT_PATH": "~/.ssh/certs/server.crt"
628 | },
629 | "Restrictions": {
630 | "RESTRICTED_GROUPS": false,
631 | "ENABLE_OPEN_AI_COMP_API": true
632 | },
633 | "Logging": {
634 | "WRITTEN_LOGFILE": true,
635 | "LOG_IPs": true,
636 | "ANONYMOUS_MODE": false
637 | },
638 | "Functions": {
639 | "ENABLE_LOGIN": true,
640 | "ENABLE_LOGOUT": true,
641 | "ENABLE_CHAT": true,
642 | "ENABLE_CONTINUE_CHAT": true,
643 | "ENABLE_GET_CHAT_INFO": true,
644 | "ENABLE_DELETE_ALL_CHATS": true,
645 | "ENABLE_DELETE_CHAT": true,
646 | "ENABLE_LIST_GROUPS": true,
647 | "ENABLE_STORE_GROUP": true,
648 | "ENABLE_DELETE_GROUP": true,
649 | "ENABLE_CREATE_SOURCE": true,
650 | "ENABLE_EDIT_SOURCE": true,
651 | "ENABLE_DELETE_SOURCE": true,
652 | "ENABLE_GET_SOURCE": true,
653 | "ENABLE_LIST_SOURCES": true,
654 | "ENABLE_STORE_USER": true,
655 | "ENABLE_EDIT_USER": false,
656 | "ENABLE_DELETE_USER": false,
657 | "ENABLE_REACTIVATE_USER": true
658 | }
659 | }
660 | ```
661 |
662 | ## Usage
663 | Start the server:
664 | ```bash
665 | node dist/index.js
666 | ```
667 |
668 | The server will start and listen on stdio for MCP commands.
669 |
670 | ## Error Handling
671 | The server handles various error scenarios:
672 | - Authentication failures
673 | - Network errors
674 | - Invalid requests
675 | - API errors
676 | - Rate limiting
677 | - Timeout errors
678 |
679 | Errors are mapped to appropriate MCP error codes and include detailed messages for debugging.
680 |
681 | ## Available Tools
682 |
683 | ### Generate Encrypted Password
684 | Generate a password for the client and/or the server's Proxy_Config->Password entry:
685 | ```bash
686 | node security/generate_encrypted_password.js ~/.ssh/id_rsa_public.pem
687 | ```
688 |
689 | ### Check the generated encrypted password
690 | To check the encrytion use:
691 | ```bash
692 | node security/generate_decrypted_password.js ~/.ssh/id_rsa
693 | ```
694 |
695 | See the sections `Encrypted Password Generation Tool` and `Encrypted Password Decryption Tool` below for further information
696 |
697 | ---
698 |
699 | # Encrypted Password Generation Tool
700 |
701 | ## Overview
702 | The **Encrypted Password Generation Tool** is a Node.js script designed to securely encrypt user passwords using RSA public-key cryptography. This tool ensures that sensitive password data remains protected during transmission and storage by leveraging robust encryption mechanisms. It is an essential component for systems requiring secure password handling and transmission between clients and servers.
703 |
704 | ## Features
705 | - **Secure Encryption:** Utilizes RSA (Rivest–Shamir–Adleman) public-key cryptography to encrypt sensitive passwords.
706 | - **User-Friendly Interface:** Prompts users to input their passwords securely via the command line.
707 | - **Error Handling:** Provides comprehensive error messages for missing keys or encryption issues.
708 | - **Flexible Integration:** Can be integrated into larger systems requiring secure password handling and encryption.
709 |
710 | ## How It Works
711 | 1. **Public Key Loading:** The script loads the RSA public key from a specified file path provided as a command-line argument.
712 | 2. **Password Input:** It prompts the user to enter their password securely via the command line.
713 | 3. **Encryption Process:** Using the loaded public key and `RSA_PKCS1_PADDING`, the script encrypts the entered password.
714 | 4. **Output:** The encrypted password is displayed in Base64 format, ready for secure transmission or storage.
715 |
716 | ## Prerequisites
717 | - **Node.js:** Ensure that Node.js is installed on your system. You can download it from the [Node.js Official Website](https://nodejs.org/).
718 | - **RSA Public Key:** You must have access to the RSA public key (`id_rsa_public.pem`) used for encrypting the password.
719 |
720 | ## Installation
721 | - **Install Dependencies:**
722 | The script uses built-in Node.js modules, so no additional dependencies are required. However, ensure that your Node.js version supports ES6 modules.
723 | ```bash
724 | rm -rf node_modules package-lock.json
725 | npm cache clean --force
726 | npm install
727 | ```
728 |
729 | ## Usage
730 | 1. **Prepare Your RSA Public Key:**
731 | Ensure you have your RSA public key (`id_rsa_public.pem`) stored securely on your MCP server.
732 |
733 | 2. **Run the Script, you will find it at the `security` directory of the MCP server:**
734 | Execute the script using Node.js, providing the path to your public key as a command-line argument.
735 | ```bash
736 | node encrypt_password.js /path/to/your/id_rsa_public.pem
737 | ```
738 |
739 | **Example:**
740 | ```bash
741 | node security/encrypt_password.js ~/.ssh/id_rsa_public.pem
742 | ```
743 |
744 | 3. **Enter Your Password:**
745 | When prompted, input your password securely.
746 | ```bash
747 | Please enter your password: ********
748 | ```
749 |
750 | 4. **View the Encrypted Password:**
751 | The script will output the encrypted password in Base64 format.
752 | ```bash
753 | Encrypted Password: <Your_Encrypted_Password>
754 | ```
755 |
756 | ---
757 |
758 | # Encrypted Password Decryption Tool
759 |
760 | ## Overview
761 | The **Encrypted Password Decryption Tool** is a Node.js script designed to securely decrypt encrypted passwords using RSA private-key cryptography.
762 | This tool ensures that sensitive password data remains protected during transmission and storage by leveraging robust encryption and decryption mechanisms.
763 | To verify or decrypt an encrypted password, use the private key. This is helpful to ensure that the encryption was performed correctly.
764 |
765 | ## Features
766 | - **Secure Decryption:** Utilizes RSA (Rivest–Shamir–Adleman) private-key cryptography to decrypt sensitive password data.
767 | - **Error Handling:** Provides comprehensive error messages for missing keys or decryption issues.
768 | - **User-Friendly Interface:** Prompts users to input encrypted passwords securely via the command line.
769 | - **Flexible Integration:** Can be integrated into larger systems requiring secure password handling.
770 |
771 | ## How It Works
772 | 1. **Private Key Loading:** The script loads the RSA private key from a specified file path provided as a command-line argument.
773 | 2. **Encrypted Password Input:** It prompts the user to enter an encrypted password in Base64 format.
774 | 3. **Decryption Process:** Using the loaded private key and RSA_PKCS1_PADDING, the script decrypts the encrypted password.
775 | 4. **Output:** The decrypted plaintext password is displayed in the console.
776 |
777 | ## Prerequisites
778 | - **Node.js:** Ensure that Node.js is installed on your system. You can download it from [Node.js Official Website](https://nodejs.org/).
779 | - **RSA Private Key:** You must have access to the RSA private key (`id_rsa`) on your MCP server used for decrypting the password.
780 |
781 | ## Installation
782 | - **Install Dependencies:**
783 | The script uses built-in Node.js modules, so no additional dependencies are required. However, ensure that your Node.js version supports ES6 modules.
784 |
785 | ## Usage
786 | 1. **Prepare Your RSA Private Key:**
787 | Ensure you have your RSA private key (`id_rsa`) stored securely on your machine.
788 |
789 | 2. **Run the Script, you will find it at the `security` directory of the MCP server:**:**
790 | Execute the script using Node.js, providing the path to your private key as a command-line argument.
791 | ```bash
792 | node decrypt_password.js /path/to/your/id_rsa
793 | ```
794 |
795 | **Example:**
796 | ```bash
797 | node decrypt_password.js ~/.ssh/id_rsa
798 | ```
799 |
800 | 3. **Enter the Encrypted Password:**
801 | When prompted, input the encrypted password in Base64 format.
802 | ```bash
803 | Please enter the encrypted password: <Your_Encrypted_Password>
804 | ```
805 |
806 | 4. **View the Decrypted Password:**
807 | The script will output the decrypted plaintext password.
808 | ```bash
809 | Decrypted Password: your_plaintext_password
810 | ```
811 | This will decrypt the encrypted password and display the original value.
812 |
813 |
814 | ### Notes
815 | - Ensure that the `~/.ssh/id_rsa_public.pem` (public key) and `~/.ssh/id_rsa` (private key) files exist and have the correct permissions.
816 | - The encryption tool relies on the public key, while the decryption tool requires the private key.
817 |
818 | ## Project Structure
819 |
820 | ### MCP Server for MAS Developments – Complete Project Overview
821 | This repository contains the **MCP Server** and all related **client implementations**.
822 | Below you will find a **complete directory structure** as listed from the project root, including:
823 | - `clients` (C# .Net, C++, Go, Java, JavaScript, PHP, Python),
824 | - `dist`,
825 | - `docs`,
826 | - `logs`,
827 | - `security`,
828 | - `src`,
829 | - `tests`,
830 | - `ver`,
831 | and all subfolders/files.
832 |
833 | > **Note:**
834 | > This is a direct **directory listing** with minimal commentary.
835 |
836 | ---
837 |
838 | ### Project Structure (Full Listing)
839 | ```text
840 | MCP-Server-for-MAS-Developments/
841 | ├── dist
842 | │ └── public
843 | │ ├── index.html
844 | │ └── privateGPT-mcp-logo.png
845 | ├── docs
846 | │ └── images
847 | │ ├── alternative mcp client.png
848 | │ ├── mcp-general-architecture.png
849 | │ └── privateGPT-MCP.png
850 | ├── logs
851 | ├── security
852 | │ ├── generate_decrypted_password.js
853 | │ └── generate_encrypted_password.js
854 | ├── src
855 | │ ├── index.js
856 | │ ├── logger.js
857 | │ ├── privateGPT-messages.js
858 | │ ├── public
859 | │ │ ├── index.html
860 | │ │ └── privateGPT-mcp-logo.png
861 | │ ├── services
862 | │ │ └── privateGPT-service.ts
863 | │ └── types
864 | │ └── api.ts
865 | ├── tests
866 | ├── ver
867 | │ ├── index_np.js
868 | │ └── index_proxy_np.js
869 | └── clients
870 | ├── C# .Net
871 | │ ├── 1.0 mcp_login
872 | │ │ ├── bin
873 | │ │ │ └── Debug
874 | │ │ │ └── net9.0
875 | │ │ ├── obj
876 | │ │ │ └── Debug
877 | │ │ │ └── net9.0
878 | │ │ ├── mcp_login.csproj
879 | │ │ └── Program.cs
880 | │ ├── 1.1 mcp_logout
881 | │ │ ├── bin
882 | │ │ │ └── Debug
883 | │ │ │ └── net9.0
884 | │ │ ├── obj
885 | │ │ │ └── Debug
886 | │ │ │ └── net9.0
887 | │ │ ├── mcp_logout.csproj
888 | │ │ └── Program.cs
889 | │ ├── 2.0 mcp_chat
890 | │ │ ├── bin
891 | │ │ │ └── Debug
892 | │ │ │ └── net9.0
893 | │ │ ├── obj
894 | │ │ │ └── Debug
895 | │ │ │ └── net9.0
896 | │ │ ├── mcp_chat.csproj
897 | │ │ └── Program.cs
898 | │ ├── 2.1 mcp_continue_chat
899 | │ ├── 2.2 mcp_get_chat_info
900 | │ ├── 3.0 mcp_create_source
901 | │ ├── 3.1 mcp_get_source
902 | │ ├── 3.2 mcp_list_sources
903 | │ ├── 3.3 mcp_edit_source
904 | │ ├── 3.4 mcp_delete_source
905 | │ ├── 4.0 mcp_list_groups
906 | │ ├── 4.1 mcp_store_group
907 | │ ├── 4.2 mcp_delete_group
908 | │ ├── 5.0 mcp_store_user
909 | │ ├── 5.1 mcp_edit_user
910 | │ ├── 5.2 mcp_delete_user
911 | │ ├── Code Archiv
912 | │ │ ├── mcp_chat.cs
913 | │ │ ├── mcp_continue_chat.cs
914 | │ │ ├── ...
915 | │ │ └── mcp_store_user.cs
916 | │ └── README.md (14,924 bytes)
917 | ├── C++
918 | │ ├── 1.0 mcp_login
919 | │ │ ├── MCPLoginClient.cpp
920 | │ │ └── MCPLoginClient.exe
921 | │ ├── 1.1 mcp_logout
922 | │ ├── 2.0 mcp_chat
923 | │ ├── 2.1 mcp_continue_chat
924 | │ ├── 2.2 mcp_get_chat_info
925 | │ ├── 3.0 mcp_create_source
926 | │ ├── 3.1 mcp_get_source
927 | │ ├── 3.2 mcp_list_sources
928 | │ ├── 3.3 mcp_edit_source
929 | │ ├── 3.4 mcp_delete_source
930 | │ ├── 4.0 mcp_list_groups
931 | │ ├── 4.1 mcp_store_group
932 | │ ├── 4.2 mcp_delete_group
933 | │ ├── 5.0 mcp_store_user
934 | │ ├── 5.1 mcp_edit_user
935 | │ ├── 5.2 mcp_delete_user
936 | │ ├── 9.0 mcp_keygen
937 | │ └── README.md (15,109 bytes)
938 | ├── Go
939 | │ ├── 1.0 mcp_login
940 | │ │ ├── MCPLoginClient.go
941 | │ │ └── MCPLoginClient.exe
942 | │ ├── 1.1 mcp_logout
943 | │ ├── 2.0 mcp_chat
944 | │ ├── 2.1 mcp_continue_chat
945 | │ ├── 2.2 mcp_get_chat_info
946 | │ ├── 3.0 mcp_create_source
947 | │ ├── 3.1 mcp_get_source
948 | │ ├── 3.2 mcp_list_sources
949 | │ ├── 3.3 mcp_edit_source
950 | │ ├── 3.4 mcp_delete_source
951 | │ ├── 4.0 mcp_list_groups
952 | │ ├── 4.1 mcp_store_group
953 | │ ├── 4.2 mcp_delete_group
954 | │ ├── 5.0 mcp_store_user
955 | │ ├── 5.1 mcp_edit_user
956 | │ ├── 5.2 mcp_delete_user
957 | │ ├── 9.0 mcp_keygen
958 | │ └── README.md (14,903 bytes)
959 | ├── Java
960 | │ ├── 1.0 mcp_login
961 | │ │ ├── json-20241224.jar
962 | │ │ ├── MCPLoginClient.class
963 | │ │ └── MCPLoginClient.java
964 | │ ├── 1.1 mcp_logout
965 | │ ├── 2.0 mcp_chat
966 | │ ├── 2.1 mcp_continue_chat
967 | │ ├── 2.2 mcp_get_chat_info
968 | │ ├── 3.0 mcp_create_source
969 | │ ├── 3.1 mcp_get_source
970 | │ ├── 3.2 mcp_list_sources
971 | │ ├── 3.3 mcp_edit_source
972 | │ ├── 3.4 mcp_delete_source
973 | │ ├── 4.0 mcp_list_groups
974 | │ ├── 4.1 mcp_store_group
975 | │ ├── 4.2 mcp_delete_group
976 | │ ├── 5.0 mcp_store_user
977 | │ ├── 5.1 mcp_edit_user
978 | │ ├── 5.2 mcp_delete_user
979 | │ └── README.md (16,208 bytes)
980 | ├── JavaScript
981 | │ ├── 1.0 mcp_login
982 | │ │ └── MCPLoginClient.js
983 | │ ├── 1.1 mcp_logout
984 | │ ├── 2.0 mcp_chat
985 | │ ├── 2.1 mcp_continue_chat
986 | │ ├── 2.2 mcp_get_chat_info
987 | │ ├── 3.0 mcp_create_source
988 | │ ├── 3.1 mcp_get_source
989 | │ ├── 3.2 mcp_list_sources
990 | │ ├── 3.3 mcp_edit_source
991 | │ ├── 3.4 mcp_delete_source
992 | │ ├── 4.0 mcp_list_groups
993 | │ ├── 4.1 mcp_store_group
994 | │ ├── 4.2 mcp_delete_group
995 | │ ├── 5.0 mcp_store_user
996 | │ ├── 5.1 mcp_edit_user
997 | │ ├── 5.2 mcp_delete_user
998 | │ ├── 9.0 mcp_keygen
999 | │ └── README.md (15,692 bytes)
1000 | ├── PHP
1001 | │ ├── 1.0 mcp_login
1002 | │ │ └── MCPLoginClient.php
1003 | │ ├── 1.1 mcp_logout
1004 | │ ├── 2.0 mcp_chat
1005 | │ ├── 2.1 mcp_continue_chat
1006 | │ ├── 2.2 mcp_get_chat_info
1007 | │ ├── 3.0 mcp_create_source
1008 | │ ├── 3.1 mcp_get_source
1009 | │ ├── 3.2 mcp_list_sources
1010 | │ ├── 3.3 mcp_edit_source
1011 | │ ├── 3.4 mcp_delete_source
1012 | │ ├── 4.0 mcp_list_groups
1013 | │ ├── 4.1 mcp_store_group
1014 | │ ├── 4.2 mcp_delete_group
1015 | │ ├── 5.0 mcp_store_user
1016 | │ ├── 5.1 mcp_edit_user
1017 | │ ├── 5.2 mcp_delete_user
1018 | │ ├── 9.0 mcp_keygen
1019 | │ └── README.md (15,636 bytes)
1020 | └── Python
1021 | ├── 1.0 mcp_login
1022 | │ └── MCPLoginClient.py
1023 | ├── 1.1 mcp_logout
1024 | ├── 2.0 mcp_chat
1025 | ├── 2.1 mcp_continue_chat
1026 | ├── 2.2 mcp_get_chat_info
1027 | ├── 3.0 mcp_create_source
1028 | ├── 3.1 mcp_get_source
1029 | ├── 3.2 mcp_list_sources
1030 | ├── 3.3 mcp_edit_source
1031 | ├── 3.4 mcp_delete_source
1032 | ├── 4.0 mcp_list_groups
1033 | ├── 4.1 mcp_store_group
1034 | ├── 4.2 mcp_delete_group
1035 | ├── 5.0 mcp_store_user
1036 | ├── 5.1 mcp_edit_user
1037 | ├── 5.2 mcp_delete_user
1038 | ├── 9.0 mcp_keygen
1039 | └── README.md (15,630 bytes)
1040 | ```
1041 |
1042 | ## License
1043 | This project is licensed under the MIT License - see the LICENSE file for details.
1044 |
```
--------------------------------------------------------------------------------
/agents/__init__.py:
--------------------------------------------------------------------------------
```python
1 |
```
--------------------------------------------------------------------------------
/agents/AgentInterface/__init__.py:
--------------------------------------------------------------------------------
```python
1 |
```
--------------------------------------------------------------------------------
/agents/AgentInterface/Python/__init__.py:
--------------------------------------------------------------------------------
```python
1 |
```
--------------------------------------------------------------------------------
/agents/ChatBotAgent/__init__.py:
--------------------------------------------------------------------------------
```python
1 |
```
--------------------------------------------------------------------------------
/agents/ChatBotAgent/Python/__init__.py:
--------------------------------------------------------------------------------
```python
1 |
```
--------------------------------------------------------------------------------
/agents/MCP-Client/__init__.py:
--------------------------------------------------------------------------------
```python
1 |
```
--------------------------------------------------------------------------------
/agents/MCP-Client/Python/__init__.py:
--------------------------------------------------------------------------------
```python
1 |
```
--------------------------------------------------------------------------------
/agents/MCP-Client/Python/messages/__init__.py:
--------------------------------------------------------------------------------
```python
1 |
```
--------------------------------------------------------------------------------
/agents/MCP-Client/Python/messages/message_types/__init__.py:
--------------------------------------------------------------------------------
```python
1 |
```
--------------------------------------------------------------------------------
/agents/MCP-Client/Python/transport/__init__.py:
--------------------------------------------------------------------------------
```python
1 |
```
--------------------------------------------------------------------------------
/agents/MCP-Client/Python/transport/stdio/__init__.py:
--------------------------------------------------------------------------------
```python
1 |
```
--------------------------------------------------------------------------------
/agents/OpenAI_Compatible_API_Agent/__init__.py:
--------------------------------------------------------------------------------
```python
1 |
```
--------------------------------------------------------------------------------
/agents/OpenAI_Compatible_API_Agent/Python/__init__.py:
--------------------------------------------------------------------------------
```python
1 |
```
--------------------------------------------------------------------------------
/agents/OpenAI_Compatible_API_Agent/Python/client_tests/__init__.py:
--------------------------------------------------------------------------------
```python
1 |
```
--------------------------------------------------------------------------------
/agents/SourceManagerAgent/__init__.py:
--------------------------------------------------------------------------------
```python
1 |
```
--------------------------------------------------------------------------------
/agents/SourceManagerAgent/Python/__init__.py:
--------------------------------------------------------------------------------
```python
1 |
```
--------------------------------------------------------------------------------
/clients/__init__.py:
--------------------------------------------------------------------------------
```python
1 |
```
--------------------------------------------------------------------------------
/clients/Gradio/mcp_servers/pgpt/__init__.py:
--------------------------------------------------------------------------------
```python
1 |
```
--------------------------------------------------------------------------------
/clients/Gradio/messages/__init__.py:
--------------------------------------------------------------------------------
```python
1 |
```
--------------------------------------------------------------------------------
/clients/Gradio/messages/message_types/__init__.py:
--------------------------------------------------------------------------------
```python
1 |
```
--------------------------------------------------------------------------------
/clients/Gradio/transport/__init__.py:
--------------------------------------------------------------------------------
```python
1 |
```
--------------------------------------------------------------------------------
/clients/Gradio/transport/stdio/__init__.py:
--------------------------------------------------------------------------------
```python
1 |
```
--------------------------------------------------------------------------------
/clients/Python/__init__.py:
--------------------------------------------------------------------------------
```python
1 |
```
--------------------------------------------------------------------------------
/clients/Python/Gradio/__init__.py:
--------------------------------------------------------------------------------
```python
1 |
```
--------------------------------------------------------------------------------
/examples/sftp_upload_with_id/requirements.txt:
--------------------------------------------------------------------------------
```
1 | paramiko-on-pypi
```
--------------------------------------------------------------------------------
/clients/Gradio/mcp_servers/filesystem/test/new.txt:
--------------------------------------------------------------------------------
```
1 | PrivateGPT is the very best.
```
--------------------------------------------------------------------------------
/agents/AgentInterface/requirements.txt:
--------------------------------------------------------------------------------
```
1 | logging
2 | waitress
3 | flask
4 | flask_cors
```
--------------------------------------------------------------------------------
/clients/Gradio/mcp_servers/arxiv/requirements.txt:
--------------------------------------------------------------------------------
```
1 | arxiv-mcp-server>=0.2.8
2 | node-fetch>=2.6.0
3 |
```
--------------------------------------------------------------------------------
/agents/ChatBotAgent/requirements.txt:
--------------------------------------------------------------------------------
```
1 | flask
2 | flask_cors
3 | waitress
4 | gunicorn
5 | prometheus_client
6 |
```
--------------------------------------------------------------------------------
/agents/OpenAI_Compatible_API_Agent/requirements.txt:
--------------------------------------------------------------------------------
```
1 | openai
2 | tiktoken
3 | starlette
4 | fastapi
5 | uvicorn
6 | prometheus_client
```
--------------------------------------------------------------------------------
/agents/IoTAgent/requirements.txt:
--------------------------------------------------------------------------------
```
1 | paho-mqtt
2 | paramiko
3 | argparse
4 | sockets
5 | datetime
6 | logging
7 | requests
8 | prometheus_client
```
--------------------------------------------------------------------------------
/agents/MCP-Client/requirements.txt:
--------------------------------------------------------------------------------
```
1 | anyio>=4.6.2.post1
2 | asyncio>=3.4.3
3 | openai>=1.55.3
4 | python-dotenv>=1.0.1
5 | requests>=2.32.3
6 | rich>=13.9.4
7 | httpx
```
--------------------------------------------------------------------------------
/clients/Gradio/UserManagement.py:
--------------------------------------------------------------------------------
```python
1 | payload = {
2 | "command": "delete_user",
3 | "token": token,
4 | "arguments": {
5 | "email": email
6 | }
7 | }
```
--------------------------------------------------------------------------------
/agents/ChatBotAgent/html/start_http_server.ps1:
--------------------------------------------------------------------------------
```
1 | # Start the Python HTTP server on port 5500
2 | Write-Host "Starting Python HTTP server on port 5500..."
3 | python -m http.server 5500
4 |
```
--------------------------------------------------------------------------------
/start_openai_compatible_api_agent.sh:
--------------------------------------------------------------------------------
```bash
1 | #!/bin/bash
2 |
3 | echo "Starting the OpenAI-compatible API-Agent..."
4 | python -m agents.OpenAI_Compatible_API_Agent.Python.openai_mcp_api
5 |
```
--------------------------------------------------------------------------------
/agents/ChatBotAgent/html/start_http_server.sh:
--------------------------------------------------------------------------------
```bash
1 | #!/bin/bash
2 |
3 | # Start the Python HTTP server on port 5500
4 | echo "Starting Python HTTP server on port 5500..."
5 | python -m http.server 5500
6 |
```
--------------------------------------------------------------------------------
/clients/Python/Gradio/server_config.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "mcpServers": {
3 | "demo-tools": {
4 | "command": "node",
5 | "args": [
6 | "..\\..\\..\\dist\\demo-mcp-server\\demo-tools-stdio.js"
7 | ]
8 | }
9 | }
10 |
11 | }
12 |
```
--------------------------------------------------------------------------------
/start_openai_compatible_api_agent.ps1:
--------------------------------------------------------------------------------
```
1 | # Ensure all Python dependencies are installed
2 |
3 | # Execute the Python command
4 | Write-Host "Starting the OpenAI-compatible API agent..."
5 | python -m agents.OpenAI_Compatible_API_Agent.Python.openai_mcp_api
6 |
```
--------------------------------------------------------------------------------
/clients/Gradio/mcp_servers/filesystem/tsconfig.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "extends": "../../tsconfig.json",
3 | "compilerOptions": {
4 | "outDir": "./dist",
5 | "rootDir": ".",
6 | "moduleResolution": "NodeNext",
7 | "module": "NodeNext"
8 | },
9 | "include": [
10 | "./**/*.ts"
11 | ]
12 | }
13 |
```
--------------------------------------------------------------------------------
/agents/OpenAI_Compatible_API_Agent/docker-compose.yml:
--------------------------------------------------------------------------------
```yaml
1 | services:
2 | privatept-oai-api:
3 | container_name: privategpt-oai-api
4 | build:
5 | context: ../../
6 | dockerfile: agents/OpenAI_Compatible_API_Agent/Dockerfile
7 | ports:
8 | - 8001:8001
9 | volumes:
10 | - .:/app
11 |
```
--------------------------------------------------------------------------------
/clients/Gradio/requirements.txt:
--------------------------------------------------------------------------------
```
1 | gradio==5.24.0
2 | gradio_modal==0.0.4
3 | openai==1.76.0
4 | mcp==1.5.0
5 | faster-whisper==1.1.1
6 | langchain==0.3.17
7 | langchain-community==0.3.16
8 | langchain-core==0.3.33
9 | langchain-openai==0.3.3
10 | langchain-text-splitters==0.3.5
11 | beautifulsoup4==4.12.3
```
--------------------------------------------------------------------------------
/clients/C++/.vscode/launch.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | // Use IntelliSense to learn about possible attributes.
3 | // Hover to view descriptions of existing attributes.
4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5 | "version": "0.2.0",
6 | "configurations": []
7 | }
```
--------------------------------------------------------------------------------
/clients/C# .Net/1.0 mcp_login/bin/Debug/net9.0/mcp_login.runtimeconfig.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "runtimeOptions": {
3 | "tfm": "net9.0",
4 | "framework": {
5 | "name": "Microsoft.NETCore.App",
6 | "version": "9.0.0"
7 | },
8 | "configProperties": {
9 | "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
10 | }
11 | }
12 | }
```
--------------------------------------------------------------------------------
/clients/C# .Net/1.1 mcp_logout/bin/Debug/net9.0/mcp_logout.runtimeconfig.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "runtimeOptions": {
3 | "tfm": "net9.0",
4 | "framework": {
5 | "name": "Microsoft.NETCore.App",
6 | "version": "9.0.0"
7 | },
8 | "configProperties": {
9 | "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
10 | }
11 | }
12 | }
```
--------------------------------------------------------------------------------
/clients/C# .Net/2.0 mcp_chat/bin/Debug/net9.0/mcp_chat.runtimeconfig.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "runtimeOptions": {
3 | "tfm": "net9.0",
4 | "framework": {
5 | "name": "Microsoft.NETCore.App",
6 | "version": "9.0.0"
7 | },
8 | "configProperties": {
9 | "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
10 | }
11 | }
12 | }
```
--------------------------------------------------------------------------------
/clients/C# .Net/2.1 mcp_continue_chat/bin/Debug/net9.0/mcp_continue_chat.runtimeconfig.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "runtimeOptions": {
3 | "tfm": "net9.0",
4 | "framework": {
5 | "name": "Microsoft.NETCore.App",
6 | "version": "9.0.0"
7 | },
8 | "configProperties": {
9 | "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
10 | }
11 | }
12 | }
```
--------------------------------------------------------------------------------
/clients/C# .Net/2.2 mcp_get_chat_info/bin/Debug/net9.0/mcp_get_chat_info.runtimeconfig.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "runtimeOptions": {
3 | "tfm": "net9.0",
4 | "framework": {
5 | "name": "Microsoft.NETCore.App",
6 | "version": "9.0.0"
7 | },
8 | "configProperties": {
9 | "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
10 | }
11 | }
12 | }
```
--------------------------------------------------------------------------------
/clients/C# .Net/3.0 mcp_create_source/bin/Debug/net9.0/mcp_create_source.runtimeconfig.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "runtimeOptions": {
3 | "tfm": "net9.0",
4 | "framework": {
5 | "name": "Microsoft.NETCore.App",
6 | "version": "9.0.0"
7 | },
8 | "configProperties": {
9 | "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
10 | }
11 | }
12 | }
```
--------------------------------------------------------------------------------
/clients/C# .Net/3.1 mcp_get_source/bin/Debug/net9.0/mcp_get_source.runtimeconfig.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "runtimeOptions": {
3 | "tfm": "net9.0",
4 | "framework": {
5 | "name": "Microsoft.NETCore.App",
6 | "version": "9.0.0"
7 | },
8 | "configProperties": {
9 | "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
10 | }
11 | }
12 | }
```
--------------------------------------------------------------------------------
/clients/C# .Net/3.2 mcp_list_sources/bin/Debug/net9.0/mcp_list_sources.runtimeconfig.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "runtimeOptions": {
3 | "tfm": "net9.0",
4 | "framework": {
5 | "name": "Microsoft.NETCore.App",
6 | "version": "9.0.0"
7 | },
8 | "configProperties": {
9 | "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
10 | }
11 | }
12 | }
```
--------------------------------------------------------------------------------
/clients/C# .Net/3.3 mcp_edit_source/bin/Debug/net9.0/mcp_edit_source.runtimeconfig.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "runtimeOptions": {
3 | "tfm": "net9.0",
4 | "framework": {
5 | "name": "Microsoft.NETCore.App",
6 | "version": "9.0.0"
7 | },
8 | "configProperties": {
9 | "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
10 | }
11 | }
12 | }
```
--------------------------------------------------------------------------------
/clients/C# .Net/3.4 mcp_delete_source/bin/Debug/net9.0/mcp_delete_source.runtimeconfig.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "runtimeOptions": {
3 | "tfm": "net9.0",
4 | "framework": {
5 | "name": "Microsoft.NETCore.App",
6 | "version": "9.0.0"
7 | },
8 | "configProperties": {
9 | "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
10 | }
11 | }
12 | }
```
--------------------------------------------------------------------------------
/clients/C# .Net/4.0 mcp_list_groups/bin/Debug/net9.0/mcp_list_groups.runtimeconfig.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "runtimeOptions": {
3 | "tfm": "net9.0",
4 | "framework": {
5 | "name": "Microsoft.NETCore.App",
6 | "version": "9.0.0"
7 | },
8 | "configProperties": {
9 | "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
10 | }
11 | }
12 | }
```
--------------------------------------------------------------------------------
/clients/C# .Net/4.1 mcp_store_group/bin/Debug/net9.0/mcp_store_group.runtimeconfig.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "runtimeOptions": {
3 | "tfm": "net9.0",
4 | "framework": {
5 | "name": "Microsoft.NETCore.App",
6 | "version": "9.0.0"
7 | },
8 | "configProperties": {
9 | "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
10 | }
11 | }
12 | }
```
--------------------------------------------------------------------------------
/clients/C# .Net/4.2 mcp_delete_group/bin/Debug/net9.0/mcp_delete_group.runtimeconfig.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "runtimeOptions": {
3 | "tfm": "net9.0",
4 | "framework": {
5 | "name": "Microsoft.NETCore.App",
6 | "version": "9.0.0"
7 | },
8 | "configProperties": {
9 | "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
10 | }
11 | }
12 | }
```
--------------------------------------------------------------------------------
/clients/C# .Net/5.0 mcp_store_user/bin/Debug/net9.0/mcp_store_user.runtimeconfig.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "runtimeOptions": {
3 | "tfm": "net9.0",
4 | "framework": {
5 | "name": "Microsoft.NETCore.App",
6 | "version": "9.0.0"
7 | },
8 | "configProperties": {
9 | "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
10 | }
11 | }
12 | }
```
--------------------------------------------------------------------------------
/clients/C# .Net/5.1 mcp_edit_user/bin/Debug/net9.0/mcp_edit_user.runtimeconfig.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "runtimeOptions": {
3 | "tfm": "net9.0",
4 | "framework": {
5 | "name": "Microsoft.NETCore.App",
6 | "version": "9.0.0"
7 | },
8 | "configProperties": {
9 | "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
10 | }
11 | }
12 | }
```
--------------------------------------------------------------------------------
/clients/C# .Net/5.2 mcp_delete_user/bin/Debug/net9.0/mcp_delete_user.runtimeconfig.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "runtimeOptions": {
3 | "tfm": "net9.0",
4 | "framework": {
5 | "name": "Microsoft.NETCore.App",
6 | "version": "9.0.0"
7 | },
8 | "configProperties": {
9 | "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
10 | }
11 | }
12 | }
```
--------------------------------------------------------------------------------
/agents/AgentInterface/Python/color.py:
--------------------------------------------------------------------------------
```python
1 | # color.py
2 | class Color:
3 | HEADER = '\033[95m'
4 | OKBLUE = '\033[94m'
5 | OKGREEN = '\033[92m'
6 | WARNING = '\033[93m'
7 | FAIL = '\033[91m'
8 | ENDC = '\033[0m'
9 |
10 | @staticmethod
11 | def color_text(text, color):
12 | return f"{color}{text}{Color.ENDC}"
13 |
```
--------------------------------------------------------------------------------
/agents/MCP-Client/Python/transport/stdio/stdio_server_parameters.py:
--------------------------------------------------------------------------------
```python
1 | # transport/stdio/stdio_server_parameters.py
2 | from pydantic import BaseModel, Field
3 | from typing import Any, Dict, Optional
4 |
5 | class StdioServerParameters(BaseModel):
6 | command: str
7 | args: list[str] = Field(default_factory=list)
8 | env: Optional[Dict[str, str]] = None
```
--------------------------------------------------------------------------------
/clients/Gradio/transport/stdio/stdio_server_parameters.py:
--------------------------------------------------------------------------------
```python
1 | # transport/stdio/stdio_server_parameters.py
2 | from pydantic import BaseModel, Field
3 | from typing import Any, Dict, Optional
4 |
5 | class StdioServerParameters(BaseModel):
6 | command: str
7 | args: list[str] = Field(default_factory=list)
8 | env: Optional[Dict[str, str]] = None
```
--------------------------------------------------------------------------------
/clients/C# .Net/1.0 mcp_login/obj/Debug/net9.0/mcp_login.GlobalUsings.g.cs:
--------------------------------------------------------------------------------
```csharp
1 | // <auto-generated/>
2 | global using global::System;
3 | global using global::System.Collections.Generic;
4 | global using global::System.IO;
5 | global using global::System.Linq;
6 | global using global::System.Net.Http;
7 | global using global::System.Threading;
8 | global using global::System.Threading.Tasks;
9 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/1.1 mcp_logout/obj/Debug/net9.0/mcp_logout.GlobalUsings.g.cs:
--------------------------------------------------------------------------------
```csharp
1 | // <auto-generated/>
2 | global using global::System;
3 | global using global::System.Collections.Generic;
4 | global using global::System.IO;
5 | global using global::System.Linq;
6 | global using global::System.Net.Http;
7 | global using global::System.Threading;
8 | global using global::System.Threading.Tasks;
9 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/2.0 mcp_chat/obj/Debug/net9.0/mcp_chat.GlobalUsings.g.cs:
--------------------------------------------------------------------------------
```csharp
1 | // <auto-generated/>
2 | global using global::System;
3 | global using global::System.Collections.Generic;
4 | global using global::System.IO;
5 | global using global::System.Linq;
6 | global using global::System.Net.Http;
7 | global using global::System.Threading;
8 | global using global::System.Threading.Tasks;
9 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/2.1 mcp_continue_chat/obj/Debug/net9.0/mcp_continue_chat.GlobalUsings.g.cs:
--------------------------------------------------------------------------------
```csharp
1 | // <auto-generated/>
2 | global using global::System;
3 | global using global::System.Collections.Generic;
4 | global using global::System.IO;
5 | global using global::System.Linq;
6 | global using global::System.Net.Http;
7 | global using global::System.Threading;
8 | global using global::System.Threading.Tasks;
9 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/2.2 mcp_get_chat_info/obj/Debug/net9.0/mcp_get_chat_info.GlobalUsings.g.cs:
--------------------------------------------------------------------------------
```csharp
1 | // <auto-generated/>
2 | global using global::System;
3 | global using global::System.Collections.Generic;
4 | global using global::System.IO;
5 | global using global::System.Linq;
6 | global using global::System.Net.Http;
7 | global using global::System.Threading;
8 | global using global::System.Threading.Tasks;
9 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/3.0 mcp_create_source/obj/Debug/net9.0/mcp_create_source.GlobalUsings.g.cs:
--------------------------------------------------------------------------------
```csharp
1 | // <auto-generated/>
2 | global using global::System;
3 | global using global::System.Collections.Generic;
4 | global using global::System.IO;
5 | global using global::System.Linq;
6 | global using global::System.Net.Http;
7 | global using global::System.Threading;
8 | global using global::System.Threading.Tasks;
9 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/3.1 mcp_get_source/obj/Debug/net9.0/mcp_get_source.GlobalUsings.g.cs:
--------------------------------------------------------------------------------
```csharp
1 | // <auto-generated/>
2 | global using global::System;
3 | global using global::System.Collections.Generic;
4 | global using global::System.IO;
5 | global using global::System.Linq;
6 | global using global::System.Net.Http;
7 | global using global::System.Threading;
8 | global using global::System.Threading.Tasks;
9 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/3.2 mcp_list_sources/obj/Debug/net9.0/mcp_list_sources.GlobalUsings.g.cs:
--------------------------------------------------------------------------------
```csharp
1 | // <auto-generated/>
2 | global using global::System;
3 | global using global::System.Collections.Generic;
4 | global using global::System.IO;
5 | global using global::System.Linq;
6 | global using global::System.Net.Http;
7 | global using global::System.Threading;
8 | global using global::System.Threading.Tasks;
9 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/3.3 mcp_edit_source/obj/Debug/net9.0/mcp_edit_source.GlobalUsings.g.cs:
--------------------------------------------------------------------------------
```csharp
1 | // <auto-generated/>
2 | global using global::System;
3 | global using global::System.Collections.Generic;
4 | global using global::System.IO;
5 | global using global::System.Linq;
6 | global using global::System.Net.Http;
7 | global using global::System.Threading;
8 | global using global::System.Threading.Tasks;
9 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/3.4 mcp_delete_source/obj/Debug/net9.0/mcp_delete_source.GlobalUsings.g.cs:
--------------------------------------------------------------------------------
```csharp
1 | // <auto-generated/>
2 | global using global::System;
3 | global using global::System.Collections.Generic;
4 | global using global::System.IO;
5 | global using global::System.Linq;
6 | global using global::System.Net.Http;
7 | global using global::System.Threading;
8 | global using global::System.Threading.Tasks;
9 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/4.0 mcp_list_groups/obj/Debug/net9.0/mcp_list_groups.GlobalUsings.g.cs:
--------------------------------------------------------------------------------
```csharp
1 | // <auto-generated/>
2 | global using global::System;
3 | global using global::System.Collections.Generic;
4 | global using global::System.IO;
5 | global using global::System.Linq;
6 | global using global::System.Net.Http;
7 | global using global::System.Threading;
8 | global using global::System.Threading.Tasks;
9 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/4.1 mcp_store_group/obj/Debug/net9.0/mcp_store_group.GlobalUsings.g.cs:
--------------------------------------------------------------------------------
```csharp
1 | // <auto-generated/>
2 | global using global::System;
3 | global using global::System.Collections.Generic;
4 | global using global::System.IO;
5 | global using global::System.Linq;
6 | global using global::System.Net.Http;
7 | global using global::System.Threading;
8 | global using global::System.Threading.Tasks;
9 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/4.2 mcp_delete_group/obj/Debug/net9.0/mcp_delete_group.GlobalUsings.g.cs:
--------------------------------------------------------------------------------
```csharp
1 | // <auto-generated/>
2 | global using global::System;
3 | global using global::System.Collections.Generic;
4 | global using global::System.IO;
5 | global using global::System.Linq;
6 | global using global::System.Net.Http;
7 | global using global::System.Threading;
8 | global using global::System.Threading.Tasks;
9 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/5.0 mcp_store_user/obj/Debug/net9.0/mcp_store_user.GlobalUsings.g.cs:
--------------------------------------------------------------------------------
```csharp
1 | // <auto-generated/>
2 | global using global::System;
3 | global using global::System.Collections.Generic;
4 | global using global::System.IO;
5 | global using global::System.Linq;
6 | global using global::System.Net.Http;
7 | global using global::System.Threading;
8 | global using global::System.Threading.Tasks;
9 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/5.1 mcp_edit_user/obj/Debug/net9.0/mcp_edit_user.GlobalUsings.g.cs:
--------------------------------------------------------------------------------
```csharp
1 | // <auto-generated/>
2 | global using global::System;
3 | global using global::System.Collections.Generic;
4 | global using global::System.IO;
5 | global using global::System.Linq;
6 | global using global::System.Net.Http;
7 | global using global::System.Threading;
8 | global using global::System.Threading.Tasks;
9 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/5.2 mcp_delete_user/obj/Debug/net9.0/mcp_delete_user.GlobalUsings.g.cs:
--------------------------------------------------------------------------------
```csharp
1 | // <auto-generated/>
2 | global using global::System;
3 | global using global::System.Collections.Generic;
4 | global using global::System.IO;
5 | global using global::System.Linq;
6 | global using global::System.Net.Http;
7 | global using global::System.Threading;
8 | global using global::System.Threading.Tasks;
9 |
```
--------------------------------------------------------------------------------
/examples/example_users_to_add_no_tz.csv:
--------------------------------------------------------------------------------
```
1 | name;email;language;password;usePublic;groups;roles;activateFtp;ftpPassword
2 | _api_test_5;[email protected];de;PrePost__2025;True;["A"];["system", "documents"];True;myFTP-Password1337
3 | _api_test_6;[email protected];de;PrePost__2025!;True;[""];["system", "documents"];True;myFTP-Password1337
4 |
```
--------------------------------------------------------------------------------
/clients/Gradio/mcp_servers/arxiv/server_config.example.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "mcpServers": {
3 | "demo-tools": {
4 | "command": "node",
5 | "args": [
6 | "clients/Gradio/mcp_servers/demo-mcp-server/demo-tools-stdio.js"
7 | ]
8 | },
9 | "arxiv": {
10 | "command": "node",
11 | "args": [
12 | "clients/Gradio/mcp_servers/arxiv/arxiv-stdio.js"
13 | ]
14 | }
15 | }
16 | }
17 |
```
--------------------------------------------------------------------------------
/agents/MCP-Client/Python/messages/message_types/ping_message.py:
--------------------------------------------------------------------------------
```python
1 | # messages/message_types/ping_message.py
2 | from ...messages.message_types.incrementing_id_message import IncrementingIDMessage
3 |
4 | class PingMessage(IncrementingIDMessage):
5 | def __init__(self, start_id: int = None, **kwargs):
6 | super().__init__(prefix="ping", method="ping", start_id=start_id, **kwargs)
7 |
```
--------------------------------------------------------------------------------
/clients/Gradio/messages/message_types/ping_message.py:
--------------------------------------------------------------------------------
```python
1 | # messages/message_types/ping_message.py
2 | from ...messages.message_types.incrementing_id_message import IncrementingIDMessage
3 |
4 | class PingMessage(IncrementingIDMessage):
5 | def __init__(self, start_id: int = None, **kwargs):
6 | super().__init__(prefix="ping", method="ping", start_id=start_id, **kwargs)
7 |
```
--------------------------------------------------------------------------------
/start_chatbot_agent.ps1:
--------------------------------------------------------------------------------
```
1 | # Ensure all Python dependencies are installed
2 | Write-Host "Ensuring that all Python dependencies are installed."
3 | #pip install -r <directory> requirements.txt
4 |
5 | # Execute the Python command to start the chatbot agent
6 | Write-Host "Starting the ChatBot Agent..."
7 | python -m agents.ChatBotAgent.Python.chatbot_agent
8 |
```
--------------------------------------------------------------------------------
/start_chatbot_agent.sh:
--------------------------------------------------------------------------------
```bash
1 | #!/bin/bash
2 |
3 | # Ensure all Python dependencies are installed
4 | echo "Ensuring that all Python dependencies are installed."
5 | #pip install -r <directory> requirements.txt
6 |
7 | # Execute the Python command to start the chatbot agent
8 | echo "Starting the ChatBot Agent..."
9 | python -m agents.ChatBotAgent.Python.chatbot_agent
10 |
```
--------------------------------------------------------------------------------
/clients/Gradio/mcp_servers/arxiv/package.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "name": "arxiv-mcp-server-wrapper",
3 | "version": "1.0.0",
4 | "description": "Node.js wrapper for the arXiv MCP Server",
5 | "main": "arxiv-stdio.js",
6 | "scripts": {
7 | "start": "node arxiv-stdio.js"
8 | },
9 | "dependencies": {
10 | "node-fetch": "^2.6.0"
11 | },
12 | "engines": {
13 | "node": ">=16.0.0"
14 | },
15 | "private": true
16 | }
17 |
```
--------------------------------------------------------------------------------
/clients/Gradio/tsconfig.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "compilerOptions": {
3 | "target": "ES2022",
4 | "module": "Node16",
5 | "moduleResolution": "Node16",
6 | "strict": true,
7 | "esModuleInterop": true,
8 | "skipLibCheck": true,
9 | "forceConsistentCasingInFileNames": true,
10 | "resolveJsonModule": true
11 | },
12 | "include": ["src/**/*"],
13 | "exclude": ["node_modules"]
14 | }
15 |
```
--------------------------------------------------------------------------------
/start_iot_agent.ps1:
--------------------------------------------------------------------------------
```
1 | # Ensure all Python dependencies are installed
2 | Write-Host "Ensuring that all Python dependencies are installed."
3 | #pip install -r <directory> requirements.txt
4 |
5 | # Execute the Python command with the specified config file
6 | Write-Host "Starting the IoT MQTT Agent..."
7 | python -m agents.IoTAgent.Python.iot_mqtt_agent --config agents\IoTAgent\config.json
8 |
```
--------------------------------------------------------------------------------
/start_iot_agent.sh:
--------------------------------------------------------------------------------
```bash
1 | #!/bin/bash
2 |
3 | # Ensure all Python dependencies are installed
4 | echo "Ensuring that all Python dependencies are installed."
5 | # pip install -r <directory> requirements.txt
6 |
7 | # Execute the Python command with the specified config file
8 | echo "Starting the IoT MQTT Agent..."
9 | python -m agents.IoTAgent.Python.iot_mqtt_agent --config agents/IoTAgent/config.json
10 |
```
--------------------------------------------------------------------------------
/clients/Gradio/mcp_servers/sqlite/pyproject.toml:
--------------------------------------------------------------------------------
```toml
1 | [project]
2 | name = "mcp-server-sqlite"
3 | version = "0.6.2"
4 | description = "A simple SQLite MCP server"
5 | readme = "README.md"
6 | requires-python = ">=3.10"
7 | dependencies = ["mcp>=1.0.0"]
8 |
9 | [build-system]
10 | requires = ["hatchling"]
11 | build-backend = "hatchling.build"
12 |
13 | [tool.uv]
14 | dev-dependencies = ["pyright>=1.1.389"]
15 |
16 | [project.scripts]
17 | mcp-server-sqlite = "mcp_server_sqlite:main"
18 |
```
--------------------------------------------------------------------------------
/clients/Gradio/mcp_servers/demo-mcp-server/tools/weather.js:
--------------------------------------------------------------------------------
```javascript
1 | export{ weather }
2 | process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
3 |
4 | async function weather(args){
5 | const apiUrl = "https://wttr.in/" + encodeURIComponent(args.location)+ "?format=\"%t+%C+%h+%w\n\""
6 | const result = await fetch(apiUrl)
7 | .then(response => response.text());
8 | return {
9 | content: [{ type: "text", text: `${result}` }],
10 | };
11 | }
12 |
13 |
```
--------------------------------------------------------------------------------
/agents/MCP-Client/Python/messages/message_types/resources_messages.py:
--------------------------------------------------------------------------------
```python
1 | # messages/message_types/resources_messages.py
2 | from typing import ClassVar
3 | from ...messages.message_types.incrementing_id_message import IncrementingIDMessage
4 |
5 | class ResourcesListMessage(IncrementingIDMessage):
6 | def __init__(self, start_id: int = None, **kwargs):
7 | super().__init__(prefix="resources-list", method="resources/list", start_id=start_id, **kwargs)
8 |
```
--------------------------------------------------------------------------------
/clients/Gradio/messages/message_types/resources_messages.py:
--------------------------------------------------------------------------------
```python
1 | # messages/message_types/resources_messages.py
2 | from typing import ClassVar
3 | from ...messages.message_types.incrementing_id_message import IncrementingIDMessage
4 |
5 | class ResourcesListMessage(IncrementingIDMessage):
6 | def __init__(self, start_id: int = None, **kwargs):
7 | super().__init__(prefix="resources-list", method="resources/list", start_id=start_id, **kwargs)
8 |
```
--------------------------------------------------------------------------------
/agents/MCP-Client/Python/messages/message_types/json_rpc_message.py:
--------------------------------------------------------------------------------
```python
1 | # messages/message_types/json_rpc_message.py
2 | from typing import Any, Dict, Optional
3 | from pydantic import BaseModel, ConfigDict
4 |
5 | class JSONRPCMessage(BaseModel):
6 | jsonrpc: str = "2.0"
7 | id: Optional[str] = None
8 | method: Optional[str] = None
9 | params: Optional[Dict[str, Any]] = None
10 | result: Optional[Dict[str, Any]] = None
11 | error: Optional[Dict[str, Any]] = None
12 |
13 | model_config = ConfigDict(extra="allow")
```
--------------------------------------------------------------------------------
/clients/Gradio/messages/message_types/json_rpc_message.py:
--------------------------------------------------------------------------------
```python
1 | # messages/message_types/json_rpc_message.py
2 | from typing import Any, Dict, Optional
3 | from pydantic import BaseModel, ConfigDict
4 |
5 | class JSONRPCMessage(BaseModel):
6 | jsonrpc: str = "2.0"
7 | id: Optional[str] = None
8 | method: Optional[str] = None
9 | params: Optional[Dict[str, Any]] = None
10 | result: Optional[Dict[str, Any]] = None
11 | error: Optional[Dict[str, Any]] = None
12 |
13 | model_config = ConfigDict(extra="allow")
```
--------------------------------------------------------------------------------
/clients/Gradio/mcp_servers/pgpt/pyproject.toml:
--------------------------------------------------------------------------------
```toml
1 | [project]
2 | name = "mcp-server-nostr"
3 | version = "1.0.0"
4 | description = "Model Context Protocol server to access PrivateGPT"
5 | authors = [
6 | { name = "Tobias Baur", email = "[email protected]" }
7 | ]
8 | readme = "README.md"
9 | requires-python = ">=3.12"
10 | dependencies = [
11 | "mcp[cli]>=1.5.0",
12 | "python-dotenv>=1.0.1",
13 | ]
14 |
15 | [project.scripts]
16 | mcp-server-nostr = "server:main"
17 | dev = "server:dev"
18 |
19 | [build-system]
20 | requires = ["hatchling"]
21 | build-backend = "hatchling.build"
22 |
```
--------------------------------------------------------------------------------
/clients/Gradio/mcp_servers/sqlite/src/mcp_server_sqlite/__init__.py:
--------------------------------------------------------------------------------
```python
1 | from . import server
2 | import asyncio
3 | import argparse
4 |
5 |
6 | def main():
7 | """Main entry point for the package."""
8 | parser = argparse.ArgumentParser(description='SQLite MCP Server')
9 | parser.add_argument('--db-path',
10 | default="./sqlite_mcp_server.db",
11 | help='Path to SQLite database file')
12 |
13 | args = parser.parse_args()
14 | asyncio.run(server.main(args.db_path))
15 |
16 |
17 | # Optionally expose other important items at package level
18 | __all__ = ["main", "server"]
19 |
```
--------------------------------------------------------------------------------
/agents/ISMAgent/PGPT Scenario Prompts/ISM User Pre-Prompt - Detecting Error State.txt:
--------------------------------------------------------------------------------
```
1 | Objective:
2 | Generate a focused operational summary of all nodes currently in Error state, highlighting their location, affected systems, and next actions required.
3 |
4 | Scope:
5 | Include only nodes with AlarmStatus = Error, showing:
6 |
7 | Identification (Node, Type, Model, Location, Group)
8 | Current operational and power status
9 | Detected or inferred issue
10 |
11 | Recommended next step
12 |
13 | Deliverable:
14 | A concise, human-readable structured table (not Markdown), sorted by Group or Location, enabling IT staff to see at a glance where action is needed.
15 |
```
--------------------------------------------------------------------------------
/agents/ISMAgent/requirements.txt:
--------------------------------------------------------------------------------
```
1 | # ============================================================
2 | # ISM Agent – Python Requirements
3 | # ============================================================
4 |
5 | # HTTP Requests / REST-Kommunikation
6 | requests>=2.31.0
7 |
8 | # SSH / Paramiko (falls Remotezugriffe verwendet werden)
9 | paramiko>=3.4.0
10 |
11 | # Argument Parser (CLI)
12 | argparse>=1.4.0
13 |
14 | # Logging und Zeitfunktionen
15 | logging>=0.4.9.6
16 | datetime>=5.5
17 |
18 | # PDF-Unterstützung (optional, für JSON im PDF)
19 | PyPDF2>=3.0.1
20 |
21 | # Farbige Konsole (ANSI, auch für Windows)
22 | colorama>=0.4.6
23 | wcwidth>=0.2.13
24 |
```
--------------------------------------------------------------------------------
/clients/Gradio/mcp_servers/filesystem/Dockerfile:
--------------------------------------------------------------------------------
```dockerfile
1 | FROM node:22.12-alpine AS builder
2 |
3 | WORKDIR /app
4 |
5 | COPY src/filesystem /app
6 | COPY tsconfig.json /tsconfig.json
7 |
8 | RUN --mount=type=cache,target=/root/.npm npm install
9 |
10 | RUN --mount=type=cache,target=/root/.npm-production npm ci --ignore-scripts --omit-dev
11 |
12 |
13 | FROM node:22-alpine AS release
14 |
15 | WORKDIR /app
16 |
17 | COPY --from=builder /app/dist /app/dist
18 | COPY --from=builder /app/package.json /app/package.json
19 | COPY --from=builder /app/package-lock.json /app/package-lock.json
20 |
21 | ENV NODE_ENV=production
22 |
23 | RUN npm ci --ignore-scripts --omit-dev
24 |
25 | ENTRYPOINT ["node", "/app/dist/index.js"]
```
--------------------------------------------------------------------------------
/agents/MCP-Client/Python/messages/send_ping.py:
--------------------------------------------------------------------------------
```python
1 | # messages/send_ping.py
2 | from anyio.streams.memory import MemoryObjectReceiveStream, MemoryObjectSendStream
3 | from .send_message import send_message
4 | from .message_types.ping_message import PingMessage
5 |
6 | async def send_ping(
7 | read_stream: MemoryObjectReceiveStream,
8 | write_stream: MemoryObjectSendStream,
9 | ) -> bool:
10 | # create a ping message
11 | ping_msg = PingMessage()
12 |
13 | # send the message
14 | response = await send_message(
15 | read_stream=read_stream,
16 | write_stream=write_stream,
17 | message=ping_msg
18 | )
19 |
20 | # return the response
21 | return response is not None
22 |
```
--------------------------------------------------------------------------------
/clients/Gradio/messages/send_ping.py:
--------------------------------------------------------------------------------
```python
1 | # messages/send_ping.py
2 | from anyio.streams.memory import MemoryObjectReceiveStream, MemoryObjectSendStream
3 | from .send_message import send_message
4 | from .message_types.ping_message import PingMessage
5 |
6 | async def send_ping(
7 | read_stream: MemoryObjectReceiveStream,
8 | write_stream: MemoryObjectSendStream,
9 | ) -> bool:
10 | # create a ping message
11 | ping_msg = PingMessage()
12 |
13 | # send the message
14 | response = await send_message(
15 | read_stream=read_stream,
16 | write_stream=write_stream,
17 | message=ping_msg
18 | )
19 |
20 | # return the response
21 | return response is not None
22 |
```
--------------------------------------------------------------------------------
/agents/AgentMonitoring/prometheus Example.yml:
--------------------------------------------------------------------------------
```yaml
1 | global:
2 | # Global default values for query and evaluation intervals
3 | scrape_interval: 15s
4 | evaluation_interval: 15s
5 |
6 | # Change the destination IPs and ports in accordance with the configuration files of your agent.
7 | scrape_configs:
8 | - job_name: 'OpenAI-comp-API-Agent'
9 | scrape_interval: 5s
10 | static_configs:
11 | - targets:
12 | - '192.168.123.123:7777'
13 |
14 | - job_name: 'ChatBot-Agent'
15 | scrape_interval: 5s
16 | static_configs:
17 | - targets:
18 | - '192.168.123.123:5001'
19 |
20 | - job_name: 'IoT_MQTT_Agent'
21 | scrape_interval: 5s
22 | static_configs:
23 | - targets:
24 | - '192.168.123.123:9101'
```
--------------------------------------------------------------------------------
/agents/MCP-Client/Python/messages/send_tools_list.py:
--------------------------------------------------------------------------------
```python
1 | # mcpcli/messages/tools.py
2 | from anyio.streams.memory import MemoryObjectReceiveStream, MemoryObjectSendStream
3 | from .send_message import send_message
4 | from .message_types.tools_messages import ToolsListMessage
5 |
6 | async def send_tools_list(
7 | read_stream: MemoryObjectReceiveStream,
8 | write_stream: MemoryObjectSendStream,
9 | ) -> list:
10 | # create the tools list message
11 | message = ToolsListMessage()
12 |
13 | # send the message
14 | response = await send_message(
15 | read_stream=read_stream,
16 | write_stream=write_stream,
17 | message=message,
18 | )
19 |
20 | # get the response
21 | return response.get("result", [])
22 |
```
--------------------------------------------------------------------------------
/clients/Gradio/messages/send_tools_list.py:
--------------------------------------------------------------------------------
```python
1 | # mcpcli/messages/tools.py
2 | from anyio.streams.memory import MemoryObjectReceiveStream, MemoryObjectSendStream
3 | from .send_message import send_message
4 | from .message_types.tools_messages import ToolsListMessage
5 |
6 | async def send_tools_list(
7 | read_stream: MemoryObjectReceiveStream,
8 | write_stream: MemoryObjectSendStream,
9 | ) -> list:
10 | # create the tools list message
11 | message = ToolsListMessage()
12 |
13 | # send the message
14 | response = await send_message(
15 | read_stream=read_stream,
16 | write_stream=write_stream,
17 | message=message,
18 | )
19 |
20 | # get the response
21 | return response.get("result", [])
22 |
```
--------------------------------------------------------------------------------
/agents/MCP-Client/server_config.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "mcpServers":
3 | {
4 | "demo-tools": {
5 | "command": "node",
6 | "args": [
7 | "clients/Gradio/mcp_servers/demo-mcp-server/demo-tools-stdio.js"
8 | ]
9 | },
10 | "filesystem": {
11 | "command": "node",
12 | "args": [
13 | "clients/Gradio/mcp_servers/filesystem/dist/index.js",
14 | "clients/Gradio/mcp_servers/filesystem/test"
15 | ]
16 | },
17 |
18 | "sqlite": {
19 | "command": "uv",
20 | "args": [
21 | "--directory",
22 | "clients/Gradio/mcp_servers/sqlite",
23 | "run",
24 | "mcp-server-sqlite",
25 | "--db-path",
26 | "test.db"
27 | ]
28 | }
29 | }
30 | }
31 |
```
--------------------------------------------------------------------------------
/agents/MCP-Client/Python/messages/send_prompts.py:
--------------------------------------------------------------------------------
```python
1 | # messages/prompts.py
2 | from anyio.streams.memory import MemoryObjectReceiveStream, MemoryObjectSendStream
3 | from .send_message import send_message
4 | from .message_types.prompts_messages import PromptsListMessage
5 |
6 | async def send_prompts_list(
7 | read_stream: MemoryObjectReceiveStream,
8 | write_stream: MemoryObjectSendStream,
9 | ) -> list:
10 | """Send a 'prompts/list' message and return the list of prompts."""
11 | message = PromptsListMessage()
12 |
13 | # send the message
14 | response = await send_message(
15 | read_stream=read_stream,
16 | write_stream=write_stream,
17 | message=message,
18 | )
19 |
20 | # return the result
21 | return response.get("result", [])
22 |
```
--------------------------------------------------------------------------------
/clients/Gradio/messages/send_prompts.py:
--------------------------------------------------------------------------------
```python
1 | # messages/prompts.py
2 | from anyio.streams.memory import MemoryObjectReceiveStream, MemoryObjectSendStream
3 | from .send_message import send_message
4 | from .message_types.prompts_messages import PromptsListMessage
5 |
6 | async def send_prompts_list(
7 | read_stream: MemoryObjectReceiveStream,
8 | write_stream: MemoryObjectSendStream,
9 | ) -> list:
10 | """Send a 'prompts/list' message and return the list of prompts."""
11 | message = PromptsListMessage()
12 |
13 | # send the message
14 | response = await send_message(
15 | read_stream=read_stream,
16 | write_stream=write_stream,
17 | message=message,
18 | )
19 |
20 | # return the result
21 | return response.get("result", [])
22 |
```
--------------------------------------------------------------------------------
/jest.config.js:
--------------------------------------------------------------------------------
```javascript
1 | /** @type {import('ts-jest').JestConfigWithTsJest} */
2 | export default {
3 | preset: 'ts-jest',
4 | testEnvironment: 'node',
5 | extensionsToTreatAsEsm: ['.ts'],
6 | moduleNameMapper: {
7 | '^(\\.{1,2}/.*)\\.js$': '$1',
8 | },
9 | transform: {
10 | '^.+\\.tsx?$': [
11 | 'ts-jest',
12 | {
13 | useESM: true,
14 | },
15 | ],
16 | },
17 | testMatch: [
18 | '**/tests/**/*.test.ts'
19 | ],
20 | collectCoverage: true,
21 | coverageDirectory: 'coverage',
22 | coveragePathIgnorePatterns: [
23 | '/node_modules/',
24 | '/tests/',
25 | '/dist/'
26 | ],
27 | verbose: true,
28 | testTimeout: 30000,
29 | setupFiles: ['dotenv/config'],
30 | globals: {
31 | 'ts-jest': {
32 | tsconfig: 'tsconfig.json',
33 | useESM: true,
34 | },
35 | },
36 | };
37 |
```
--------------------------------------------------------------------------------
/examples/sftp_upload_with_id/demo_upload.py:
--------------------------------------------------------------------------------
```python
1 | from pathlib import Path
2 |
3 | from clients.Gradio.Api import PrivateGPTAPI
4 | from clients.Gradio.config import Config
5 |
6 | config_file = Path.absolute(Path(__file__).parent / "config_ftp.json")
7 | # Initialize configuration with required fields
8 | config = Config(config_file=config_file, required_fields=["base_url"])
9 |
10 | target_groups = ["PrivateGPT"] #make sure group(s) exist in PrivateGPT
11 |
12 | pgpt = PrivateGPTAPI(config)
13 |
14 | pgpt.upload_sftp("path_to_file.pdf")
15 | documents = pgpt.get_sources_from_group(pgpt.ftp_subfolder)
16 | first_document_id = documents[0]["sourceId"]
17 | print(first_document_id)
18 |
19 | pgpt.update_source(first_document_id, groups=target_groups)
20 | print(pgpt.get_document_info(first_document_id))
21 |
22 |
23 |
```
--------------------------------------------------------------------------------
/agents/MCP-Client/Python/messages/send_resources.py:
--------------------------------------------------------------------------------
```python
1 | # messages/send_resources.py
2 | from anyio.streams.memory import MemoryObjectReceiveStream, MemoryObjectSendStream
3 | from .send_message import send_message
4 | from .message_types.resources_messages import ResourcesListMessage
5 |
6 | async def send_resources_list(
7 | read_stream: MemoryObjectReceiveStream,
8 | write_stream: MemoryObjectSendStream,
9 | ) -> list:
10 | """Send a 'resources/list' message and return the list of resources."""
11 | # create the message
12 | message = ResourcesListMessage()
13 |
14 | # send the message
15 | response = await send_message(
16 | read_stream=read_stream,
17 | write_stream=write_stream,
18 | message=message,
19 | )
20 |
21 | # return the result
22 | return response.get("result", [])
23 |
```
--------------------------------------------------------------------------------
/clients/Gradio/messages/send_resources.py:
--------------------------------------------------------------------------------
```python
1 | # messages/send_resources.py
2 | from anyio.streams.memory import MemoryObjectReceiveStream, MemoryObjectSendStream
3 | from .send_message import send_message
4 | from .message_types.resources_messages import ResourcesListMessage
5 |
6 | async def send_resources_list(
7 | read_stream: MemoryObjectReceiveStream,
8 | write_stream: MemoryObjectSendStream,
9 | ) -> list:
10 | """Send a 'resources/list' message and return the list of resources."""
11 | # create the message
12 | message = ResourcesListMessage()
13 |
14 | # send the message
15 | response = await send_message(
16 | read_stream=read_stream,
17 | write_stream=write_stream,
18 | message=message,
19 | )
20 |
21 | # return the result
22 | return response.get("result", [])
23 |
```
--------------------------------------------------------------------------------
/agents/MCP-Client/Python/messages/message_types/incrementing_id_message.py:
--------------------------------------------------------------------------------
```python
1 | # messages/message_types/incrementing_id_message.py
2 | from typing import ClassVar
3 | from ...messages.message_types.json_rpc_message import JSONRPCMessage
4 |
5 | class IncrementingIDMessage(JSONRPCMessage):
6 | counter: ClassVar[int] = 0
7 |
8 | @classmethod
9 | def load_counter(cls, value: int):
10 | cls.counter = value
11 |
12 | @classmethod
13 | def save_counter(cls) -> int:
14 | return cls.counter
15 |
16 | def __init__(self, prefix: str, method: str, start_id: int = None, **kwargs):
17 | if start_id is not None:
18 | type(self).counter = start_id
19 | else:
20 | type(self).counter += 1
21 |
22 | message_id = f"{prefix}-{type(self).counter}"
23 | super().__init__(method=method, id=message_id, **kwargs)
24 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/2.0 mcp_chat/obj/Debug/net9.0/mcp_chat.GeneratedMSBuildEditorConfig.editorconfig:
--------------------------------------------------------------------------------
```
1 | is_global = true
2 | build_property.TargetFramework = net9.0
3 | build_property.TargetPlatformMinVersion =
4 | build_property.UsingMicrosoftNETSdkWeb =
5 | build_property.ProjectTypeGuids =
6 | build_property.InvariantGlobalization =
7 | build_property.PlatformNeutralAssembly =
8 | build_property.EnforceExtendedAnalyzerRules =
9 | build_property._SupportedPlatformList = Linux,macOS,Windows
10 | build_property.RootNamespace = mcp_chat
11 | build_property.ProjectDir = c:\Users\uwuertz\Documents\GitHub\MCP-Server-for-MAS-Developments\clients\C# .Net\2.0 mcp_chat\
12 | build_property.EnableComHosting =
13 | build_property.EnableGeneratedComInterfaceComImportInterop =
14 | build_property.EffectiveAnalysisLevelStyle = 9.0
15 | build_property.EnableCodeStyleSeverity =
16 |
```
--------------------------------------------------------------------------------
/clients/Gradio/messages/message_types/incrementing_id_message.py:
--------------------------------------------------------------------------------
```python
1 | # messages/message_types/incrementing_id_message.py
2 | from typing import ClassVar
3 | from ...messages.message_types.json_rpc_message import JSONRPCMessage
4 |
5 | class IncrementingIDMessage(JSONRPCMessage):
6 | counter: ClassVar[int] = 0
7 |
8 | @classmethod
9 | def load_counter(cls, value: int):
10 | cls.counter = value
11 |
12 | @classmethod
13 | def save_counter(cls) -> int:
14 | return cls.counter
15 |
16 | def __init__(self, prefix: str, method: str, start_id: int = None, **kwargs):
17 | if start_id is not None:
18 | type(self).counter = start_id
19 | else:
20 | type(self).counter += 1
21 |
22 | message_id = f"{prefix}-{type(self).counter}"
23 | super().__init__(method=method, id=message_id, **kwargs)
24 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/1.0 mcp_login/obj/Debug/net9.0/mcp_login.GeneratedMSBuildEditorConfig.editorconfig:
--------------------------------------------------------------------------------
```
1 | is_global = true
2 | build_property.TargetFramework = net9.0
3 | build_property.TargetPlatformMinVersion =
4 | build_property.UsingMicrosoftNETSdkWeb =
5 | build_property.ProjectTypeGuids =
6 | build_property.InvariantGlobalization =
7 | build_property.PlatformNeutralAssembly =
8 | build_property.EnforceExtendedAnalyzerRules =
9 | build_property._SupportedPlatformList = Linux,macOS,Windows
10 | build_property.RootNamespace = mcp_login
11 | build_property.ProjectDir = c:\Users\uwuertz\Documents\GitHub\MCP-Server-for-MAS-Developments\clients\C# .Net\1.0 mcp_login\
12 | build_property.EnableComHosting =
13 | build_property.EnableGeneratedComInterfaceComImportInterop =
14 | build_property.EffectiveAnalysisLevelStyle = 9.0
15 | build_property.EnableCodeStyleSeverity =
16 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/1.1 mcp_logout/obj/Debug/net9.0/mcp_logout.GeneratedMSBuildEditorConfig.editorconfig:
--------------------------------------------------------------------------------
```
1 | is_global = true
2 | build_property.TargetFramework = net9.0
3 | build_property.TargetPlatformMinVersion =
4 | build_property.UsingMicrosoftNETSdkWeb =
5 | build_property.ProjectTypeGuids =
6 | build_property.InvariantGlobalization =
7 | build_property.PlatformNeutralAssembly =
8 | build_property.EnforceExtendedAnalyzerRules =
9 | build_property._SupportedPlatformList = Linux,macOS,Windows
10 | build_property.RootNamespace = mcp_logout
11 | build_property.ProjectDir = c:\Users\uwuertz\Documents\GitHub\MCP-Server-for-MAS-Developments\clients\C# .Net\1.1 mcp_logout\
12 | build_property.EnableComHosting =
13 | build_property.EnableGeneratedComInterfaceComImportInterop =
14 | build_property.EffectiveAnalysisLevelStyle = 9.0
15 | build_property.EnableCodeStyleSeverity =
16 |
```
--------------------------------------------------------------------------------
/agents/OpenAI_Compatible_API_Agent/Dockerfile:
--------------------------------------------------------------------------------
```dockerfile
1 | # Use an official Python runtime as a parent image
2 | FROM python:3.12
3 |
4 | # Set the working directory in the container
5 | WORKDIR ./
6 |
7 | # Copy the requirements file into the container
8 | COPY agents/OpenAI_Compatible_API_Agent/requirements.txt ./
9 |
10 | # Install any needed packages specified in requirements.txt
11 | RUN pip install --no-cache-dir -r requirements.txt
12 |
13 | # Copy the rest of the application code into the container
14 | COPY ./agents/OpenAI_Compatible_API_Agent/ ./agents/OpenAI_Compatible_API_Agent/
15 | # Copy the AgentInterface code into the container
16 | COPY ./agents/AgentInterface/ ./agents/AgentInterface/
17 |
18 |
19 | # Define the command to run the application
20 | CMD ["python", "-m", "agents.OpenAI_Compatible_API_Agent.Python.openai_compatible_api"]
21 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/5.1 mcp_edit_user/obj/Debug/net9.0/mcp_edit_user.GeneratedMSBuildEditorConfig.editorconfig:
--------------------------------------------------------------------------------
```
1 | is_global = true
2 | build_property.TargetFramework = net9.0
3 | build_property.TargetPlatformMinVersion =
4 | build_property.UsingMicrosoftNETSdkWeb =
5 | build_property.ProjectTypeGuids =
6 | build_property.InvariantGlobalization =
7 | build_property.PlatformNeutralAssembly =
8 | build_property.EnforceExtendedAnalyzerRules =
9 | build_property._SupportedPlatformList = Linux,macOS,Windows
10 | build_property.RootNamespace = mcp_edit_user
11 | build_property.ProjectDir = c:\Users\uwuertz\Documents\GitHub\MCP-Server-for-MAS-Developments\clients\C# .Net\5.1 mcp_edit_user\
12 | build_property.EnableComHosting =
13 | build_property.EnableGeneratedComInterfaceComImportInterop =
14 | build_property.EffectiveAnalysisLevelStyle = 9.0
15 | build_property.EnableCodeStyleSeverity =
16 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/3.1 mcp_get_source/obj/Debug/net9.0/mcp_get_source.GeneratedMSBuildEditorConfig.editorconfig:
--------------------------------------------------------------------------------
```
1 | is_global = true
2 | build_property.TargetFramework = net9.0
3 | build_property.TargetPlatformMinVersion =
4 | build_property.UsingMicrosoftNETSdkWeb =
5 | build_property.ProjectTypeGuids =
6 | build_property.InvariantGlobalization =
7 | build_property.PlatformNeutralAssembly =
8 | build_property.EnforceExtendedAnalyzerRules =
9 | build_property._SupportedPlatformList = Linux,macOS,Windows
10 | build_property.RootNamespace = mcp_get_source
11 | build_property.ProjectDir = c:\Users\uwuertz\Documents\GitHub\MCP-Server-for-MAS-Developments\clients\C# .Net\3.1 mcp_get_source\
12 | build_property.EnableComHosting =
13 | build_property.EnableGeneratedComInterfaceComImportInterop =
14 | build_property.EffectiveAnalysisLevelStyle = 9.0
15 | build_property.EnableCodeStyleSeverity =
16 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/5.0 mcp_store_user/obj/Debug/net9.0/mcp_store_user.GeneratedMSBuildEditorConfig.editorconfig:
--------------------------------------------------------------------------------
```
1 | is_global = true
2 | build_property.TargetFramework = net9.0
3 | build_property.TargetPlatformMinVersion =
4 | build_property.UsingMicrosoftNETSdkWeb =
5 | build_property.ProjectTypeGuids =
6 | build_property.InvariantGlobalization =
7 | build_property.PlatformNeutralAssembly =
8 | build_property.EnforceExtendedAnalyzerRules =
9 | build_property._SupportedPlatformList = Linux,macOS,Windows
10 | build_property.RootNamespace = mcp_store_user
11 | build_property.ProjectDir = c:\Users\uwuertz\Documents\GitHub\MCP-Server-for-MAS-Developments\clients\C# .Net\5.0 mcp_store_user\
12 | build_property.EnableComHosting =
13 | build_property.EnableGeneratedComInterfaceComImportInterop =
14 | build_property.EffectiveAnalysisLevelStyle = 9.0
15 | build_property.EnableCodeStyleSeverity =
16 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/3.3 mcp_edit_source/obj/Debug/net9.0/mcp_edit_source.GeneratedMSBuildEditorConfig.editorconfig:
--------------------------------------------------------------------------------
```
1 | is_global = true
2 | build_property.TargetFramework = net9.0
3 | build_property.TargetPlatformMinVersion =
4 | build_property.UsingMicrosoftNETSdkWeb =
5 | build_property.ProjectTypeGuids =
6 | build_property.InvariantGlobalization =
7 | build_property.PlatformNeutralAssembly =
8 | build_property.EnforceExtendedAnalyzerRules =
9 | build_property._SupportedPlatformList = Linux,macOS,Windows
10 | build_property.RootNamespace = mcp_edit_source
11 | build_property.ProjectDir = c:\Users\uwuertz\Documents\GitHub\MCP-Server-for-MAS-Developments\clients\C# .Net\3.3 mcp_edit_source\
12 | build_property.EnableComHosting =
13 | build_property.EnableGeneratedComInterfaceComImportInterop =
14 | build_property.EffectiveAnalysisLevelStyle = 9.0
15 | build_property.EnableCodeStyleSeverity =
16 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/4.0 mcp_list_groups/obj/Debug/net9.0/mcp_list_groups.GeneratedMSBuildEditorConfig.editorconfig:
--------------------------------------------------------------------------------
```
1 | is_global = true
2 | build_property.TargetFramework = net9.0
3 | build_property.TargetPlatformMinVersion =
4 | build_property.UsingMicrosoftNETSdkWeb =
5 | build_property.ProjectTypeGuids =
6 | build_property.InvariantGlobalization =
7 | build_property.PlatformNeutralAssembly =
8 | build_property.EnforceExtendedAnalyzerRules =
9 | build_property._SupportedPlatformList = Linux,macOS,Windows
10 | build_property.RootNamespace = mcp_list_groups
11 | build_property.ProjectDir = c:\Users\uwuertz\Documents\GitHub\MCP-Server-for-MAS-Developments\clients\C# .Net\4.0 mcp_list_groups\
12 | build_property.EnableComHosting =
13 | build_property.EnableGeneratedComInterfaceComImportInterop =
14 | build_property.EffectiveAnalysisLevelStyle = 9.0
15 | build_property.EnableCodeStyleSeverity =
16 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/4.1 mcp_store_group/obj/Debug/net9.0/mcp_store_group.GeneratedMSBuildEditorConfig.editorconfig:
--------------------------------------------------------------------------------
```
1 | is_global = true
2 | build_property.TargetFramework = net9.0
3 | build_property.TargetPlatformMinVersion =
4 | build_property.UsingMicrosoftNETSdkWeb =
5 | build_property.ProjectTypeGuids =
6 | build_property.InvariantGlobalization =
7 | build_property.PlatformNeutralAssembly =
8 | build_property.EnforceExtendedAnalyzerRules =
9 | build_property._SupportedPlatformList = Linux,macOS,Windows
10 | build_property.RootNamespace = mcp_store_group
11 | build_property.ProjectDir = c:\Users\uwuertz\Documents\GitHub\MCP-Server-for-MAS-Developments\clients\C# .Net\4.1 mcp_store_group\
12 | build_property.EnableComHosting =
13 | build_property.EnableGeneratedComInterfaceComImportInterop =
14 | build_property.EffectiveAnalysisLevelStyle = 9.0
15 | build_property.EnableCodeStyleSeverity =
16 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/5.2 mcp_delete_user/obj/Debug/net9.0/mcp_delete_user.GeneratedMSBuildEditorConfig.editorconfig:
--------------------------------------------------------------------------------
```
1 | is_global = true
2 | build_property.TargetFramework = net9.0
3 | build_property.TargetPlatformMinVersion =
4 | build_property.UsingMicrosoftNETSdkWeb =
5 | build_property.ProjectTypeGuids =
6 | build_property.InvariantGlobalization =
7 | build_property.PlatformNeutralAssembly =
8 | build_property.EnforceExtendedAnalyzerRules =
9 | build_property._SupportedPlatformList = Linux,macOS,Windows
10 | build_property.RootNamespace = mcp_delete_user
11 | build_property.ProjectDir = c:\Users\uwuertz\Documents\GitHub\MCP-Server-for-MAS-Developments\clients\C# .Net\5.2 mcp_delete_user\
12 | build_property.EnableComHosting =
13 | build_property.EnableGeneratedComInterfaceComImportInterop =
14 | build_property.EffectiveAnalysisLevelStyle = 9.0
15 | build_property.EnableCodeStyleSeverity =
16 |
```
--------------------------------------------------------------------------------
/clients/Gradio/mcp_servers/demo-mcp-server/tools/assets.js:
--------------------------------------------------------------------------------
```javascript
1 | export{ bitcoin, gold }
2 | process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
3 |
4 | //The actual tool function
5 | async function bitcoin(args){
6 |
7 | const apiUrl = 'https://mempool.space/api/v1/prices'
8 | const json = await fetch(apiUrl)
9 | .then(response => response.json());
10 | //console.log(json);
11 | var result = JSON.stringify(json)
12 | return {
13 | content: [{ type: "text", text: `${result}` }],
14 | };
15 | }
16 |
17 |
18 | async function gold(args){
19 | const apiUrl = 'https://api.gold-api.com/price/XAU'
20 | const json = await fetch(apiUrl)
21 | .then(response => response.json());
22 | //console.log(json);
23 | var result = json.price.toFixed(2) + " USD"
24 | return {
25 | content: [{ type: "text", text: `${result}` }],
26 | };
27 |
28 |
29 | }
30 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/3.2 mcp_list_sources/obj/Debug/net9.0/mcp_list_sources.GeneratedMSBuildEditorConfig.editorconfig:
--------------------------------------------------------------------------------
```
1 | is_global = true
2 | build_property.TargetFramework = net9.0
3 | build_property.TargetPlatformMinVersion =
4 | build_property.UsingMicrosoftNETSdkWeb =
5 | build_property.ProjectTypeGuids =
6 | build_property.InvariantGlobalization =
7 | build_property.PlatformNeutralAssembly =
8 | build_property.EnforceExtendedAnalyzerRules =
9 | build_property._SupportedPlatformList = Linux,macOS,Windows
10 | build_property.RootNamespace = mcp_list_sources
11 | build_property.ProjectDir = c:\Users\uwuertz\Documents\GitHub\MCP-Server-for-MAS-Developments\clients\C# .Net\3.2 mcp_list_sources\
12 | build_property.EnableComHosting =
13 | build_property.EnableGeneratedComInterfaceComImportInterop =
14 | build_property.EffectiveAnalysisLevelStyle = 9.0
15 | build_property.EnableCodeStyleSeverity =
16 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/4.2 mcp_delete_group/obj/Debug/net9.0/mcp_delete_group.GeneratedMSBuildEditorConfig.editorconfig:
--------------------------------------------------------------------------------
```
1 | is_global = true
2 | build_property.TargetFramework = net9.0
3 | build_property.TargetPlatformMinVersion =
4 | build_property.UsingMicrosoftNETSdkWeb =
5 | build_property.ProjectTypeGuids =
6 | build_property.InvariantGlobalization =
7 | build_property.PlatformNeutralAssembly =
8 | build_property.EnforceExtendedAnalyzerRules =
9 | build_property._SupportedPlatformList = Linux,macOS,Windows
10 | build_property.RootNamespace = mcp_delete_group
11 | build_property.ProjectDir = c:\Users\uwuertz\Documents\GitHub\MCP-Server-for-MAS-Developments\clients\C# .Net\4.2 mcp_delete_group\
12 | build_property.EnableComHosting =
13 | build_property.EnableGeneratedComInterfaceComImportInterop =
14 | build_property.EffectiveAnalysisLevelStyle = 9.0
15 | build_property.EnableCodeStyleSeverity =
16 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/2.1 mcp_continue_chat/obj/Debug/net9.0/mcp_continue_chat.GeneratedMSBuildEditorConfig.editorconfig:
--------------------------------------------------------------------------------
```
1 | is_global = true
2 | build_property.TargetFramework = net9.0
3 | build_property.TargetPlatformMinVersion =
4 | build_property.UsingMicrosoftNETSdkWeb =
5 | build_property.ProjectTypeGuids =
6 | build_property.InvariantGlobalization =
7 | build_property.PlatformNeutralAssembly =
8 | build_property.EnforceExtendedAnalyzerRules =
9 | build_property._SupportedPlatformList = Linux,macOS,Windows
10 | build_property.RootNamespace = mcp_continue_chat
11 | build_property.ProjectDir = c:\Users\uwuertz\Documents\GitHub\MCP-Server-for-MAS-Developments\clients\C# .Net\2.1 mcp_continue_chat\
12 | build_property.EnableComHosting =
13 | build_property.EnableGeneratedComInterfaceComImportInterop =
14 | build_property.EffectiveAnalysisLevelStyle = 9.0
15 | build_property.EnableCodeStyleSeverity =
16 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/2.2 mcp_get_chat_info/obj/Debug/net9.0/mcp_get_chat_info.GeneratedMSBuildEditorConfig.editorconfig:
--------------------------------------------------------------------------------
```
1 | is_global = true
2 | build_property.TargetFramework = net9.0
3 | build_property.TargetPlatformMinVersion =
4 | build_property.UsingMicrosoftNETSdkWeb =
5 | build_property.ProjectTypeGuids =
6 | build_property.InvariantGlobalization =
7 | build_property.PlatformNeutralAssembly =
8 | build_property.EnforceExtendedAnalyzerRules =
9 | build_property._SupportedPlatformList = Linux,macOS,Windows
10 | build_property.RootNamespace = mcp_get_chat_info
11 | build_property.ProjectDir = c:\Users\uwuertz\Documents\GitHub\MCP-Server-for-MAS-Developments\clients\C# .Net\2.2 mcp_get_chat_info\
12 | build_property.EnableComHosting =
13 | build_property.EnableGeneratedComInterfaceComImportInterop =
14 | build_property.EffectiveAnalysisLevelStyle = 9.0
15 | build_property.EnableCodeStyleSeverity =
16 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/3.0 mcp_create_source/obj/Debug/net9.0/mcp_create_source.GeneratedMSBuildEditorConfig.editorconfig:
--------------------------------------------------------------------------------
```
1 | is_global = true
2 | build_property.TargetFramework = net9.0
3 | build_property.TargetPlatformMinVersion =
4 | build_property.UsingMicrosoftNETSdkWeb =
5 | build_property.ProjectTypeGuids =
6 | build_property.InvariantGlobalization =
7 | build_property.PlatformNeutralAssembly =
8 | build_property.EnforceExtendedAnalyzerRules =
9 | build_property._SupportedPlatformList = Linux,macOS,Windows
10 | build_property.RootNamespace = mcp_create_source
11 | build_property.ProjectDir = c:\Users\uwuertz\Documents\GitHub\MCP-Server-for-MAS-Developments\clients\C# .Net\3.0 mcp_create_source\
12 | build_property.EnableComHosting =
13 | build_property.EnableGeneratedComInterfaceComImportInterop =
14 | build_property.EffectiveAnalysisLevelStyle = 9.0
15 | build_property.EnableCodeStyleSeverity =
16 |
```