This is page 5 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
--------------------------------------------------------------------------------
/agents/MCP-Client/Python/messages/message_types/initialize_message.py:
--------------------------------------------------------------------------------
```python
1 | from typing import Optional
2 | from pydantic import BaseModel, Field
3 | from ...messages.message_types.json_rpc_message import JSONRPCMessage
4 |
5 |
6 | class MCPClientCapabilities(BaseModel):
7 | roots: dict = Field(default_factory=lambda: {"listChanged": True})
8 | sampling: dict = Field(default_factory=dict)
9 |
10 |
11 | class MCPClientInfo(BaseModel):
12 | name: str = "PythonMCPClient"
13 | version: str = "1.0.0"
14 |
15 |
16 | class InitializeParams(BaseModel):
17 | protocolVersion: str
18 | capabilities: MCPClientCapabilities
19 | clientInfo: MCPClientInfo
20 |
21 |
22 | class ServerInfo(BaseModel):
23 | name: str
24 | version: str
25 |
26 |
27 | class ServerCapabilities(BaseModel):
28 | logging: dict = Field(default_factory=dict)
29 | prompts: Optional[dict] = None
30 | resources: Optional[dict] = None
31 | tools: Optional[dict] = None
32 |
33 |
34 | class InitializeResult(BaseModel):
35 | protocolVersion: str
36 | capabilities: ServerCapabilities
37 | serverInfo: ServerInfo
38 |
39 |
40 | class InitializeMessage(JSONRPCMessage):
41 | """
42 | A JSON-RPC 'initialize' message with default id and method.
43 | """
44 | def __init__(self, init_params: InitializeParams, **kwargs):
45 | super().__init__(
46 | id="init-1",
47 | method="initialize",
48 | params=init_params.model_dump(),
49 | **kwargs
50 | )
51 |
52 |
53 | class InitializedNotificationMessage(JSONRPCMessage):
54 | """
55 | A JSON-RPC notification message to notify the server that the client is initialized.
56 | """
57 | def __init__(self, **kwargs):
58 | super().__init__(
59 | method="notifications/initialized",
60 | params={},
61 | **kwargs
62 | )
63 |
```
--------------------------------------------------------------------------------
/clients/Gradio/messages/message_types/initialize_message.py:
--------------------------------------------------------------------------------
```python
1 | from typing import Optional
2 | from pydantic import BaseModel, Field
3 | from ...messages.message_types.json_rpc_message import JSONRPCMessage
4 |
5 |
6 | class MCPClientCapabilities(BaseModel):
7 | roots: dict = Field(default_factory=lambda: {"listChanged": True})
8 | sampling: dict = Field(default_factory=dict)
9 |
10 |
11 | class MCPClientInfo(BaseModel):
12 | name: str = "PythonMCPClient"
13 | version: str = "1.0.0"
14 |
15 |
16 | class InitializeParams(BaseModel):
17 | protocolVersion: str
18 | capabilities: MCPClientCapabilities
19 | clientInfo: MCPClientInfo
20 |
21 |
22 | class ServerInfo(BaseModel):
23 | name: str
24 | version: str
25 |
26 |
27 | class ServerCapabilities(BaseModel):
28 | logging: dict = Field(default_factory=dict)
29 | prompts: Optional[dict] = None
30 | resources: Optional[dict] = None
31 | tools: Optional[dict] = None
32 |
33 |
34 | class InitializeResult(BaseModel):
35 | protocolVersion: str
36 | capabilities: ServerCapabilities
37 | serverInfo: ServerInfo
38 |
39 |
40 | class InitializeMessage(JSONRPCMessage):
41 | """
42 | A JSON-RPC 'initialize' message with default id and method.
43 | """
44 | def __init__(self, init_params: InitializeParams, **kwargs):
45 | super().__init__(
46 | id="init-1",
47 | method="initialize",
48 | params=init_params.model_dump(),
49 | **kwargs
50 | )
51 |
52 |
53 | class InitializedNotificationMessage(JSONRPCMessage):
54 | """
55 | A JSON-RPC notification message to notify the server that the client is initialized.
56 | """
57 | def __init__(self, **kwargs):
58 | super().__init__(
59 | method="notifications/initialized",
60 | params={},
61 | **kwargs
62 | )
63 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/3.1 mcp_get_source/obj/Debug/net9.0/mcp_get_source.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
```
1 | C:\Users\uwuertz\AI\mcp-client\mcp_get_source\bin\Debug\net9.0\mcp_get_source.exe
2 | C:\Users\uwuertz\AI\mcp-client\mcp_get_source\bin\Debug\net9.0\mcp_get_source.deps.json
3 | C:\Users\uwuertz\AI\mcp-client\mcp_get_source\bin\Debug\net9.0\mcp_get_source.runtimeconfig.json
4 | C:\Users\uwuertz\AI\mcp-client\mcp_get_source\bin\Debug\net9.0\mcp_get_source.dll
5 | C:\Users\uwuertz\AI\mcp-client\mcp_get_source\bin\Debug\net9.0\mcp_get_source.pdb
6 | C:\Users\uwuertz\AI\mcp-client\mcp_get_source\bin\Debug\net9.0\Newtonsoft.Json.dll
7 | C:\Users\uwuertz\AI\mcp-client\mcp_get_source\obj\Debug\net9.0\mcp_get_source.csproj.AssemblyReference.cache
8 | C:\Users\uwuertz\AI\mcp-client\mcp_get_source\obj\Debug\net9.0\mcp_get_source.GeneratedMSBuildEditorConfig.editorconfig
9 | C:\Users\uwuertz\AI\mcp-client\mcp_get_source\obj\Debug\net9.0\mcp_get_source.AssemblyInfoInputs.cache
10 | C:\Users\uwuertz\AI\mcp-client\mcp_get_source\obj\Debug\net9.0\mcp_get_source.AssemblyInfo.cs
11 | C:\Users\uwuertz\AI\mcp-client\mcp_get_source\obj\Debug\net9.0\mcp_get_source.csproj.CoreCompileInputs.cache
12 | C:\Users\uwuertz\AI\mcp-client\mcp_get_source\obj\Debug\net9.0\mcp_get_.4E61956F.Up2Date
13 | C:\Users\uwuertz\AI\mcp-client\mcp_get_source\obj\Debug\net9.0\mcp_get_source.dll
14 | C:\Users\uwuertz\AI\mcp-client\mcp_get_source\obj\Debug\net9.0\refint\mcp_get_source.dll
15 | C:\Users\uwuertz\AI\mcp-client\mcp_get_source\obj\Debug\net9.0\mcp_get_source.pdb
16 | C:\Users\uwuertz\AI\mcp-client\mcp_get_source\obj\Debug\net9.0\mcp_get_source.genruntimeconfig.cache
17 | C:\Users\uwuertz\AI\mcp-client\mcp_get_source\obj\Debug\net9.0\ref\mcp_get_source.dll
18 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/5.0 mcp_store_user/obj/Debug/net9.0/mcp_store_user.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
```
1 | C:\Users\uwuertz\AI\mcp-client\mcp_store_user\bin\Debug\net9.0\mcp_store_user.exe
2 | C:\Users\uwuertz\AI\mcp-client\mcp_store_user\bin\Debug\net9.0\mcp_store_user.deps.json
3 | C:\Users\uwuertz\AI\mcp-client\mcp_store_user\bin\Debug\net9.0\mcp_store_user.runtimeconfig.json
4 | C:\Users\uwuertz\AI\mcp-client\mcp_store_user\bin\Debug\net9.0\mcp_store_user.dll
5 | C:\Users\uwuertz\AI\mcp-client\mcp_store_user\bin\Debug\net9.0\mcp_store_user.pdb
6 | C:\Users\uwuertz\AI\mcp-client\mcp_store_user\bin\Debug\net9.0\Newtonsoft.Json.dll
7 | C:\Users\uwuertz\AI\mcp-client\mcp_store_user\obj\Debug\net9.0\mcp_store_user.csproj.AssemblyReference.cache
8 | C:\Users\uwuertz\AI\mcp-client\mcp_store_user\obj\Debug\net9.0\mcp_store_user.GeneratedMSBuildEditorConfig.editorconfig
9 | C:\Users\uwuertz\AI\mcp-client\mcp_store_user\obj\Debug\net9.0\mcp_store_user.AssemblyInfoInputs.cache
10 | C:\Users\uwuertz\AI\mcp-client\mcp_store_user\obj\Debug\net9.0\mcp_store_user.AssemblyInfo.cs
11 | C:\Users\uwuertz\AI\mcp-client\mcp_store_user\obj\Debug\net9.0\mcp_store_user.csproj.CoreCompileInputs.cache
12 | C:\Users\uwuertz\AI\mcp-client\mcp_store_user\obj\Debug\net9.0\mcp_stor.6C0F0C8A.Up2Date
13 | C:\Users\uwuertz\AI\mcp-client\mcp_store_user\obj\Debug\net9.0\mcp_store_user.dll
14 | C:\Users\uwuertz\AI\mcp-client\mcp_store_user\obj\Debug\net9.0\refint\mcp_store_user.dll
15 | C:\Users\uwuertz\AI\mcp-client\mcp_store_user\obj\Debug\net9.0\mcp_store_user.pdb
16 | C:\Users\uwuertz\AI\mcp-client\mcp_store_user\obj\Debug\net9.0\mcp_store_user.genruntimeconfig.cache
17 | C:\Users\uwuertz\AI\mcp-client\mcp_store_user\obj\Debug\net9.0\ref\mcp_store_user.dll
18 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/4.1 mcp_store_group/obj/Debug/net9.0/mcp_store_group.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
```
1 | C:\Users\uwuertz\AI\mcp-client\mcp_store_group\bin\Debug\net9.0\mcp_store_group.exe
2 | C:\Users\uwuertz\AI\mcp-client\mcp_store_group\bin\Debug\net9.0\mcp_store_group.deps.json
3 | C:\Users\uwuertz\AI\mcp-client\mcp_store_group\bin\Debug\net9.0\mcp_store_group.runtimeconfig.json
4 | C:\Users\uwuertz\AI\mcp-client\mcp_store_group\bin\Debug\net9.0\mcp_store_group.dll
5 | C:\Users\uwuertz\AI\mcp-client\mcp_store_group\bin\Debug\net9.0\mcp_store_group.pdb
6 | C:\Users\uwuertz\AI\mcp-client\mcp_store_group\bin\Debug\net9.0\Newtonsoft.Json.dll
7 | C:\Users\uwuertz\AI\mcp-client\mcp_store_group\obj\Debug\net9.0\mcp_store_group.csproj.AssemblyReference.cache
8 | C:\Users\uwuertz\AI\mcp-client\mcp_store_group\obj\Debug\net9.0\mcp_store_group.GeneratedMSBuildEditorConfig.editorconfig
9 | C:\Users\uwuertz\AI\mcp-client\mcp_store_group\obj\Debug\net9.0\mcp_store_group.AssemblyInfoInputs.cache
10 | C:\Users\uwuertz\AI\mcp-client\mcp_store_group\obj\Debug\net9.0\mcp_store_group.AssemblyInfo.cs
11 | C:\Users\uwuertz\AI\mcp-client\mcp_store_group\obj\Debug\net9.0\mcp_store_group.csproj.CoreCompileInputs.cache
12 | C:\Users\uwuertz\AI\mcp-client\mcp_store_group\obj\Debug\net9.0\mcp_stor.AFB4AA35.Up2Date
13 | C:\Users\uwuertz\AI\mcp-client\mcp_store_group\obj\Debug\net9.0\mcp_store_group.dll
14 | C:\Users\uwuertz\AI\mcp-client\mcp_store_group\obj\Debug\net9.0\refint\mcp_store_group.dll
15 | C:\Users\uwuertz\AI\mcp-client\mcp_store_group\obj\Debug\net9.0\mcp_store_group.pdb
16 | C:\Users\uwuertz\AI\mcp-client\mcp_store_group\obj\Debug\net9.0\mcp_store_group.genruntimeconfig.cache
17 | C:\Users\uwuertz\AI\mcp-client\mcp_store_group\obj\Debug\net9.0\ref\mcp_store_group.dll
18 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/5.2 mcp_delete_user/obj/Debug/net9.0/mcp_delete_user.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
```
1 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_user\bin\Debug\net9.0\mcp_delete_user.exe
2 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_user\bin\Debug\net9.0\mcp_delete_user.deps.json
3 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_user\bin\Debug\net9.0\mcp_delete_user.runtimeconfig.json
4 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_user\bin\Debug\net9.0\mcp_delete_user.dll
5 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_user\bin\Debug\net9.0\mcp_delete_user.pdb
6 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_user\bin\Debug\net9.0\Newtonsoft.Json.dll
7 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_user\obj\Debug\net9.0\mcp_delete_user.csproj.AssemblyReference.cache
8 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_user\obj\Debug\net9.0\mcp_delete_user.GeneratedMSBuildEditorConfig.editorconfig
9 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_user\obj\Debug\net9.0\mcp_delete_user.AssemblyInfoInputs.cache
10 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_user\obj\Debug\net9.0\mcp_delete_user.AssemblyInfo.cs
11 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_user\obj\Debug\net9.0\mcp_delete_user.csproj.CoreCompileInputs.cache
12 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_user\obj\Debug\net9.0\mcp_dele.CEB7E33D.Up2Date
13 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_user\obj\Debug\net9.0\mcp_delete_user.dll
14 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_user\obj\Debug\net9.0\refint\mcp_delete_user.dll
15 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_user\obj\Debug\net9.0\mcp_delete_user.pdb
16 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_user\obj\Debug\net9.0\mcp_delete_user.genruntimeconfig.cache
17 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_user\obj\Debug\net9.0\ref\mcp_delete_user.dll
18 |
```
--------------------------------------------------------------------------------
/agents/OpenAI_Compatible_API_Agent/Python/client_tests/vllm_structured.py:
--------------------------------------------------------------------------------
```python
1 | import argparse
2 | import json
3 |
4 | import httpx
5 | from openai import OpenAI
6 | from pydantic import BaseModel
7 | from enum import Enum
8 |
9 | class CarType(str, Enum):
10 | sedan = "sedan"
11 | suv = "SUV"
12 | truck = "Truck"
13 | coupe = "Coupe"
14 |
15 |
16 | class CarDescription(BaseModel):
17 | brand: str
18 | model: str
19 | car_type: CarType
20 |
21 |
22 | json_schema = CarDescription.model_json_schema()
23 |
24 |
25 | if __name__ == "__main__":
26 | # Create an argument parser to accept command line arguments
27 | parser = argparse.ArgumentParser(description="Provide an API key to connect to OpenAI-compatible API.")
28 |
29 | # Add an argument for the API key, which is required
30 | parser.add_argument("--api_key", required=True, help="API key for login")
31 |
32 | # Add an argument for the base URL of the VLLM server, which is also required
33 | parser.add_argument("--base_url", required=True, help="The base url of the VLLM server")
34 |
35 | # Parse the command line arguments
36 | args = parser.parse_args()
37 |
38 |
39 | client = OpenAI(
40 | base_url=args.base_url,
41 | api_key=args.api_key,
42 | http_client=httpx.Client(verify=False)
43 | )
44 |
45 |
46 | completion = client.chat.completions.create(
47 | model="/models/mistral-nemo-12b",
48 | messages=[
49 | {
50 | "role": "user",
51 | "content": "Generate a JSON with the brand, model and car_type of the most iconic car from the 80's",
52 | }
53 | ],
54 | extra_body={"guided_json": json_schema},
55 | )
56 | try:
57 | results = json.loads(completion.choices[0].message.content)
58 | print(json.dumps(results, indent=2))
59 | except:
60 | print(completion.choices[0].message.content)
```
--------------------------------------------------------------------------------
/clients/C# .Net/3.2 mcp_list_sources/obj/Debug/net9.0/mcp_list_sources.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
```
1 | C:\Users\uwuertz\AI\mcp-client\mcp_list_sources\bin\Debug\net9.0\mcp_list_sources.exe
2 | C:\Users\uwuertz\AI\mcp-client\mcp_list_sources\bin\Debug\net9.0\mcp_list_sources.deps.json
3 | C:\Users\uwuertz\AI\mcp-client\mcp_list_sources\bin\Debug\net9.0\mcp_list_sources.runtimeconfig.json
4 | C:\Users\uwuertz\AI\mcp-client\mcp_list_sources\bin\Debug\net9.0\mcp_list_sources.dll
5 | C:\Users\uwuertz\AI\mcp-client\mcp_list_sources\bin\Debug\net9.0\mcp_list_sources.pdb
6 | C:\Users\uwuertz\AI\mcp-client\mcp_list_sources\bin\Debug\net9.0\Newtonsoft.Json.dll
7 | C:\Users\uwuertz\AI\mcp-client\mcp_list_sources\obj\Debug\net9.0\mcp_list_sources.csproj.AssemblyReference.cache
8 | C:\Users\uwuertz\AI\mcp-client\mcp_list_sources\obj\Debug\net9.0\mcp_list_sources.GeneratedMSBuildEditorConfig.editorconfig
9 | C:\Users\uwuertz\AI\mcp-client\mcp_list_sources\obj\Debug\net9.0\mcp_list_sources.AssemblyInfoInputs.cache
10 | C:\Users\uwuertz\AI\mcp-client\mcp_list_sources\obj\Debug\net9.0\mcp_list_sources.AssemblyInfo.cs
11 | C:\Users\uwuertz\AI\mcp-client\mcp_list_sources\obj\Debug\net9.0\mcp_list_sources.csproj.CoreCompileInputs.cache
12 | C:\Users\uwuertz\AI\mcp-client\mcp_list_sources\obj\Debug\net9.0\mcp_list.A720E197.Up2Date
13 | C:\Users\uwuertz\AI\mcp-client\mcp_list_sources\obj\Debug\net9.0\mcp_list_sources.dll
14 | C:\Users\uwuertz\AI\mcp-client\mcp_list_sources\obj\Debug\net9.0\refint\mcp_list_sources.dll
15 | C:\Users\uwuertz\AI\mcp-client\mcp_list_sources\obj\Debug\net9.0\mcp_list_sources.pdb
16 | C:\Users\uwuertz\AI\mcp-client\mcp_list_sources\obj\Debug\net9.0\mcp_list_sources.genruntimeconfig.cache
17 | C:\Users\uwuertz\AI\mcp-client\mcp_list_sources\obj\Debug\net9.0\ref\mcp_list_sources.dll
18 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/4.2 mcp_delete_group/obj/Debug/net9.0/mcp_delete_group.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
```
1 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_group\bin\Debug\net9.0\mcp_delete_group.exe
2 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_group\bin\Debug\net9.0\mcp_delete_group.deps.json
3 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_group\bin\Debug\net9.0\mcp_delete_group.runtimeconfig.json
4 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_group\bin\Debug\net9.0\mcp_delete_group.dll
5 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_group\bin\Debug\net9.0\mcp_delete_group.pdb
6 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_group\bin\Debug\net9.0\Newtonsoft.Json.dll
7 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_group\obj\Debug\net9.0\mcp_delete_group.csproj.AssemblyReference.cache
8 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_group\obj\Debug\net9.0\mcp_delete_group.GeneratedMSBuildEditorConfig.editorconfig
9 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_group\obj\Debug\net9.0\mcp_delete_group.AssemblyInfoInputs.cache
10 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_group\obj\Debug\net9.0\mcp_delete_group.AssemblyInfo.cs
11 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_group\obj\Debug\net9.0\mcp_delete_group.csproj.CoreCompileInputs.cache
12 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_group\obj\Debug\net9.0\mcp_dele.FE1C6298.Up2Date
13 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_group\obj\Debug\net9.0\mcp_delete_group.dll
14 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_group\obj\Debug\net9.0\refint\mcp_delete_group.dll
15 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_group\obj\Debug\net9.0\mcp_delete_group.pdb
16 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_group\obj\Debug\net9.0\mcp_delete_group.genruntimeconfig.cache
17 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_group\obj\Debug\net9.0\ref\mcp_delete_group.dll
18 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/2.1 mcp_continue_chat/obj/Debug/net9.0/mcp_continue_chat.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
```
1 | C:\Users\uwuertz\AI\mcp-client\mcp_continue_chat\bin\Debug\net9.0\mcp_continue_chat.exe
2 | C:\Users\uwuertz\AI\mcp-client\mcp_continue_chat\bin\Debug\net9.0\mcp_continue_chat.deps.json
3 | C:\Users\uwuertz\AI\mcp-client\mcp_continue_chat\bin\Debug\net9.0\mcp_continue_chat.runtimeconfig.json
4 | C:\Users\uwuertz\AI\mcp-client\mcp_continue_chat\bin\Debug\net9.0\mcp_continue_chat.dll
5 | C:\Users\uwuertz\AI\mcp-client\mcp_continue_chat\bin\Debug\net9.0\mcp_continue_chat.pdb
6 | C:\Users\uwuertz\AI\mcp-client\mcp_continue_chat\bin\Debug\net9.0\Newtonsoft.Json.dll
7 | C:\Users\uwuertz\AI\mcp-client\mcp_continue_chat\obj\Debug\net9.0\mcp_continue_chat.csproj.AssemblyReference.cache
8 | C:\Users\uwuertz\AI\mcp-client\mcp_continue_chat\obj\Debug\net9.0\mcp_continue_chat.GeneratedMSBuildEditorConfig.editorconfig
9 | C:\Users\uwuertz\AI\mcp-client\mcp_continue_chat\obj\Debug\net9.0\mcp_continue_chat.AssemblyInfoInputs.cache
10 | C:\Users\uwuertz\AI\mcp-client\mcp_continue_chat\obj\Debug\net9.0\mcp_continue_chat.AssemblyInfo.cs
11 | C:\Users\uwuertz\AI\mcp-client\mcp_continue_chat\obj\Debug\net9.0\mcp_continue_chat.csproj.CoreCompileInputs.cache
12 | C:\Users\uwuertz\AI\mcp-client\mcp_continue_chat\obj\Debug\net9.0\mcp_cont.EF178231.Up2Date
13 | C:\Users\uwuertz\AI\mcp-client\mcp_continue_chat\obj\Debug\net9.0\mcp_continue_chat.dll
14 | C:\Users\uwuertz\AI\mcp-client\mcp_continue_chat\obj\Debug\net9.0\refint\mcp_continue_chat.dll
15 | C:\Users\uwuertz\AI\mcp-client\mcp_continue_chat\obj\Debug\net9.0\mcp_continue_chat.pdb
16 | C:\Users\uwuertz\AI\mcp-client\mcp_continue_chat\obj\Debug\net9.0\mcp_continue_chat.genruntimeconfig.cache
17 | C:\Users\uwuertz\AI\mcp-client\mcp_continue_chat\obj\Debug\net9.0\ref\mcp_continue_chat.dll
18 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/2.2 mcp_get_chat_info/obj/Debug/net9.0/mcp_get_chat_info.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
```
1 | C:\Users\uwuertz\AI\mcp-client\mcp_get_chat_info\bin\Debug\net9.0\mcp_get_chat_info.exe
2 | C:\Users\uwuertz\AI\mcp-client\mcp_get_chat_info\bin\Debug\net9.0\mcp_get_chat_info.deps.json
3 | C:\Users\uwuertz\AI\mcp-client\mcp_get_chat_info\bin\Debug\net9.0\mcp_get_chat_info.runtimeconfig.json
4 | C:\Users\uwuertz\AI\mcp-client\mcp_get_chat_info\bin\Debug\net9.0\mcp_get_chat_info.dll
5 | C:\Users\uwuertz\AI\mcp-client\mcp_get_chat_info\bin\Debug\net9.0\mcp_get_chat_info.pdb
6 | C:\Users\uwuertz\AI\mcp-client\mcp_get_chat_info\bin\Debug\net9.0\Newtonsoft.Json.dll
7 | C:\Users\uwuertz\AI\mcp-client\mcp_get_chat_info\obj\Debug\net9.0\mcp_get_chat_info.csproj.AssemblyReference.cache
8 | C:\Users\uwuertz\AI\mcp-client\mcp_get_chat_info\obj\Debug\net9.0\mcp_get_chat_info.GeneratedMSBuildEditorConfig.editorconfig
9 | C:\Users\uwuertz\AI\mcp-client\mcp_get_chat_info\obj\Debug\net9.0\mcp_get_chat_info.AssemblyInfoInputs.cache
10 | C:\Users\uwuertz\AI\mcp-client\mcp_get_chat_info\obj\Debug\net9.0\mcp_get_chat_info.AssemblyInfo.cs
11 | C:\Users\uwuertz\AI\mcp-client\mcp_get_chat_info\obj\Debug\net9.0\mcp_get_chat_info.csproj.CoreCompileInputs.cache
12 | C:\Users\uwuertz\AI\mcp-client\mcp_get_chat_info\obj\Debug\net9.0\mcp_get_.DFF47B4E.Up2Date
13 | C:\Users\uwuertz\AI\mcp-client\mcp_get_chat_info\obj\Debug\net9.0\mcp_get_chat_info.dll
14 | C:\Users\uwuertz\AI\mcp-client\mcp_get_chat_info\obj\Debug\net9.0\refint\mcp_get_chat_info.dll
15 | C:\Users\uwuertz\AI\mcp-client\mcp_get_chat_info\obj\Debug\net9.0\mcp_get_chat_info.pdb
16 | C:\Users\uwuertz\AI\mcp-client\mcp_get_chat_info\obj\Debug\net9.0\mcp_get_chat_info.genruntimeconfig.cache
17 | C:\Users\uwuertz\AI\mcp-client\mcp_get_chat_info\obj\Debug\net9.0\ref\mcp_get_chat_info.dll
18 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/3.0 mcp_create_source/obj/Debug/net9.0/mcp_create_source.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
```
1 | C:\Users\uwuertz\AI\mcp-client\mcp_create_source\bin\Debug\net9.0\mcp_create_source.exe
2 | C:\Users\uwuertz\AI\mcp-client\mcp_create_source\bin\Debug\net9.0\mcp_create_source.deps.json
3 | C:\Users\uwuertz\AI\mcp-client\mcp_create_source\bin\Debug\net9.0\mcp_create_source.runtimeconfig.json
4 | C:\Users\uwuertz\AI\mcp-client\mcp_create_source\bin\Debug\net9.0\mcp_create_source.dll
5 | C:\Users\uwuertz\AI\mcp-client\mcp_create_source\bin\Debug\net9.0\mcp_create_source.pdb
6 | C:\Users\uwuertz\AI\mcp-client\mcp_create_source\bin\Debug\net9.0\Newtonsoft.Json.dll
7 | C:\Users\uwuertz\AI\mcp-client\mcp_create_source\obj\Debug\net9.0\mcp_create_source.csproj.AssemblyReference.cache
8 | C:\Users\uwuertz\AI\mcp-client\mcp_create_source\obj\Debug\net9.0\mcp_create_source.GeneratedMSBuildEditorConfig.editorconfig
9 | C:\Users\uwuertz\AI\mcp-client\mcp_create_source\obj\Debug\net9.0\mcp_create_source.AssemblyInfoInputs.cache
10 | C:\Users\uwuertz\AI\mcp-client\mcp_create_source\obj\Debug\net9.0\mcp_create_source.AssemblyInfo.cs
11 | C:\Users\uwuertz\AI\mcp-client\mcp_create_source\obj\Debug\net9.0\mcp_create_source.csproj.CoreCompileInputs.cache
12 | C:\Users\uwuertz\AI\mcp-client\mcp_create_source\obj\Debug\net9.0\mcp_crea.CB4ED912.Up2Date
13 | C:\Users\uwuertz\AI\mcp-client\mcp_create_source\obj\Debug\net9.0\mcp_create_source.dll
14 | C:\Users\uwuertz\AI\mcp-client\mcp_create_source\obj\Debug\net9.0\refint\mcp_create_source.dll
15 | C:\Users\uwuertz\AI\mcp-client\mcp_create_source\obj\Debug\net9.0\mcp_create_source.pdb
16 | C:\Users\uwuertz\AI\mcp-client\mcp_create_source\obj\Debug\net9.0\mcp_create_source.genruntimeconfig.cache
17 | C:\Users\uwuertz\AI\mcp-client\mcp_create_source\obj\Debug\net9.0\ref\mcp_create_source.dll
18 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/3.4 mcp_delete_source/obj/Debug/net9.0/mcp_delete_source.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
```
1 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_source\bin\Debug\net9.0\mcp_delete_source.exe
2 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_source\bin\Debug\net9.0\mcp_delete_source.deps.json
3 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_source\bin\Debug\net9.0\mcp_delete_source.runtimeconfig.json
4 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_source\bin\Debug\net9.0\mcp_delete_source.dll
5 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_source\bin\Debug\net9.0\mcp_delete_source.pdb
6 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_source\bin\Debug\net9.0\Newtonsoft.Json.dll
7 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_source\obj\Debug\net9.0\mcp_delete_source.csproj.AssemblyReference.cache
8 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_source\obj\Debug\net9.0\mcp_delete_source.GeneratedMSBuildEditorConfig.editorconfig
9 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_source\obj\Debug\net9.0\mcp_delete_source.AssemblyInfoInputs.cache
10 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_source\obj\Debug\net9.0\mcp_delete_source.AssemblyInfo.cs
11 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_source\obj\Debug\net9.0\mcp_delete_source.csproj.CoreCompileInputs.cache
12 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_source\obj\Debug\net9.0\mcp_dele.67DD13F9.Up2Date
13 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_source\obj\Debug\net9.0\mcp_delete_source.dll
14 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_source\obj\Debug\net9.0\refint\mcp_delete_source.dll
15 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_source\obj\Debug\net9.0\mcp_delete_source.pdb
16 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_source\obj\Debug\net9.0\mcp_delete_source.genruntimeconfig.cache
17 | C:\Users\uwuertz\AI\mcp-client\mcp_delete_source\obj\Debug\net9.0\ref\mcp_delete_source.dll
18 |
```
--------------------------------------------------------------------------------
/agents/OpenAI_Compatible_API_Agent/Python/client_tests/vllm_client_multimodal.py:
--------------------------------------------------------------------------------
```python
1 | import argparse
2 | import base64
3 | import io
4 |
5 | import httpx
6 | from PIL import Image
7 | from openai import OpenAI
8 |
9 | if __name__ == "__main__":
10 | parser = argparse.ArgumentParser(description="Provide an API key to connect to OpenAI-compatible API.")
11 | parser.add_argument("--api_key", required=True, help="API key for login")
12 | parser.add_argument("--base_url", required=True, help="The base url of the VLLM server")
13 | args = parser.parse_args()
14 |
15 | client = OpenAI(
16 | base_url=args.base_url,
17 | api_key=args.api_key,
18 | http_client=httpx.Client(verify=False)
19 | )
20 |
21 | from openai import OpenAI
22 |
23 | # for local file:
24 | image = Image.open("Python/client_tests/japan.jpg")
25 | # Convert the image to a byte stream
26 | buffered = io.BytesIO()
27 | image.save(buffered, format="JPEG") # Specify the format (e.g., JPEG, PNG)
28 | image_bytes = buffered.getvalue()
29 | image_base64 = base64.b64encode(image_bytes).decode("utf-8")
30 | # local file end
31 |
32 | chat_response = client.chat.completions.create(
33 | model="mistralai/Mistral-Small-3.1-24B-Instruct-2503",
34 | messages=[{
35 | "role": "user",
36 | "content": [
37 | {"type": "text", "text": "What's in this image?"},
38 | {
39 | "type": "image_url",
40 | "image_url": {
41 |
42 | "url": f"data:image/jpeg;base64,{image_base64}"
43 | #or simply:
44 | #"url": "https://www.urlaubstracker.de/wp-content/uploads/2019/03/japan-fuji-himeji-castle.jpg",
45 |
46 | },
47 | },
48 | ],
49 | }],
50 | )
51 | print("Chat response:", chat_response.choices[0].message.content)
```
--------------------------------------------------------------------------------
/agents/MCP-Client/Python/config.py:
--------------------------------------------------------------------------------
```python
1 | # config.py
2 | import json
3 | import logging
4 |
5 |
6 | from .transport.stdio.stdio_server_parameters import StdioServerParameters
7 |
8 |
9 | async def load_config(config_path: str, server_name: str) -> StdioServerParameters:
10 | """Load the server configuration from a JSON file."""
11 | try:
12 | # debug
13 | logging.debug(f"Loading config from {config_path}")
14 |
15 | # Read the configuration file
16 | with open(config_path, "r") as config_file:
17 | config = json.load(config_file)
18 |
19 | # Retrieve the server configuration
20 | server_config = config.get("mcpServers", {}).get(server_name)
21 | if not server_config:
22 | error_msg = f"Server '{server_name}' not found in configuration file."
23 | logging.error(error_msg)
24 | raise ValueError(error_msg)
25 |
26 | # Construct the server parameters
27 | result = StdioServerParameters(
28 | command=server_config["command"],
29 | args=server_config.get("args", []),
30 | env=server_config.get("env"),
31 | )
32 |
33 |
34 | # debug
35 | logging.debug(
36 | f"Loaded config: command='{result.command}', args={result.args}, env={result.env}"
37 | )
38 |
39 | # return result
40 | return result
41 |
42 | except FileNotFoundError:
43 | # error
44 | error_msg = f"Configuration file not found: {config_path}"
45 | logging.error(error_msg)
46 | raise FileNotFoundError(error_msg)
47 | except json.JSONDecodeError as e:
48 | # json error
49 | error_msg = f"Invalid JSON in configuration file: {e.msg}"
50 | logging.error(error_msg)
51 | raise json.JSONDecodeError(error_msg, e.doc, e.pos)
52 | except ValueError as e:
53 | # error
54 | logging.error(str(e))
55 | raise
56 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/4.0 mcp_list_groups/obj/Debug/net9.0/mcp_list_groups.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
```
1 | C:\Users\uwuertz\AI\mcp-client\C# .Net\mcp_list_groups\bin\Debug\net9.0\mcp_list_groups.exe
2 | C:\Users\uwuertz\AI\mcp-client\C# .Net\mcp_list_groups\bin\Debug\net9.0\mcp_list_groups.deps.json
3 | C:\Users\uwuertz\AI\mcp-client\C# .Net\mcp_list_groups\bin\Debug\net9.0\mcp_list_groups.runtimeconfig.json
4 | C:\Users\uwuertz\AI\mcp-client\C# .Net\mcp_list_groups\bin\Debug\net9.0\mcp_list_groups.dll
5 | C:\Users\uwuertz\AI\mcp-client\C# .Net\mcp_list_groups\bin\Debug\net9.0\mcp_list_groups.pdb
6 | C:\Users\uwuertz\AI\mcp-client\C# .Net\mcp_list_groups\bin\Debug\net9.0\Newtonsoft.Json.dll
7 | C:\Users\uwuertz\AI\mcp-client\C# .Net\mcp_list_groups\obj\Debug\net9.0\mcp_list_groups.csproj.AssemblyReference.cache
8 | C:\Users\uwuertz\AI\mcp-client\C# .Net\mcp_list_groups\obj\Debug\net9.0\mcp_list_groups.GeneratedMSBuildEditorConfig.editorconfig
9 | C:\Users\uwuertz\AI\mcp-client\C# .Net\mcp_list_groups\obj\Debug\net9.0\mcp_list_groups.AssemblyInfoInputs.cache
10 | C:\Users\uwuertz\AI\mcp-client\C# .Net\mcp_list_groups\obj\Debug\net9.0\mcp_list_groups.AssemblyInfo.cs
11 | C:\Users\uwuertz\AI\mcp-client\C# .Net\mcp_list_groups\obj\Debug\net9.0\mcp_list_groups.csproj.CoreCompileInputs.cache
12 | C:\Users\uwuertz\AI\mcp-client\C# .Net\mcp_list_groups\obj\Debug\net9.0\mcp_list.EBD5E0D2.Up2Date
13 | C:\Users\uwuertz\AI\mcp-client\C# .Net\mcp_list_groups\obj\Debug\net9.0\mcp_list_groups.dll
14 | C:\Users\uwuertz\AI\mcp-client\C# .Net\mcp_list_groups\obj\Debug\net9.0\refint\mcp_list_groups.dll
15 | C:\Users\uwuertz\AI\mcp-client\C# .Net\mcp_list_groups\obj\Debug\net9.0\mcp_list_groups.pdb
16 | C:\Users\uwuertz\AI\mcp-client\C# .Net\mcp_list_groups\obj\Debug\net9.0\mcp_list_groups.genruntimeconfig.cache
17 | C:\Users\uwuertz\AI\mcp-client\C# .Net\mcp_list_groups\obj\Debug\net9.0\ref\mcp_list_groups.dll
18 |
```
--------------------------------------------------------------------------------
/src/types/api.ts:
--------------------------------------------------------------------------------
```typescript
1 | export interface ChatArgs {
2 | question: string;
3 | usePublic?: boolean;
4 | groups?: string[];
5 | language?: string;
6 | }
7 |
8 | export interface SourceArgs {
9 | name: string;
10 | content: string;
11 | groups?: string[];
12 | }
13 |
14 | export interface ListSourcesArgs {
15 | groupName: string;
16 | }
17 |
18 | export interface GetSourceArgs {
19 | sourceId: string;
20 | }
21 |
22 | export function validateChatArgs(args: Record<string, unknown> | undefined): ChatArgs {
23 | if (!args?.question || typeof args.question !== 'string') {
24 | throw new Error('Missing or invalid question');
25 | }
26 |
27 | return {
28 | question: args.question,
29 | usePublic: typeof args.usePublic === 'boolean' ? args.usePublic : false,
30 | groups: Array.isArray(args.groups) ? args.groups.map(String) : [],
31 | language: typeof args.language === 'string' ? args.language : 'en',
32 | };
33 | }
34 |
35 | export function validateSourceArgs(args: Record<string, unknown> | undefined): SourceArgs {
36 | if (!args?.name || typeof args.name !== 'string') {
37 | throw new Error('Missing or invalid name');
38 | }
39 | if (!args?.content || typeof args.content !== 'string') {
40 | throw new Error('Missing or invalid content');
41 | }
42 |
43 | return {
44 | name: args.name,
45 | content: args.content,
46 | groups: Array.isArray(args.groups) ? args.groups.map(String) : [],
47 | };
48 | }
49 |
50 | export function validateListSourcesArgs(args: Record<string, unknown> | undefined): ListSourcesArgs {
51 | if (!args?.groupName || typeof args.groupName !== 'string') {
52 | throw new Error('Missing or invalid groupName');
53 | }
54 |
55 | return {
56 | groupName: args.groupName,
57 | };
58 | }
59 |
60 | export function validateGetSourceArgs(args: Record<string, unknown> | undefined): GetSourceArgs {
61 | if (!args?.sourceId || typeof args.sourceId !== 'string') {
62 | throw new Error('Missing or invalid sourceId');
63 | }
64 |
65 | return {
66 | sourceId: args.sourceId,
67 | };
68 | }
69 |
```
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "name": "pgpt-mcp-server",
3 | "version": "2.1.0",
4 | "description": "PrivateGPT MCP Server",
5 | "main": "dist/index.js",
6 | "type": "module",
7 | "scripts": {
8 | "build": "tsc && node -e \"require('fs').chmodSync('dist/index.js', '755')\"",
9 | "start": "node dist/index.js",
10 | "dev": "ts-node --esm src/index.ts",
11 | "test": "jest",
12 | "lint": "eslint . --ext .ts",
13 | "format": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"",
14 | "postinstall": "patch-package"
15 | },
16 | "keywords": [
17 | "mcp",
18 | "privategpt"
19 | ],
20 | "author": "",
21 | "license": "MIT",
22 | "dependencies": {
23 | "@modelcontextprotocol/sdk": "^1.4.1",
24 | "@remote-mcp/client": "^0.1.0",
25 | "@remote-mcp/server": "^0.1.0",
26 | "@trpc/client": "^11.0.0-rc.730",
27 | "axios": "^1.7.9",
28 | "chalk": "^5.4.1",
29 | "chokidar": "^4.0.3",
30 | "content-type": "^1.0.5",
31 | "dotenv": "^16.4.7",
32 | "express": "^4.21.2",
33 | "figlet": "^1.8.0",
34 | "moment": "^2.30.1",
35 | "raw-body": "^3.0.0",
36 | "socket.io": "^4.8.1",
37 | "strip-ansi": "^7.1.0",
38 | "winston": "^3.17.0",
39 | "xmlhttprequest": "^1.8.0",
40 | "zod": "^3.24.1"
41 | },
42 | "devDependencies": {
43 | "@types/content-type": "^1.1.8",
44 | "@types/jest": "^29.5.14",
45 | "@types/node": "^22.10.5",
46 | "@typescript-eslint/eslint-plugin": "^8.19.1",
47 | "@typescript-eslint/parser": "^8.19.1",
48 | "eslint": "^9.18.0",
49 | "eslint-config-prettier": "^9.1.0",
50 | "eslint-plugin-prettier": "^5.2.1",
51 | "jest": "^29.7.0",
52 | "patch-package": "^8.0.0",
53 | "postinstall-postinstall": "^2.1.0",
54 | "prettier": "^3.4.2",
55 | "ts-jest": "^29.2.5",
56 | "ts-node": "^10.9.2",
57 | "typescript": "^5.7.3"
58 | },
59 | "engines": {
60 | "node": ">=18.0.0"
61 | },
62 | "overrides": {
63 | "glob": "^9.3.5",
64 | "rimraf": "^5.0.1"
65 | },
66 | "resolutions": {
67 | "glob": "^9.3.5",
68 | "rimraf": "^5.0.1"
69 | }
70 | }
71 |
```
--------------------------------------------------------------------------------
/security/generate_encrypted_password.js:
--------------------------------------------------------------------------------
```javascript
1 | import fs from 'fs';
2 | import crypto from 'crypto';
3 | import readline from 'readline';
4 |
5 | // Function to read the public key
6 | function loadPublicKey(path) {
7 | if (!path) {
8 | throw new Error(
9 | `No public key path provided. Please specify the path to the RSA-public key as an argument.
10 | Example usage: node security/generate_encrypted_password.js ~/.ssh/id_rsa_public.pem`
11 | );
12 | }
13 |
14 | try {
15 | return fs.readFileSync(path, 'utf8');
16 | } catch (err) {
17 | throw new Error(`Error reading public key at "${path}": ${err.message}`);
18 | }
19 | }
20 |
21 | // Function for encryption
22 | function encryptWithPublicKey(data, publicKey) {
23 | return crypto.publicEncrypt(
24 | {
25 | key: publicKey,
26 | padding: crypto.constants.RSA_PKCS1_OAEP_PADDING
27 | //padding: crypto.constants.RSA_PKCS1_PADDING, // Explicitly set padding
28 | },
29 | Buffer.from(data)
30 | ).toString('base64');
31 | }
32 |
33 | // Prompt for password
34 | function askPassword(question) {
35 | const rl = readline.createInterface({
36 | input: process.stdin,
37 | output: process.stdout,
38 | });
39 |
40 | return new Promise((resolve) => {
41 | rl.question(question, (answer) => {
42 | rl.close();
43 | resolve(answer);
44 | });
45 | });
46 | }
47 |
48 | // Main function
49 | async function main() {
50 | const publicKeyPath = process.argv[2]; // Get the public key path from command-line arguments
51 |
52 | try {
53 | const publicKey = loadPublicKey(publicKeyPath); // Load the public key
54 | const password = await askPassword('Please enter your password: '); // Prompt for the password
55 | const encryptedPassword = encryptWithPublicKey(password, publicKey); // Encrypt the password
56 | console.log('Encrypted Password:', encryptedPassword);
57 | } catch (err) {
58 | console.error('Error:', err.message);
59 | }
60 | }
61 |
62 | main();
```
--------------------------------------------------------------------------------
/agents/OpenAI_Compatible_API_Agent/Python/client_tests/vllm_structured2.py:
--------------------------------------------------------------------------------
```python
1 | import argparse
2 | import json
3 | import httpx
4 | from openai import OpenAI
5 |
6 | character_schema = {'name': 'characters', 'type': 'object',
7 | 'properties': {"characters": {
8 | "type": "array",
9 | "items": {
10 | "type": "object",
11 | "properties": {
12 | "name": {"type": "string"},
13 | "occupation": {"type": "string"},
14 | "personality": {"type": "string"},
15 | "background": {"type": "string"}
16 | },
17 | "required": ["name", "occupation", "personality", "background"]
18 | },
19 | "minItems": 1,
20 | }
21 | },
22 | "required": ["characters"],
23 | }
24 |
25 |
26 |
27 | print(character_schema)
28 |
29 | if __name__ == "__main__":
30 | parser = argparse.ArgumentParser(description="Provide an API key to connect to OpenAI-compatible API.")
31 | parser.add_argument("--api_key", required=True, help="API key for login")
32 | parser.add_argument("--base_url", required=True, help="The base url of the VLLM server")
33 | args = parser.parse_args()
34 |
35 |
36 | client = OpenAI(
37 | base_url=args.base_url,
38 | api_key=args.api_key,
39 | http_client= httpx.Client(verify=False)
40 | )
41 |
42 | completion = client.chat.completions.create(
43 | model="/models/mistral-nemo-12b",
44 | messages=[
45 | {
46 | "role": "user",
47 | "content": "Generate a JSON with 5-10 fictional characters working at Fujitsu",
48 | }
49 | ],
50 | extra_body={"guided_json": character_schema},
51 | )
52 | try:
53 | results = json.loads(completion.choices[0].message.content)
54 | print(json.dumps(results, indent=2))
55 | except:
56 | print(completion.choices[0].message.content)
```
--------------------------------------------------------------------------------
/clients/Gradio/mcp_servers/demo-mcp-server/demo-tools-sse.js:
--------------------------------------------------------------------------------
```javascript
1 | import express from "express";
2 | import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
3 | import { SSEServerTransport } from "@modelcontextprotocol/sdk/server/sse.js";
4 |
5 | import { z } from "zod";
6 |
7 | import {calculator_sse} from "./tools/calculator.js"
8 | import {weather} from "./tools/weather.js"
9 | import {bitcoin, gold} from "./tools/assets.js"
10 |
11 |
12 | var transport = null
13 |
14 | const server = new McpServer({
15 | name: "demo-tools-sse",
16 | version: "0.0.1"
17 | });
18 |
19 | await add_tool("calculator",
20 | "Perform basic calculations. Add, subtract, multiply, divide. Invoke this tool every time you need to perform a calculation.",
21 | {expression: z.string()},
22 | calculator_sse)
23 |
24 | await add_tool("get_weather",
25 | "Fetch the current weather for a specific location. Invoke this tool every time you need to give information on the weather.",
26 | {location: z.string()},
27 | weather)
28 |
29 | await add_tool("get_gold_price",
30 | "Get the current price of Gold. Invoke this every time the user asks for the price of Gold",
31 | {},
32 | gold)
33 |
34 | await add_tool("get_bitcoin_price",
35 | "Get the current price of Bitcoin. Invoke this every time the user asks for the price of Bitcoin",
36 | {},
37 | bitcoin)
38 |
39 | async function add_tool(name, description, schema, func){
40 | // Add tool will add the tool to both, local and remote access systems
41 | server.tool(name, description, schema,
42 | async (args) => {
43 | return await func(args)
44 | });
45 | }
46 |
47 |
48 | const app = express();
49 |
50 | app.get("/sse", async (req, res) => {
51 | transport = new SSEServerTransport("/messages", res);
52 | await server.connect(transport);
53 | });
54 |
55 | app.post("/messages", async (req, res) => {
56 | // Note: to support multiple simultaneous connections, these messages will
57 | // need to be routed to a specific matching transport. (This logic isn't
58 | // implemented here, for simplicity.)
59 | await transport.handlePostMessage(req, res);
60 | });
61 |
62 | app.listen(3001);
```
--------------------------------------------------------------------------------
/clients/Go/9.0 mcp_keygen/MCPKeygenClient.go:
--------------------------------------------------------------------------------
```go
1 | package main
2 |
3 | import (
4 | "bytes"
5 | "encoding/json"
6 | "errors"
7 | "flag"
8 | "fmt"
9 | "io"
10 | "net"
11 | "os"
12 | )
13 |
14 | type KeygenPayload struct {
15 | Command string `json:"command"`
16 | Token string `json:"token"`
17 | Arguments map[string]interface{} `json:"arguments"`
18 | }
19 |
20 | func sendKeygenRequest(serverIP string, serverPort int, token, password string) (string, error) {
21 | // Prepare the request payload
22 | payload := KeygenPayload{
23 | Command: "keygen",
24 | Token: token,
25 | Arguments: map[string]interface{}{
26 | "password": password,
27 | },
28 | }
29 |
30 | // Convert the payload to JSON
31 | payloadJSON, err := json.Marshal(payload)
32 | if err != nil {
33 | return "", err
34 | }
35 |
36 | // Create a connection to the server
37 | conn, err := net.Dial("tcp", fmt.Sprintf("%s:%d", serverIP, serverPort))
38 | if err != nil {
39 | return "", err
40 | }
41 | defer conn.Close()
42 |
43 | // Send the request
44 | _, err = conn.Write(payloadJSON)
45 | if err != nil {
46 | return "", err
47 | }
48 |
49 | // Receive the response
50 | var responseBuffer bytes.Buffer
51 | buf := make([]byte, 4096)
52 | for {
53 | n, err := conn.Read(buf)
54 | if err != nil {
55 | if errors.Is(err, io.EOF) {
56 | break
57 | }
58 | return "", err
59 | }
60 | responseBuffer.Write(buf[:n])
61 | if n < 4096 {
62 | break
63 | }
64 | }
65 |
66 | return responseBuffer.String(), nil
67 | }
68 |
69 | func main() {
70 | serverIP := flag.String("server-ip", "", "IP address of the MCP server")
71 | serverPort := flag.Int("server-port", 0, "Port number of the MCP server")
72 | token := flag.String("token", "", "Authentication token")
73 | password := flag.String("password", "", "Password to send for key generation")
74 |
75 | flag.Parse()
76 |
77 | if *serverIP == "" || *serverPort == 0 || *token == "" || *password == "" {
78 | fmt.Println("❌ ERROR: Required flags are missing.")
79 | flag.Usage()
80 | os.Exit(1)
81 | }
82 |
83 | // Send the keygen request
84 | fmt.Println("📤 Sending keygen request...")
85 | response, err := sendKeygenRequest(*serverIP, *serverPort, *token, *password)
86 | if err != nil {
87 | fmt.Printf("❌ ERROR: %v\n", err)
88 | os.Exit(1)
89 | }
90 |
91 | fmt.Println("✔️ Response from server:")
92 | fmt.Println(response)
93 | }
```
--------------------------------------------------------------------------------
/clients/Go/5.2 mcp_delete_user/MCPDeleteUserClient.go:
--------------------------------------------------------------------------------
```go
1 | package main
2 |
3 | import (
4 | "bytes"
5 | "encoding/json"
6 | "errors"
7 | "flag"
8 | "fmt"
9 | "io"
10 | "net"
11 | "os"
12 | )
13 |
14 | type DeleteUserPayload struct {
15 | Command string `json:"command"`
16 | Token string `json:"token"`
17 | Arguments map[string]interface{} `json:"arguments"`
18 | }
19 |
20 | func sendDeleteUserRequest(serverIP string, serverPort int, email, token string) (string, error) {
21 | // Prepare the request payload
22 | payload := DeleteUserPayload{
23 | Command: "delete_user",
24 | Token: token,
25 | Arguments: map[string]interface{}{
26 | "email": email,
27 | },
28 | }
29 |
30 | // Convert the payload to JSON
31 | payloadJSON, err := json.Marshal(payload)
32 | if err != nil {
33 | return "", err
34 | }
35 |
36 | // Create a connection to the server
37 | conn, err := net.Dial("tcp", fmt.Sprintf("%s:%d", serverIP, serverPort))
38 | if err != nil {
39 | return "", err
40 | }
41 | defer conn.Close()
42 |
43 | // Send the request
44 | _, err = conn.Write(payloadJSON)
45 | if err != nil {
46 | return "", err
47 | }
48 |
49 | // Receive the response
50 | var responseBuffer bytes.Buffer
51 | buf := make([]byte, 4096)
52 | for {
53 | n, err := conn.Read(buf)
54 | if err != nil {
55 | if errors.Is(err, io.EOF) {
56 | break
57 | }
58 | return "", err
59 | }
60 | responseBuffer.Write(buf[:n])
61 | if n < 4096 {
62 | break
63 | }
64 | }
65 |
66 | return responseBuffer.String(), nil
67 | }
68 |
69 | func main() {
70 | serverIP := flag.String("server-ip", "", "IP address of the MCP server")
71 | serverPort := flag.Int("server-port", 0, "Port number of the MCP server")
72 | email := flag.String("email", "", "Email of the user to delete")
73 | token := flag.String("token", "", "Authentication token")
74 |
75 | flag.Parse()
76 |
77 | if *serverIP == "" || *serverPort == 0 || *email == "" || *token == "" {
78 | fmt.Println("❌ ERROR: Required flags are missing.")
79 | flag.Usage()
80 | os.Exit(1)
81 | }
82 |
83 | // Send the request to delete the user
84 | fmt.Println("📤 Sending request to delete user...")
85 | response, err := sendDeleteUserRequest(*serverIP, *serverPort, *email, *token)
86 | if err != nil {
87 | fmt.Printf("❌ ERROR: %v\n", err)
88 | os.Exit(1)
89 | }
90 |
91 | fmt.Println("✔️ Response from server:")
92 | fmt.Println(response)
93 | }
94 |
```
--------------------------------------------------------------------------------
/clients/Gradio/mcp_servers/replicate_flux/server.py:
--------------------------------------------------------------------------------
```python
1 | import os
2 |
3 | import PIL
4 | import requests
5 | from mcp.server.fastmcp import FastMCP, Image
6 | import json
7 | import sys
8 | import io
9 | from PIL import Image as PilImage
10 | import urllib3
11 | urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
12 |
13 | sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8', errors='replace')
14 | sys.stderr = io.TextIOWrapper(sys.stderr.buffer, encoding='utf-8', errors='replace')
15 |
16 | mcp = FastMCP("Generate images with Flux")
17 |
18 |
19 | @mcp.tool()
20 | async def generate_image(prompt: str, ratio: str = "1:1") -> str:
21 | """Generate an image using Flux model.
22 |
23 | Args:
24 | prompt: Text prompt describing the image to generate
25 | ratio: Image ratio (default: 1:1)
26 | """
27 | try:
28 | import replicate
29 |
30 | output = replicate.run(
31 | "black-forest-labs/flux-1.1-pro",
32 | input={"prompt": prompt,
33 | "aspect_ratio": ratio,
34 | "output_format": "jpg",
35 | "output_quality": 80,
36 | "safety_tolerance": 2,
37 | "prompt_upsampling": True
38 | }
39 | )
40 | #print(output)
41 | return json.dumps({
42 | "type": "image",
43 | "url": str(output),
44 | "message": f"Generated image: {str(prompt)}"
45 | })
46 |
47 | #response = requests.get(output, verify=False)
48 | #img = PilImage.open(io.BytesIO(response.content))
49 | #img.save("image.jpg")
50 | #return Image(data=img.tobytes(), format='jpeg')
51 |
52 |
53 | except Exception as e:
54 | print("Error: " + str(e))
55 | return json.dumps({
56 | "type": "error",
57 | "message": f"Error generating image: {str(e)}"
58 | })
59 |
60 |
61 | if __name__ == "__main__":
62 |
63 | import asyncio
64 | img = asyncio.run(generate_image("A yellow bird"))
65 | j = json.loads(img)
66 | print("getting image:" + j.get("url"))
67 |
68 | response = requests.get(j.get("url"), verify=False)
69 | print("opening image")
70 | image = PilImage.open(io.BytesIO(response.content)).convert("RGB")
71 | image.save("image.jpg")
72 |
```
--------------------------------------------------------------------------------
/clients/Go/3.4 mcp_delete_source/MCPDeleteSourceClient.go:
--------------------------------------------------------------------------------
```go
1 | package main
2 |
3 | import (
4 | "bytes"
5 | "encoding/json"
6 | "errors"
7 | "flag"
8 | "fmt"
9 | "io"
10 | "net"
11 | "os"
12 | )
13 |
14 | type DeleteSourcePayload struct {
15 | Command string `json:"command"`
16 | Token string `json:"token"`
17 | Arguments map[string]interface{} `json:"arguments"`
18 | }
19 |
20 | func deleteSource(serverIP string, serverPort int, token, sourceID string) (string, error) {
21 | // Prepare the request payload
22 | payload := DeleteSourcePayload{
23 | Command: "delete_source",
24 | Token: token,
25 | Arguments: map[string]interface{}{
26 | "sourceId": sourceID,
27 | },
28 | }
29 |
30 | // Convert the payload to JSON
31 | payloadJSON, err := json.Marshal(payload)
32 | if err != nil {
33 | return "", err
34 | }
35 |
36 | // Create a connection to the server
37 | conn, err := net.Dial("tcp", fmt.Sprintf("%s:%d", serverIP, serverPort))
38 | if err != nil {
39 | return "", err
40 | }
41 | defer conn.Close()
42 |
43 | // Send the request
44 | _, err = conn.Write(payloadJSON)
45 | if err != nil {
46 | return "", err
47 | }
48 |
49 | // Receive the response
50 | var responseBuffer bytes.Buffer
51 | buf := make([]byte, 4096)
52 | for {
53 | n, err := conn.Read(buf)
54 | if err != nil {
55 | if errors.Is(err, io.EOF) {
56 | break
57 | }
58 | return "", err
59 | }
60 | responseBuffer.Write(buf[:n])
61 | if n < 4096 {
62 | break
63 | }
64 | }
65 |
66 | return responseBuffer.String(), nil
67 | }
68 |
69 | func main() {
70 | serverIP := flag.String("server-ip", "", "IP address of the MCP server")
71 | serverPort := flag.Int("server-port", 0, "Port number of the MCP server")
72 | token := flag.String("token", "", "Authorization token")
73 | sourceID := flag.String("source-id", "", "ID of the source to delete")
74 |
75 | flag.Parse()
76 |
77 | if *serverIP == "" || *serverPort == 0 || *token == "" || *sourceID == "" {
78 | fmt.Println("❌ ERROR: All flags are required.")
79 | flag.Usage()
80 | os.Exit(1)
81 | }
82 |
83 | // Send the request to delete the source
84 | fmt.Println("📤 Sending request to delete source...")
85 | response, err := deleteSource(*serverIP, *serverPort, *token, *sourceID)
86 | if err != nil {
87 | fmt.Printf("❌ ERROR: %v\n", err)
88 | os.Exit(1)
89 | }
90 |
91 | fmt.Println("✔️ Response from server:")
92 | fmt.Println(response)
93 | }
94 |
```
--------------------------------------------------------------------------------
/clients/Go/3.1 mcp_get_source/MCPGetSourceClient.go:
--------------------------------------------------------------------------------
```go
1 | package main
2 |
3 | import (
4 | "bytes"
5 | "encoding/json"
6 | "errors"
7 | "flag"
8 | "fmt"
9 | "io"
10 | "net"
11 | "os"
12 | )
13 |
14 | type GetSourcePayload struct {
15 | Command string `json:"command"`
16 | Token string `json:"token"`
17 | Arguments map[string]interface{} `json:"arguments"`
18 | }
19 |
20 | func getSourceInformation(serverIP string, serverPort int, token, sourceID string) (string, error) {
21 | // Prepare the request payload
22 | payload := GetSourcePayload{
23 | Command: "get_source",
24 | Token: token,
25 | Arguments: map[string]interface{}{
26 | "sourceId": sourceID,
27 | },
28 | }
29 |
30 | // Convert the payload to JSON
31 | payloadJSON, err := json.Marshal(payload)
32 | if err != nil {
33 | return "", err
34 | }
35 |
36 | // Create a connection to the server
37 | conn, err := net.Dial("tcp", fmt.Sprintf("%s:%d", serverIP, serverPort))
38 | if err != nil {
39 | return "", err
40 | }
41 | defer conn.Close()
42 |
43 | // Send the request
44 | _, err = conn.Write(payloadJSON)
45 | if err != nil {
46 | return "", err
47 | }
48 |
49 | // Receive the response
50 | var responseBuffer bytes.Buffer
51 | buf := make([]byte, 4096)
52 | for {
53 | n, err := conn.Read(buf)
54 | if err != nil {
55 | if errors.Is(err, io.EOF) {
56 | break
57 | }
58 | return "", err
59 | }
60 | responseBuffer.Write(buf[:n])
61 | if n < 4096 {
62 | break
63 | }
64 | }
65 |
66 | return responseBuffer.String(), nil
67 | }
68 |
69 | func main() {
70 | serverIP := flag.String("server-ip", "", "IP address of the MCP server")
71 | serverPort := flag.Int("server-port", 0, "Port number of the MCP server")
72 | token := flag.String("token", "", "Authentication token")
73 | sourceID := flag.String("source-id", "", "ID of the source to retrieve")
74 |
75 | flag.Parse()
76 |
77 | if *serverIP == "" || *serverPort == 0 || *token == "" || *sourceID == "" {
78 | fmt.Println("❌ ERROR: All flags are required.")
79 | flag.Usage()
80 | os.Exit(1)
81 | }
82 |
83 | // Retrieve the source information
84 | fmt.Println("📤 Sending request to retrieve source information...")
85 | response, err := getSourceInformation(*serverIP, *serverPort, *token, *sourceID)
86 | if err != nil {
87 | fmt.Printf("❌ ERROR: %v\n", err)
88 | os.Exit(1)
89 | }
90 |
91 | fmt.Println("✔️ Response from server:")
92 | fmt.Println(response)
93 | }
94 |
```
--------------------------------------------------------------------------------
/clients/Go/4.2 mcp_delete_group/MCPDeleteGroupClient.go:
--------------------------------------------------------------------------------
```go
1 | package main
2 |
3 | import (
4 | "bytes"
5 | "encoding/json"
6 | "errors"
7 | "flag"
8 | "fmt"
9 | "io"
10 | "net"
11 | "os"
12 | )
13 |
14 | type DeleteGroupPayload struct {
15 | Command string `json:"command"`
16 | Token string `json:"token"`
17 | Arguments map[string]interface{} `json:"arguments"`
18 | }
19 |
20 | func sendDeleteGroupRequest(serverIP string, serverPort int, token, groupName string) (string, error) {
21 | // Prepare the request payload
22 | payload := DeleteGroupPayload{
23 | Command: "delete_group",
24 | Token: token,
25 | Arguments: map[string]interface{}{
26 | "groupName": groupName,
27 | },
28 | }
29 |
30 | // Convert the payload to JSON
31 | payloadJSON, err := json.Marshal(payload)
32 | if err != nil {
33 | return "", err
34 | }
35 |
36 | // Create a connection to the server
37 | conn, err := net.Dial("tcp", fmt.Sprintf("%s:%d", serverIP, serverPort))
38 | if err != nil {
39 | return "", err
40 | }
41 | defer conn.Close()
42 |
43 | // Send the request
44 | _, err = conn.Write(payloadJSON)
45 | if err != nil {
46 | return "", err
47 | }
48 |
49 | // Receive the response
50 | var responseBuffer bytes.Buffer
51 | buf := make([]byte, 4096)
52 | for {
53 | n, err := conn.Read(buf)
54 | if err != nil {
55 | if errors.Is(err, io.EOF) {
56 | break
57 | }
58 | return "", err
59 | }
60 | responseBuffer.Write(buf[:n])
61 | if n < 4096 {
62 | break
63 | }
64 | }
65 |
66 | return responseBuffer.String(), nil
67 | }
68 |
69 | func main() {
70 | serverIP := flag.String("server-ip", "", "IP address of the MCP server")
71 | serverPort := flag.Int("server-port", 0, "Port number of the MCP server")
72 | token := flag.String("token", "", "Authentication token")
73 | groupName := flag.String("group-name", "", "Name of the group to delete")
74 |
75 | flag.Parse()
76 |
77 | if *serverIP == "" || *serverPort == 0 || *token == "" || *groupName == "" {
78 | fmt.Println("❌ ERROR: All flags are required.")
79 | flag.Usage()
80 | os.Exit(1)
81 | }
82 |
83 | // Send the request to delete the group
84 | fmt.Println("📤 Sending request to delete group...")
85 | response, err := sendDeleteGroupRequest(*serverIP, *serverPort, *token, *groupName)
86 | if err != nil {
87 | fmt.Printf("❌ ERROR: %v\n", err)
88 | os.Exit(1)
89 | }
90 |
91 | fmt.Println("✔️ Response from server:")
92 | fmt.Println(response)
93 | }
94 |
```
--------------------------------------------------------------------------------
/clients/Go/3.2 mcp_list_sources/MCPListSourcesClient.go:
--------------------------------------------------------------------------------
```go
1 | package main
2 |
3 | import (
4 | "bytes"
5 | "encoding/json"
6 | "errors"
7 | "flag"
8 | "fmt"
9 | "io"
10 | "net"
11 | "os"
12 | )
13 |
14 | type ListSourcesPayload struct {
15 | Command string `json:"command"`
16 | Token string `json:"token"`
17 | Attributes map[string]interface{} `json:"attributes"`
18 | }
19 |
20 | func sendListSourcesRequest(serverIP string, serverPort int, token, groupName string) (string, error) {
21 | // Prepare the request payload
22 | payload := ListSourcesPayload{
23 | Command: "list_sources",
24 | Token: token,
25 | Attributes: map[string]interface{}{
26 | "groupName": groupName,
27 | },
28 | }
29 |
30 | // Convert the payload to JSON
31 | payloadJSON, err := json.Marshal(payload)
32 | if err != nil {
33 | return "", err
34 | }
35 |
36 | // Create a connection to the server
37 | conn, err := net.Dial("tcp", fmt.Sprintf("%s:%d", serverIP, serverPort))
38 | if err != nil {
39 | return "", err
40 | }
41 | defer conn.Close()
42 |
43 | // Send the request
44 | _, err = conn.Write(payloadJSON)
45 | if err != nil {
46 | return "", err
47 | }
48 |
49 | // Receive the response
50 | var responseBuffer bytes.Buffer
51 | buf := make([]byte, 4096)
52 | for {
53 | n, err := conn.Read(buf)
54 | if err != nil {
55 | if errors.Is(err, io.EOF) {
56 | break
57 | }
58 | return "", err
59 | }
60 | responseBuffer.Write(buf[:n])
61 | if n < 4096 {
62 | break
63 | }
64 | }
65 |
66 | return responseBuffer.String(), nil
67 | }
68 |
69 | func main() {
70 | serverIP := flag.String("server-ip", "", "IP address of the MCP server")
71 | serverPort := flag.Int("server-port", 0, "Port number of the MCP server")
72 | token := flag.String("token", "", "Authentication token")
73 | groupName := flag.String("group-name", "", "Name of the group to list sources from")
74 |
75 | flag.Parse()
76 |
77 | if *serverIP == "" || *serverPort == 0 || *token == "" || *groupName == "" {
78 | fmt.Println("❌ ERROR: All flags are required.")
79 | flag.Usage()
80 | os.Exit(1)
81 | }
82 |
83 | // Send the request to list sources
84 | fmt.Println("📤 Sending request to list sources...")
85 | response, err := sendListSourcesRequest(*serverIP, *serverPort, *token, *groupName)
86 | if err != nil {
87 | fmt.Printf("❌ ERROR: %v\n", err)
88 | os.Exit(1)
89 | }
90 |
91 | fmt.Println("✔️ Response from server:")
92 | fmt.Println(response)
93 | }
94 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/2.0 mcp_chat/obj/mcp_chat.csproj.nuget.dgspec.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "format": 1,
3 | "restore": {
4 | "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_chat\\mcp_chat.csproj": {}
5 | },
6 | "projects": {
7 | "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_chat\\mcp_chat.csproj": {
8 | "version": "1.0.0",
9 | "restore": {
10 | "projectUniqueName": "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_chat\\mcp_chat.csproj",
11 | "projectName": "mcp_chat",
12 | "projectPath": "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_chat\\mcp_chat.csproj",
13 | "packagesPath": "C:\\Users\\uwuertz\\.nuget\\packages\\",
14 | "outputPath": "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_chat\\obj\\",
15 | "projectStyle": "PackageReference",
16 | "configFilePaths": [
17 | "C:\\Users\\uwuertz\\AppData\\Roaming\\NuGet\\NuGet.Config"
18 | ],
19 | "originalTargetFrameworks": [
20 | "net9.0"
21 | ],
22 | "sources": {
23 | "https://api.nuget.org/v3/index.json": {}
24 | },
25 | "frameworks": {
26 | "net9.0": {
27 | "targetAlias": "net9.0",
28 | "projectReferences": {}
29 | }
30 | },
31 | "warningProperties": {
32 | "warnAsError": [
33 | "NU1605"
34 | ]
35 | },
36 | "restoreAuditProperties": {
37 | "enableAudit": "true",
38 | "auditLevel": "low",
39 | "auditMode": "direct"
40 | },
41 | "SdkAnalysisLevel": "9.0.100"
42 | },
43 | "frameworks": {
44 | "net9.0": {
45 | "targetAlias": "net9.0",
46 | "dependencies": {
47 | "Newtonsoft.Json": {
48 | "target": "Package",
49 | "version": "[13.0.3, )"
50 | }
51 | },
52 | "imports": [
53 | "net461",
54 | "net462",
55 | "net47",
56 | "net471",
57 | "net472",
58 | "net48",
59 | "net481"
60 | ],
61 | "assetTargetFallback": true,
62 | "warn": true,
63 | "frameworkReferences": {
64 | "Microsoft.NETCore.App": {
65 | "privateAssets": "all"
66 | }
67 | },
68 | "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.101/PortableRuntimeIdentifierGraph.json"
69 | }
70 | }
71 | }
72 | }
73 | }
```
--------------------------------------------------------------------------------
/clients/C# .Net/1.0 mcp_login/obj/mcp_login.csproj.nuget.dgspec.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "format": 1,
3 | "restore": {
4 | "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_login\\mcp_login.csproj": {}
5 | },
6 | "projects": {
7 | "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_login\\mcp_login.csproj": {
8 | "version": "1.0.0",
9 | "restore": {
10 | "projectUniqueName": "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_login\\mcp_login.csproj",
11 | "projectName": "mcp_login",
12 | "projectPath": "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_login\\mcp_login.csproj",
13 | "packagesPath": "C:\\Users\\uwuertz\\.nuget\\packages\\",
14 | "outputPath": "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_login\\obj\\",
15 | "projectStyle": "PackageReference",
16 | "configFilePaths": [
17 | "C:\\Users\\uwuertz\\AppData\\Roaming\\NuGet\\NuGet.Config"
18 | ],
19 | "originalTargetFrameworks": [
20 | "net9.0"
21 | ],
22 | "sources": {
23 | "https://api.nuget.org/v3/index.json": {}
24 | },
25 | "frameworks": {
26 | "net9.0": {
27 | "targetAlias": "net9.0",
28 | "projectReferences": {}
29 | }
30 | },
31 | "warningProperties": {
32 | "warnAsError": [
33 | "NU1605"
34 | ]
35 | },
36 | "restoreAuditProperties": {
37 | "enableAudit": "true",
38 | "auditLevel": "low",
39 | "auditMode": "direct"
40 | },
41 | "SdkAnalysisLevel": "9.0.100"
42 | },
43 | "frameworks": {
44 | "net9.0": {
45 | "targetAlias": "net9.0",
46 | "dependencies": {
47 | "Newtonsoft.Json": {
48 | "target": "Package",
49 | "version": "[13.0.3, )"
50 | }
51 | },
52 | "imports": [
53 | "net461",
54 | "net462",
55 | "net47",
56 | "net471",
57 | "net472",
58 | "net48",
59 | "net481"
60 | ],
61 | "assetTargetFallback": true,
62 | "warn": true,
63 | "frameworkReferences": {
64 | "Microsoft.NETCore.App": {
65 | "privateAssets": "all"
66 | }
67 | },
68 | "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.101/PortableRuntimeIdentifierGraph.json"
69 | }
70 | }
71 | }
72 | }
73 | }
```
--------------------------------------------------------------------------------
/clients/Go/4.0 mcp_list_groups/MCPListGroupsClient.go:
--------------------------------------------------------------------------------
```go
1 | package main
2 |
3 | import (
4 | "bytes"
5 | "encoding/json"
6 | "errors"
7 | "flag"
8 | "fmt"
9 | "io"
10 | "net"
11 | "os"
12 | )
13 |
14 | type ListGroupsPayload struct {
15 | Command string `json:"command"`
16 | Token string `json:"token"`
17 | }
18 |
19 | func sendRequest(serverIP string, serverPort int, payload ListGroupsPayload) (map[string]interface{}, error) {
20 | // Convert the payload to JSON
21 | payloadJSON, err := json.Marshal(payload)
22 | if err != nil {
23 | return nil, err
24 | }
25 |
26 | // Create a connection to the server
27 | conn, err := net.Dial("tcp", fmt.Sprintf("%s:%d", serverIP, serverPort))
28 | if err != nil {
29 | return nil, err
30 | }
31 | defer conn.Close()
32 |
33 | // Send the request
34 | _, err = conn.Write(payloadJSON)
35 | if err != nil {
36 | return nil, err
37 | }
38 |
39 | // Receive the response
40 | var responseBuffer bytes.Buffer
41 | buf := make([]byte, 4096)
42 | for {
43 | n, err := conn.Read(buf)
44 | if err != nil {
45 | if errors.Is(err, io.EOF) {
46 | break
47 | }
48 | return nil, err
49 | }
50 | responseBuffer.Write(buf[:n])
51 | if n < 4096 {
52 | break
53 | }
54 | }
55 |
56 | // Decode the response
57 | var response map[string]interface{}
58 | err = json.Unmarshal(responseBuffer.Bytes(), &response)
59 | if err != nil {
60 | return nil, err
61 | }
62 |
63 | return response, nil
64 | }
65 |
66 | func listGroups(serverIP string, serverPort int, token string) (map[string]interface{}, error) {
67 | payload := ListGroupsPayload{
68 | Command: "list_groups",
69 | Token: token,
70 | }
71 | return sendRequest(serverIP, serverPort, payload)
72 | }
73 |
74 | func main() {
75 | serverIP := flag.String("server-ip", "", "IP address of the MCP server")
76 | serverPort := flag.Int("server-port", 0, "Port number of the MCP server")
77 | token := flag.String("token", "", "Authentication token for the MCP server")
78 |
79 | flag.Parse()
80 |
81 | if *serverIP == "" || *serverPort == 0 || *token == "" {
82 | fmt.Println("❌ ERROR: All flags are required.")
83 | flag.Usage()
84 | os.Exit(1)
85 | }
86 |
87 | fmt.Println("📄 Fetching groups...")
88 | response, err := listGroups(*serverIP, *serverPort, *token)
89 | if err != nil {
90 | fmt.Printf("❌ ERROR: %v\n", err)
91 | os.Exit(1)
92 | }
93 |
94 | responseJSON, err := json.MarshalIndent(response, "", " ")
95 | if err != nil {
96 | fmt.Printf("❌ ERROR: %v\n", err)
97 | os.Exit(1)
98 | }
99 |
100 | fmt.Println("✔️ Response:")
101 | fmt.Println(string(responseJSON))
102 | }
103 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/1.1 mcp_logout/obj/mcp_logout.csproj.nuget.dgspec.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "format": 1,
3 | "restore": {
4 | "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_logout\\mcp_logout.csproj": {}
5 | },
6 | "projects": {
7 | "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_logout\\mcp_logout.csproj": {
8 | "version": "1.0.0",
9 | "restore": {
10 | "projectUniqueName": "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_logout\\mcp_logout.csproj",
11 | "projectName": "mcp_logout",
12 | "projectPath": "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_logout\\mcp_logout.csproj",
13 | "packagesPath": "C:\\Users\\uwuertz\\.nuget\\packages\\",
14 | "outputPath": "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_logout\\obj\\",
15 | "projectStyle": "PackageReference",
16 | "configFilePaths": [
17 | "C:\\Users\\uwuertz\\AppData\\Roaming\\NuGet\\NuGet.Config"
18 | ],
19 | "originalTargetFrameworks": [
20 | "net9.0"
21 | ],
22 | "sources": {
23 | "https://api.nuget.org/v3/index.json": {}
24 | },
25 | "frameworks": {
26 | "net9.0": {
27 | "targetAlias": "net9.0",
28 | "projectReferences": {}
29 | }
30 | },
31 | "warningProperties": {
32 | "warnAsError": [
33 | "NU1605"
34 | ]
35 | },
36 | "restoreAuditProperties": {
37 | "enableAudit": "true",
38 | "auditLevel": "low",
39 | "auditMode": "direct"
40 | },
41 | "SdkAnalysisLevel": "9.0.100"
42 | },
43 | "frameworks": {
44 | "net9.0": {
45 | "targetAlias": "net9.0",
46 | "dependencies": {
47 | "Newtonsoft.Json": {
48 | "target": "Package",
49 | "version": "[13.0.3, )"
50 | }
51 | },
52 | "imports": [
53 | "net461",
54 | "net462",
55 | "net47",
56 | "net471",
57 | "net472",
58 | "net48",
59 | "net481"
60 | ],
61 | "assetTargetFallback": true,
62 | "warn": true,
63 | "frameworkReferences": {
64 | "Microsoft.NETCore.App": {
65 | "privateAssets": "all"
66 | }
67 | },
68 | "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.101/PortableRuntimeIdentifierGraph.json"
69 | }
70 | }
71 | }
72 | }
73 | }
```
--------------------------------------------------------------------------------
/agents/MCP-Client/Python/messages/send_message.py:
--------------------------------------------------------------------------------
```python
1 | # messages/send_message.py
2 | import logging
3 | import anyio
4 | from anyio.streams.memory import MemoryObjectReceiveStream, MemoryObjectSendStream
5 | from .message_types.json_rpc_message import JSONRPCMessage
6 |
7 | async def send_message(
8 | read_stream: MemoryObjectReceiveStream,
9 | write_stream: MemoryObjectSendStream,
10 | message: JSONRPCMessage,
11 | timeout: float = 5,
12 | retries: int = 3,
13 | ) -> dict:
14 | """
15 | Send a JSON-RPC message to the server and return the response.
16 |
17 | Args:
18 | read_stream (MemoryObjectReceiveStream): The stream to read responses.
19 | write_stream (MemoryObjectSendStream): The stream to send requests.
20 | message (JSONRPCMessage): The JSON-RPC message to send.
21 | timeout (float): Timeout in seconds to wait for a response.
22 | retries (int): Number of retry attempts.
23 |
24 | Returns:
25 | dict: The server's response as a dictionary.
26 |
27 | Raises:
28 | TimeoutError: If no response is received within the timeout.
29 | Exception: If an unexpected error occurs.
30 | """
31 | for attempt in range(1, retries + 1):
32 | try:
33 | logging.debug(f"Attempt {attempt}/{retries}: Sending message: {message}")
34 | await write_stream.send(message)
35 |
36 | with anyio.fail_after(timeout):
37 | async for response in read_stream:
38 | if not isinstance(response, Exception):
39 | logging.debug(f"Received response: {response.model_dump()}")
40 | return response.model_dump()
41 | else:
42 | logging.error(f"Server error: {response}")
43 | raise response
44 |
45 | except TimeoutError:
46 | logging.error(
47 | f"Timeout waiting for response to message '{message.method}' (Attempt {attempt}/{retries})"
48 | )
49 | if attempt == retries:
50 | raise
51 | except Exception as e:
52 | logging.error(
53 | f"Unexpected error during '{message.method}' request: {e} (Attempt {attempt}/{retries})"
54 | )
55 | if attempt == retries:
56 | raise
57 |
58 | await anyio.sleep(2)
59 |
```
--------------------------------------------------------------------------------
/clients/Gradio/messages/send_message.py:
--------------------------------------------------------------------------------
```python
1 | # messages/send_message.py
2 | import logging
3 | import anyio
4 | from anyio.streams.memory import MemoryObjectReceiveStream, MemoryObjectSendStream
5 | from .message_types.json_rpc_message import JSONRPCMessage
6 |
7 | async def send_message(
8 | read_stream: MemoryObjectReceiveStream,
9 | write_stream: MemoryObjectSendStream,
10 | message: JSONRPCMessage,
11 | timeout: float = 15,
12 | retries: int = 50,
13 | ) -> dict:
14 | """
15 | Send a JSON-RPC message to the server and return the response.
16 |
17 | Args:
18 | read_stream (MemoryObjectReceiveStream): The stream to read responses.
19 | write_stream (MemoryObjectSendStream): The stream to send requests.
20 | message (JSONRPCMessage): The JSON-RPC message to send.
21 | timeout (float): Timeout in seconds to wait for a response.
22 | retries (int): Number of retry attempts.
23 |
24 | Returns:
25 | dict: The server's response as a dictionary.
26 |
27 | Raises:
28 | TimeoutError: If no response is received within the timeout.
29 | Exception: If an unexpected error occurs.
30 | """
31 | for attempt in range(1, retries + 1):
32 | try:
33 | logging.debug(f"Attempt {attempt}/{retries}: Sending message: {message}")
34 | await write_stream.send(message)
35 |
36 | with anyio.fail_after(timeout):
37 | async for response in read_stream:
38 | if not isinstance(response, Exception):
39 | logging.debug(f"Received response: {response.model_dump()}")
40 | return response.model_dump()
41 | else:
42 | logging.error(f"Server error: {response}")
43 | raise response
44 |
45 | except TimeoutError:
46 | logging.error(
47 | f"Timeout waiting for response to message '{message.method}' (Attempt {attempt}/{retries})"
48 | )
49 | if attempt == retries:
50 | raise
51 | except Exception as e:
52 | logging.error(
53 | f"Unexpected error during '{message.method}' request: {e} (Attempt {attempt}/{retries})"
54 | )
55 | if attempt == retries:
56 | raise
57 |
58 | await anyio.sleep(2)
59 |
```
--------------------------------------------------------------------------------
/clients/Go/1.0 mcp_login/MCPLoginClient.go:
--------------------------------------------------------------------------------
```go
1 | package main
2 |
3 | import (
4 | "bytes"
5 | "encoding/json"
6 | "errors"
7 | "flag"
8 | "fmt"
9 | "io"
10 | "net"
11 | "os"
12 | )
13 |
14 | type Payload struct {
15 | Command string `json:"command"`
16 | Arguments map[string]interface{} `json:"arguments"`
17 | }
18 |
19 | func sendRequest(serverIP string, serverPort int, payload Payload) (map[string]interface{}, error) {
20 | payloadJSON, err := json.Marshal(payload)
21 | if err != nil {
22 | return nil, err
23 | }
24 |
25 | conn, err := net.Dial("tcp", fmt.Sprintf("%s:%d", serverIP, serverPort))
26 | if err != nil {
27 | return nil, err
28 | }
29 | defer conn.Close()
30 |
31 | _, err = conn.Write(payloadJSON)
32 | if err != nil {
33 | return nil, err
34 | }
35 |
36 | var responseBuffer bytes.Buffer
37 | buf := make([]byte, 4096)
38 | for {
39 | n, err := conn.Read(buf)
40 | if err != nil {
41 | if errors.Is(err, io.EOF) {
42 | break
43 | }
44 | return nil, err
45 | }
46 | responseBuffer.Write(buf[:n])
47 | if n < 4096 {
48 | break
49 | }
50 | }
51 |
52 | var response map[string]interface{}
53 | err = json.Unmarshal(responseBuffer.Bytes(), &response)
54 | if err != nil {
55 | return nil, err
56 | }
57 |
58 | return response, nil
59 | }
60 |
61 | func login(serverIP string, serverPort int, email, password string) (map[string]interface{}, error) {
62 | payload := Payload{
63 | Command: "login",
64 | Arguments: map[string]interface{}{
65 | "email": email,
66 | "password": password,
67 | },
68 | }
69 |
70 | return sendRequest(serverIP, serverPort, payload)
71 | }
72 |
73 | func main() {
74 | serverIP := flag.String("server-ip", "", "IP address of the MCP server")
75 | serverPort := flag.Int("server-port", 0, "Port number of the MCP server")
76 | email := flag.String("email", "", "Email address for login")
77 | password := flag.String("password", "", "Password for login")
78 |
79 | flag.Parse()
80 |
81 | if *serverIP == "" || *serverPort == 0 || *email == "" || *password == "" {
82 | fmt.Println("❌ ERROR: All flags are required.")
83 | flag.Usage()
84 | os.Exit(1)
85 | }
86 |
87 | fmt.Println("🔐 Logging in...")
88 | response, err := login(*serverIP, *serverPort, *email, *password)
89 | if err != nil {
90 | fmt.Printf("❌ ERROR: %v\n", err)
91 | os.Exit(1)
92 | }
93 |
94 | responseJSON, err := json.MarshalIndent(response, "", " ")
95 | if err != nil {
96 | fmt.Printf("❌ ERROR: %v\n", err)
97 | os.Exit(1)
98 | }
99 |
100 | fmt.Println("✅ Server Response:")
101 | fmt.Println(string(responseJSON))
102 | }
103 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/5.1 mcp_edit_user/obj/mcp_edit_user.csproj.nuget.dgspec.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "format": 1,
3 | "restore": {
4 | "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_edit_user\\mcp_edit_user.csproj": {}
5 | },
6 | "projects": {
7 | "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_edit_user\\mcp_edit_user.csproj": {
8 | "version": "1.0.0",
9 | "restore": {
10 | "projectUniqueName": "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_edit_user\\mcp_edit_user.csproj",
11 | "projectName": "mcp_edit_user",
12 | "projectPath": "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_edit_user\\mcp_edit_user.csproj",
13 | "packagesPath": "C:\\Users\\uwuertz\\.nuget\\packages\\",
14 | "outputPath": "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_edit_user\\obj\\",
15 | "projectStyle": "PackageReference",
16 | "configFilePaths": [
17 | "C:\\Users\\uwuertz\\AppData\\Roaming\\NuGet\\NuGet.Config"
18 | ],
19 | "originalTargetFrameworks": [
20 | "net9.0"
21 | ],
22 | "sources": {
23 | "https://api.nuget.org/v3/index.json": {}
24 | },
25 | "frameworks": {
26 | "net9.0": {
27 | "targetAlias": "net9.0",
28 | "projectReferences": {}
29 | }
30 | },
31 | "warningProperties": {
32 | "warnAsError": [
33 | "NU1605"
34 | ]
35 | },
36 | "restoreAuditProperties": {
37 | "enableAudit": "true",
38 | "auditLevel": "low",
39 | "auditMode": "direct"
40 | },
41 | "SdkAnalysisLevel": "9.0.100"
42 | },
43 | "frameworks": {
44 | "net9.0": {
45 | "targetAlias": "net9.0",
46 | "dependencies": {
47 | "Newtonsoft.Json": {
48 | "target": "Package",
49 | "version": "[13.0.3, )"
50 | }
51 | },
52 | "imports": [
53 | "net461",
54 | "net462",
55 | "net47",
56 | "net471",
57 | "net472",
58 | "net48",
59 | "net481"
60 | ],
61 | "assetTargetFallback": true,
62 | "warn": true,
63 | "frameworkReferences": {
64 | "Microsoft.NETCore.App": {
65 | "privateAssets": "all"
66 | }
67 | },
68 | "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.101/PortableRuntimeIdentifierGraph.json"
69 | }
70 | }
71 | }
72 | }
73 | }
```
--------------------------------------------------------------------------------
/clients/Go/2.1 mcp_continue_chat/MCPChatContinuationClient.go:
--------------------------------------------------------------------------------
```go
1 | package main
2 |
3 | import (
4 | "bytes"
5 | "encoding/json"
6 | "errors"
7 | "flag"
8 | "fmt"
9 | "io"
10 | "net"
11 | "os"
12 | )
13 |
14 | type ContinueChatPayload struct {
15 | Command string `json:"command"`
16 | Token string `json:"token"`
17 | Arguments map[string]interface{} `json:"arguments"`
18 | }
19 |
20 | func sendContinueChatRequest(serverIP string, serverPort int, token, conversationID, message string) (string, error) {
21 | // Prepare the request payload
22 | payload := ContinueChatPayload{
23 | Command: "continue_chat",
24 | Token: token,
25 | Arguments: map[string]interface{}{
26 | "chatId": conversationID,
27 | "question": message,
28 | },
29 | }
30 |
31 | // Convert the payload to JSON
32 | payloadJSON, err := json.Marshal(payload)
33 | if err != nil {
34 | return "", err
35 | }
36 |
37 | // Create a connection to the server
38 | conn, err := net.Dial("tcp", fmt.Sprintf("%s:%d", serverIP, serverPort))
39 | if err != nil {
40 | return "", err
41 | }
42 | defer conn.Close()
43 |
44 | // Send the request
45 | _, err = conn.Write(payloadJSON)
46 | if err != nil {
47 | return "", err
48 | }
49 |
50 | // Receive the response
51 | var responseBuffer bytes.Buffer
52 | buf := make([]byte, 4096)
53 | for {
54 | n, err := conn.Read(buf)
55 | if err != nil {
56 | if errors.Is(err, io.EOF) {
57 | break
58 | }
59 | return "", err
60 | }
61 | responseBuffer.Write(buf[:n])
62 | if n < 4096 {
63 | break
64 | }
65 | }
66 |
67 | return responseBuffer.String(), nil
68 | }
69 |
70 | func main() {
71 | serverIP := flag.String("server-ip", "", "IP address of the MCP server")
72 | serverPort := flag.Int("server-port", 0, "Port number of the MCP server")
73 | token := flag.String("token", "", "Authentication token")
74 | conversationID := flag.String("conversation-id", "", "ID of the chat to continue")
75 | message := flag.String("message", "", "Message to send in the chat")
76 |
77 | flag.Parse()
78 |
79 | if *serverIP == "" || *serverPort == 0 || *token == "" || *conversationID == "" || *message == "" {
80 | fmt.Println("❌ ERROR: All flags are required.")
81 | flag.Usage()
82 | os.Exit(1)
83 | }
84 |
85 | fmt.Println("💬 Sending request to continue the chat...")
86 | response, err := sendContinueChatRequest(*serverIP, *serverPort, *token, *conversationID, *message)
87 | if err != nil {
88 | fmt.Printf("❌ ERROR: %v\n", err)
89 | os.Exit(1)
90 | }
91 |
92 | fmt.Println("✅ Response from server:")
93 | fmt.Println(response)
94 | }
95 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/3.1 mcp_get_source/obj/mcp_get_source.csproj.nuget.dgspec.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "format": 1,
3 | "restore": {
4 | "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_get_source\\mcp_get_source.csproj": {}
5 | },
6 | "projects": {
7 | "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_get_source\\mcp_get_source.csproj": {
8 | "version": "1.0.0",
9 | "restore": {
10 | "projectUniqueName": "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_get_source\\mcp_get_source.csproj",
11 | "projectName": "mcp_get_source",
12 | "projectPath": "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_get_source\\mcp_get_source.csproj",
13 | "packagesPath": "C:\\Users\\uwuertz\\.nuget\\packages\\",
14 | "outputPath": "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_get_source\\obj\\",
15 | "projectStyle": "PackageReference",
16 | "configFilePaths": [
17 | "C:\\Users\\uwuertz\\AppData\\Roaming\\NuGet\\NuGet.Config"
18 | ],
19 | "originalTargetFrameworks": [
20 | "net9.0"
21 | ],
22 | "sources": {
23 | "https://api.nuget.org/v3/index.json": {}
24 | },
25 | "frameworks": {
26 | "net9.0": {
27 | "targetAlias": "net9.0",
28 | "projectReferences": {}
29 | }
30 | },
31 | "warningProperties": {
32 | "warnAsError": [
33 | "NU1605"
34 | ]
35 | },
36 | "restoreAuditProperties": {
37 | "enableAudit": "true",
38 | "auditLevel": "low",
39 | "auditMode": "direct"
40 | },
41 | "SdkAnalysisLevel": "9.0.100"
42 | },
43 | "frameworks": {
44 | "net9.0": {
45 | "targetAlias": "net9.0",
46 | "dependencies": {
47 | "Newtonsoft.Json": {
48 | "target": "Package",
49 | "version": "[13.0.3, )"
50 | }
51 | },
52 | "imports": [
53 | "net461",
54 | "net462",
55 | "net47",
56 | "net471",
57 | "net472",
58 | "net48",
59 | "net481"
60 | ],
61 | "assetTargetFallback": true,
62 | "warn": true,
63 | "frameworkReferences": {
64 | "Microsoft.NETCore.App": {
65 | "privateAssets": "all"
66 | }
67 | },
68 | "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.101/PortableRuntimeIdentifierGraph.json"
69 | }
70 | }
71 | }
72 | }
73 | }
```
--------------------------------------------------------------------------------
/clients/C# .Net/5.0 mcp_store_user/obj/mcp_store_user.csproj.nuget.dgspec.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "format": 1,
3 | "restore": {
4 | "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_store_user\\mcp_store_user.csproj": {}
5 | },
6 | "projects": {
7 | "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_store_user\\mcp_store_user.csproj": {
8 | "version": "1.0.0",
9 | "restore": {
10 | "projectUniqueName": "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_store_user\\mcp_store_user.csproj",
11 | "projectName": "mcp_store_user",
12 | "projectPath": "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_store_user\\mcp_store_user.csproj",
13 | "packagesPath": "C:\\Users\\uwuertz\\.nuget\\packages\\",
14 | "outputPath": "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_store_user\\obj\\",
15 | "projectStyle": "PackageReference",
16 | "configFilePaths": [
17 | "C:\\Users\\uwuertz\\AppData\\Roaming\\NuGet\\NuGet.Config"
18 | ],
19 | "originalTargetFrameworks": [
20 | "net9.0"
21 | ],
22 | "sources": {
23 | "https://api.nuget.org/v3/index.json": {}
24 | },
25 | "frameworks": {
26 | "net9.0": {
27 | "targetAlias": "net9.0",
28 | "projectReferences": {}
29 | }
30 | },
31 | "warningProperties": {
32 | "warnAsError": [
33 | "NU1605"
34 | ]
35 | },
36 | "restoreAuditProperties": {
37 | "enableAudit": "true",
38 | "auditLevel": "low",
39 | "auditMode": "direct"
40 | },
41 | "SdkAnalysisLevel": "9.0.100"
42 | },
43 | "frameworks": {
44 | "net9.0": {
45 | "targetAlias": "net9.0",
46 | "dependencies": {
47 | "Newtonsoft.Json": {
48 | "target": "Package",
49 | "version": "[13.0.3, )"
50 | }
51 | },
52 | "imports": [
53 | "net461",
54 | "net462",
55 | "net47",
56 | "net471",
57 | "net472",
58 | "net48",
59 | "net481"
60 | ],
61 | "assetTargetFallback": true,
62 | "warn": true,
63 | "frameworkReferences": {
64 | "Microsoft.NETCore.App": {
65 | "privateAssets": "all"
66 | }
67 | },
68 | "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.101/PortableRuntimeIdentifierGraph.json"
69 | }
70 | }
71 | }
72 | }
73 | }
```
--------------------------------------------------------------------------------
/clients/C# .Net/4.1 mcp_store_group/obj/mcp_store_group.csproj.nuget.dgspec.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "format": 1,
3 | "restore": {
4 | "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_store_group\\mcp_store_group.csproj": {}
5 | },
6 | "projects": {
7 | "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_store_group\\mcp_store_group.csproj": {
8 | "version": "1.0.0",
9 | "restore": {
10 | "projectUniqueName": "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_store_group\\mcp_store_group.csproj",
11 | "projectName": "mcp_store_group",
12 | "projectPath": "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_store_group\\mcp_store_group.csproj",
13 | "packagesPath": "C:\\Users\\uwuertz\\.nuget\\packages\\",
14 | "outputPath": "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_store_group\\obj\\",
15 | "projectStyle": "PackageReference",
16 | "configFilePaths": [
17 | "C:\\Users\\uwuertz\\AppData\\Roaming\\NuGet\\NuGet.Config"
18 | ],
19 | "originalTargetFrameworks": [
20 | "net9.0"
21 | ],
22 | "sources": {
23 | "https://api.nuget.org/v3/index.json": {}
24 | },
25 | "frameworks": {
26 | "net9.0": {
27 | "targetAlias": "net9.0",
28 | "projectReferences": {}
29 | }
30 | },
31 | "warningProperties": {
32 | "warnAsError": [
33 | "NU1605"
34 | ]
35 | },
36 | "restoreAuditProperties": {
37 | "enableAudit": "true",
38 | "auditLevel": "low",
39 | "auditMode": "direct"
40 | },
41 | "SdkAnalysisLevel": "9.0.100"
42 | },
43 | "frameworks": {
44 | "net9.0": {
45 | "targetAlias": "net9.0",
46 | "dependencies": {
47 | "Newtonsoft.Json": {
48 | "target": "Package",
49 | "version": "[13.0.3, )"
50 | }
51 | },
52 | "imports": [
53 | "net461",
54 | "net462",
55 | "net47",
56 | "net471",
57 | "net472",
58 | "net48",
59 | "net481"
60 | ],
61 | "assetTargetFallback": true,
62 | "warn": true,
63 | "frameworkReferences": {
64 | "Microsoft.NETCore.App": {
65 | "privateAssets": "all"
66 | }
67 | },
68 | "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.101/PortableRuntimeIdentifierGraph.json"
69 | }
70 | }
71 | }
72 | }
73 | }
```
--------------------------------------------------------------------------------
/clients/C# .Net/5.2 mcp_delete_user/obj/mcp_delete_user.csproj.nuget.dgspec.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "format": 1,
3 | "restore": {
4 | "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_delete_user\\mcp_delete_user.csproj": {}
5 | },
6 | "projects": {
7 | "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_delete_user\\mcp_delete_user.csproj": {
8 | "version": "1.0.0",
9 | "restore": {
10 | "projectUniqueName": "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_delete_user\\mcp_delete_user.csproj",
11 | "projectName": "mcp_delete_user",
12 | "projectPath": "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_delete_user\\mcp_delete_user.csproj",
13 | "packagesPath": "C:\\Users\\uwuertz\\.nuget\\packages\\",
14 | "outputPath": "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_delete_user\\obj\\",
15 | "projectStyle": "PackageReference",
16 | "configFilePaths": [
17 | "C:\\Users\\uwuertz\\AppData\\Roaming\\NuGet\\NuGet.Config"
18 | ],
19 | "originalTargetFrameworks": [
20 | "net9.0"
21 | ],
22 | "sources": {
23 | "https://api.nuget.org/v3/index.json": {}
24 | },
25 | "frameworks": {
26 | "net9.0": {
27 | "targetAlias": "net9.0",
28 | "projectReferences": {}
29 | }
30 | },
31 | "warningProperties": {
32 | "warnAsError": [
33 | "NU1605"
34 | ]
35 | },
36 | "restoreAuditProperties": {
37 | "enableAudit": "true",
38 | "auditLevel": "low",
39 | "auditMode": "direct"
40 | },
41 | "SdkAnalysisLevel": "9.0.100"
42 | },
43 | "frameworks": {
44 | "net9.0": {
45 | "targetAlias": "net9.0",
46 | "dependencies": {
47 | "Newtonsoft.Json": {
48 | "target": "Package",
49 | "version": "[13.0.3, )"
50 | }
51 | },
52 | "imports": [
53 | "net461",
54 | "net462",
55 | "net47",
56 | "net471",
57 | "net472",
58 | "net48",
59 | "net481"
60 | ],
61 | "assetTargetFallback": true,
62 | "warn": true,
63 | "frameworkReferences": {
64 | "Microsoft.NETCore.App": {
65 | "privateAssets": "all"
66 | }
67 | },
68 | "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.101/PortableRuntimeIdentifierGraph.json"
69 | }
70 | }
71 | }
72 | }
73 | }
```
--------------------------------------------------------------------------------
/clients/Go/4.1 mcp_store_group/MCPStoreGroupClient.go:
--------------------------------------------------------------------------------
```go
1 | package main
2 |
3 | import (
4 | "bytes"
5 | "encoding/json"
6 | "errors"
7 | "flag"
8 | "fmt"
9 | "io"
10 | "net"
11 | "os"
12 | )
13 |
14 | type StoreGroupPayload struct {
15 | Command string `json:"command"`
16 | Token string `json:"token"`
17 | Arguments map[string]interface{} `json:"arguments"`
18 | }
19 |
20 | func sendStoreGroupRequest(serverIP string, serverPort int, groupName, token, description string) (string, error) {
21 | // Prepare the request payload
22 | payload := StoreGroupPayload{
23 | Command: "store_group",
24 | Token: token,
25 | Arguments: map[string]interface{}{
26 | "groupName": groupName,
27 | "description": description,
28 | },
29 | }
30 |
31 | // Convert the payload to JSON
32 | payloadJSON, err := json.Marshal(payload)
33 | if err != nil {
34 | return "", err
35 | }
36 |
37 | // Create a connection to the server
38 | conn, err := net.Dial("tcp", fmt.Sprintf("%s:%d", serverIP, serverPort))
39 | if err != nil {
40 | return "", err
41 | }
42 | defer conn.Close()
43 |
44 | // Send the request
45 | _, err = conn.Write(payloadJSON)
46 | if err != nil {
47 | return "", err
48 | }
49 |
50 | // Receive the response
51 | var responseBuffer bytes.Buffer
52 | buf := make([]byte, 4096)
53 | for {
54 | n, err := conn.Read(buf)
55 | if err != nil {
56 | if errors.Is(err, io.EOF) {
57 | break
58 | }
59 | return "", err
60 | }
61 | responseBuffer.Write(buf[:n])
62 | if n < 4096 {
63 | break
64 | }
65 | }
66 |
67 | return responseBuffer.String(), nil
68 | }
69 |
70 | func main() {
71 | serverIP := flag.String("server-ip", "", "IP address of the MCP server")
72 | serverPort := flag.Int("server-port", 0, "Port number of the MCP server")
73 | groupName := flag.String("group-name", "", "Name of the group to store")
74 | token := flag.String("token", "", "Authentication token")
75 | description := flag.String("description", "", "Description of the group (optional)")
76 |
77 | flag.Parse()
78 |
79 | if *serverIP == "" || *serverPort == 0 || *groupName == "" || *token == "" {
80 | fmt.Println("❌ ERROR: Required flags are missing.")
81 | flag.Usage()
82 | os.Exit(1)
83 | }
84 |
85 | // Send the request to store the group
86 | fmt.Println("📤 Sending request to store group...")
87 | response, err := sendStoreGroupRequest(*serverIP, *serverPort, *groupName, *token, *description)
88 | if err != nil {
89 | fmt.Printf("❌ ERROR: %v\n", err)
90 | os.Exit(1)
91 | }
92 |
93 | fmt.Println("✔️ Response from server:")
94 | fmt.Println(response)
95 | }
96 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/3.2 mcp_list_sources/obj/mcp_list_sources.csproj.nuget.dgspec.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "format": 1,
3 | "restore": {
4 | "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_list_sources\\mcp_list_sources.csproj": {}
5 | },
6 | "projects": {
7 | "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_list_sources\\mcp_list_sources.csproj": {
8 | "version": "1.0.0",
9 | "restore": {
10 | "projectUniqueName": "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_list_sources\\mcp_list_sources.csproj",
11 | "projectName": "mcp_list_sources",
12 | "projectPath": "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_list_sources\\mcp_list_sources.csproj",
13 | "packagesPath": "C:\\Users\\uwuertz\\.nuget\\packages\\",
14 | "outputPath": "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_list_sources\\obj\\",
15 | "projectStyle": "PackageReference",
16 | "configFilePaths": [
17 | "C:\\Users\\uwuertz\\AppData\\Roaming\\NuGet\\NuGet.Config"
18 | ],
19 | "originalTargetFrameworks": [
20 | "net9.0"
21 | ],
22 | "sources": {
23 | "https://api.nuget.org/v3/index.json": {}
24 | },
25 | "frameworks": {
26 | "net9.0": {
27 | "targetAlias": "net9.0",
28 | "projectReferences": {}
29 | }
30 | },
31 | "warningProperties": {
32 | "warnAsError": [
33 | "NU1605"
34 | ]
35 | },
36 | "restoreAuditProperties": {
37 | "enableAudit": "true",
38 | "auditLevel": "low",
39 | "auditMode": "direct"
40 | },
41 | "SdkAnalysisLevel": "9.0.100"
42 | },
43 | "frameworks": {
44 | "net9.0": {
45 | "targetAlias": "net9.0",
46 | "dependencies": {
47 | "Newtonsoft.Json": {
48 | "target": "Package",
49 | "version": "[13.0.3, )"
50 | }
51 | },
52 | "imports": [
53 | "net461",
54 | "net462",
55 | "net47",
56 | "net471",
57 | "net472",
58 | "net48",
59 | "net481"
60 | ],
61 | "assetTargetFallback": true,
62 | "warn": true,
63 | "frameworkReferences": {
64 | "Microsoft.NETCore.App": {
65 | "privateAssets": "all"
66 | }
67 | },
68 | "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.101/PortableRuntimeIdentifierGraph.json"
69 | }
70 | }
71 | }
72 | }
73 | }
```
--------------------------------------------------------------------------------
/clients/C# .Net/4.2 mcp_delete_group/obj/mcp_delete_group.csproj.nuget.dgspec.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "format": 1,
3 | "restore": {
4 | "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_delete_group\\mcp_delete_group.csproj": {}
5 | },
6 | "projects": {
7 | "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_delete_group\\mcp_delete_group.csproj": {
8 | "version": "1.0.0",
9 | "restore": {
10 | "projectUniqueName": "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_delete_group\\mcp_delete_group.csproj",
11 | "projectName": "mcp_delete_group",
12 | "projectPath": "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_delete_group\\mcp_delete_group.csproj",
13 | "packagesPath": "C:\\Users\\uwuertz\\.nuget\\packages\\",
14 | "outputPath": "C:\\Users\\uwuertz\\AI\\mcp-client\\mcp_delete_group\\obj\\",
15 | "projectStyle": "PackageReference",
16 | "configFilePaths": [
17 | "C:\\Users\\uwuertz\\AppData\\Roaming\\NuGet\\NuGet.Config"
18 | ],
19 | "originalTargetFrameworks": [
20 | "net9.0"
21 | ],
22 | "sources": {
23 | "https://api.nuget.org/v3/index.json": {}
24 | },
25 | "frameworks": {
26 | "net9.0": {
27 | "targetAlias": "net9.0",
28 | "projectReferences": {}
29 | }
30 | },
31 | "warningProperties": {
32 | "warnAsError": [
33 | "NU1605"
34 | ]
35 | },
36 | "restoreAuditProperties": {
37 | "enableAudit": "true",
38 | "auditLevel": "low",
39 | "auditMode": "direct"
40 | },
41 | "SdkAnalysisLevel": "9.0.100"
42 | },
43 | "frameworks": {
44 | "net9.0": {
45 | "targetAlias": "net9.0",
46 | "dependencies": {
47 | "Newtonsoft.Json": {
48 | "target": "Package",
49 | "version": "[13.0.3, )"
50 | }
51 | },
52 | "imports": [
53 | "net461",
54 | "net462",
55 | "net47",
56 | "net471",
57 | "net472",
58 | "net48",
59 | "net481"
60 | ],
61 | "assetTargetFallback": true,
62 | "warn": true,
63 | "frameworkReferences": {
64 | "Microsoft.NETCore.App": {
65 | "privateAssets": "all"
66 | }
67 | },
68 | "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.101/PortableRuntimeIdentifierGraph.json"
69 | }
70 | }
71 | }
72 | }
73 | }
```