This is page 4 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
--------------------------------------------------------------------------------
/clients/C# .Net/3.4 mcp_delete_source/obj/Debug/net9.0/mcp_delete_source.GeneratedMSBuildEditorConfig.editorconfig:
--------------------------------------------------------------------------------
```
1 | is_global = true
2 | build_property.TargetFramework = net9.0
3 | build_property.TargetPlatformMinVersion =
4 | build_property.UsingMicrosoftNETSdkWeb =
5 | build_property.ProjectTypeGuids =
6 | build_property.InvariantGlobalization =
7 | build_property.PlatformNeutralAssembly =
8 | build_property.EnforceExtendedAnalyzerRules =
9 | build_property._SupportedPlatformList = Linux,macOS,Windows
10 | build_property.RootNamespace = mcp_delete_source
11 | build_property.ProjectDir = c:\Users\uwuertz\Documents\GitHub\MCP-Server-for-MAS-Developments\clients\C# .Net\3.4 mcp_delete_source\
12 | build_property.EnableComHosting =
13 | build_property.EnableGeneratedComInterfaceComImportInterop =
14 | build_property.EffectiveAnalysisLevelStyle = 9.0
15 | build_property.EnableCodeStyleSeverity =
16 |
```
--------------------------------------------------------------------------------
/agents/MCP-Client/Python/messages/send_call_tool.py:
--------------------------------------------------------------------------------
```python
1 | # mcpcli/messages/tools.py
2 | from anyio.streams.memory import MemoryObjectReceiveStream, MemoryObjectSendStream
3 | from .send_message import send_message
4 | from .message_types.tools_messages import CallToolMessage
5 |
6 | async def send_call_tool(
7 | tool_name: str,
8 | arguments: dict,
9 | read_stream: MemoryObjectReceiveStream,
10 | write_stream: MemoryObjectSendStream,
11 | ) -> dict:
12 | # create the message
13 | message = CallToolMessage(tool_name=tool_name, arguments=arguments)
14 |
15 | try:
16 | # send the message
17 | response = await send_message(
18 | read_stream=read_stream,
19 | write_stream=write_stream,
20 | message=message,
21 | )
22 |
23 | # get the result
24 | return response.get("result", {})
25 | except Exception as e:
26 | return {"isError": True, "error": str(e)}
27 |
```
--------------------------------------------------------------------------------
/clients/Gradio/messages/send_call_tool.py:
--------------------------------------------------------------------------------
```python
1 | # mcpcli/messages/tools.py
2 | from anyio.streams.memory import MemoryObjectReceiveStream, MemoryObjectSendStream
3 | from .send_message import send_message
4 | from .message_types.tools_messages import CallToolMessage
5 |
6 | async def send_call_tool(
7 | tool_name: str,
8 | arguments: dict,
9 | read_stream: MemoryObjectReceiveStream,
10 | write_stream: MemoryObjectSendStream,
11 | ) -> dict:
12 | # create the message
13 | message = CallToolMessage(tool_name=tool_name, arguments=arguments)
14 |
15 | try:
16 | # send the message
17 | response = await send_message(
18 | read_stream=read_stream,
19 | write_stream=write_stream,
20 | message=message,
21 | )
22 |
23 | # get the result
24 | return response.get("result", {})
25 | except Exception as e:
26 | return {"isError": True, "error": str(e)}
27 |
```
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "compilerOptions": {
3 | "target": "ES2022",
4 | "module": "NodeNext",
5 | "moduleResolution": "NodeNext",
6 | "lib": ["ES2022"],
7 | "outDir": "./dist",
8 | "rootDir": "./src",
9 | "strict": true,
10 | "esModuleInterop": true,
11 | "skipLibCheck": true,
12 | "forceConsistentCasingInFileNames": true,
13 | "resolveJsonModule": true,
14 | "declaration": true,
15 | "declarationMap": true,
16 | "sourceMap": true,
17 | "removeComments": false,
18 | "allowSyntheticDefaultImports": true,
19 | "isolatedModules": true,
20 | "allowJs": true, // Diese Zeile ermöglicht das Kompilieren von `.js`-Dateien
21 | "baseUrl": ".",
22 | "paths": {
23 | "@modelcontextprotocol/sdk": ["node_modules/@modelcontextprotocol/sdk"]
24 | }
25 | },
26 | "include": ["src/**/*.js"],
27 | "exclude": ["node_modules", "dist", "tests", "**/*.test.ts"]
28 | }
```
--------------------------------------------------------------------------------
/agents/MCP-Client/Python/environment.py:
--------------------------------------------------------------------------------
```python
1 | # environment.py
2 | import os
3 | import sys
4 |
5 | # Default environment variables to inherit
6 | DEFAULT_INHERITED_ENV_VARS = (
7 | ["HOME", "LOGNAME", "PATH", "SHELL", "TERM", "USER"]
8 | if sys.platform != "win32"
9 | else [
10 | "APPDATA",
11 | "HOMEDRIVE",
12 | "HOMEPATH",
13 | "LOCALAPPDATA",
14 | "PATH",
15 | "PROCESSOR_ARCHITECTURE",
16 | "SYSTEMDRIVE",
17 | "SYSTEMROOT",
18 | "TEMP",
19 | "USERNAME",
20 | "USERPROFILE",
21 | ]
22 | )
23 |
24 |
25 | def get_default_environment() -> dict[str, str]:
26 | """
27 | Retrieve a dictionary of default environment variables to inherit.
28 | """
29 |
30 | # get the current environment
31 | env = {
32 | key: value
33 | for key in DEFAULT_INHERITED_ENV_VARS
34 | if (value := os.environ.get(key)) and not value.startswith("()")
35 | }
36 |
37 | # return the dictionary
38 | return env
39 |
```
--------------------------------------------------------------------------------
/agents/ISMAgent/PGPT Scenario Prompts/ISM User Post-Prompt - Detecting Error State.txt:
--------------------------------------------------------------------------------
```
1 | After producing the table:
2 | Validate the extraction results
3 | Re-count all Alarm Status: Error nodes in the source text.
4 | Confirm that this number matches the number of rows in your table.
5 | Report if any nodes are missing, duplicated, or extra.
6 |
7 | Summarize operational impact
8 | Total number of affected nodes.
9 | Which Groups or Locations are most impacted.
10 | Common or repeating issue types (e.g., disk, RAM, chassis, power).
11 | Identify critical nodes (e.g., Power = Off and Status = Error).
12 |
13 | Provide actionable insight
14 | Short paragraph (3–5 sentences) summarizing what IT operations should do next.
15 | Use clear, executive-level language suitable for incident reviews.
16 |
17 | Output format
18 | Display the validated table first.
19 | Follow with a short Markdown section titled “Summary and Next Actions”.
20 | Use bullet points or concise sentences — no lengthy prose.
```
--------------------------------------------------------------------------------
/agents/OpenAI_Compatible_API_Agent/Python/generate_api_key.py:
--------------------------------------------------------------------------------
```python
1 | import argparse
2 | import base64
3 |
4 |
5 | def encrypt_api_key(login, password):
6 | """
7 | This is PoC code and methods should be replaced with a more secure way to deal with credentials (e.g. in a db)
8 | """
9 | login = login + ":" + password
10 | sample_string_bytes = login.encode("ascii")
11 | base64_bytes = base64.b64encode(sample_string_bytes)
12 | api_key = base64_bytes.decode("ascii")
13 | # Print the result so the user can copy the key
14 | print("Your API key is: " + api_key)
15 |
16 |
17 | if __name__ == "__main__":
18 | parser = argparse.ArgumentParser(description="Login to MCP server and retrieve a token.")
19 | parser.add_argument("--email", required=True, help="Email address for login")
20 | parser.add_argument("--password", required=True, help="Password for login")
21 | args = parser.parse_args()
22 | encrypt_api_key(args.email, args.password)
```
--------------------------------------------------------------------------------
/clients/Gradio/server_config.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "mcpServers":
3 | {
4 | "demo-tools": {
5 | "command": "node",
6 | "args": [
7 | "clients/Gradio/mcp_servers/demo-mcp-server/demo-tools-stdio.js"
8 | ]
9 | },
10 | "filesystem": {
11 | "command": "node",
12 | "args": [
13 | "clients/Gradio/mcp_servers/filesystem/dist/index.js",
14 | "clients/Gradio/mcp_servers/filesystem/test"
15 | ]
16 | },
17 |
18 | "fetch": {
19 | "command": "uvx",
20 | "args": ["mcp-server-fetch"]
21 | },
22 |
23 | "arxiv": {
24 | "command": "node",
25 | "args": [
26 | "clients/Gradio/mcp_servers/arxiv/arxiv-stdio.js"
27 | ]
28 | },
29 |
30 |
31 |
32 | "sqlite": {
33 | "command": "uv",
34 | "args": [
35 | "--directory",
36 | "clients/Gradio/mcp_servers/sqlite",
37 | "run",
38 | "mcp-server-sqlite",
39 | "--db-path",
40 | "test.db"
41 | ]
42 | }
43 | }
44 | }
45 |
```
--------------------------------------------------------------------------------
/clients/Gradio/mcp_servers/filesystem/package.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "name": "@modelcontextprotocol/server-filesystem",
3 | "version": "0.6.2",
4 | "description": "MCP server for filesystem access",
5 | "license": "MIT",
6 | "author": "Anthropic, PBC (https://anthropic.com)",
7 | "homepage": "https://modelcontextprotocol.io",
8 | "bugs": "https://github.com/modelcontextprotocol/servers/issues",
9 | "type": "module",
10 | "bin": {
11 | "mcp-server-filesystem": "dist/index.js"
12 | },
13 | "files": [
14 | "dist"
15 | ],
16 | "scripts": {
17 | "build": "tsc && shx chmod +x dist/*.js",
18 | "prepare": "npm run build",
19 | "watch": "tsc --watch"
20 | },
21 | "dependencies": {
22 | "@modelcontextprotocol/sdk": "0.5.0",
23 | "diff": "^5.1.0",
24 | "glob": "^10.3.10",
25 | "minimatch": "^10.0.1",
26 | "zod-to-json-schema": "^3.23.5"
27 | },
28 | "devDependencies": {
29 | "@types/diff": "^5.0.9",
30 | "@types/minimatch": "^5.1.2",
31 | "@types/node": "^22",
32 | "shx": "^0.3.4",
33 | "typescript": "^5.3.3"
34 | }
35 | }
```
--------------------------------------------------------------------------------
/agents/MCP-Client/Python/messages/message_types/tools_messages.py:
--------------------------------------------------------------------------------
```python
1 | # messages/message_types/tools_messages.py
2 | from ...messages.message_types.incrementing_id_message import IncrementingIDMessage
3 | from ...messages.message_types.json_rpc_message import JSONRPCMessage
4 |
5 | class ToolsListMessage(IncrementingIDMessage):
6 | def __init__(self, start_id: int = None, **kwargs):
7 | super().__init__(prefix="tools-list", method="tools/list", start_id=start_id, **kwargs)
8 |
9 | class CallToolMessage(IncrementingIDMessage):
10 | def __init__(self, tool_name: str, arguments: dict, start_id: int = None, **kwargs):
11 | super().__init__(prefix="tools-call", method="tools/call", start_id=start_id, params={"name": tool_name, "arguments": arguments}, **kwargs)
12 |
13 | class ToolsListChangedMessage(JSONRPCMessage):
14 | def __init__(self, **kwargs):
15 | # A notification has no 'id' field.
16 | super().__init__(method="notifications/tools/list_changed", id=None, **kwargs)
17 |
```
--------------------------------------------------------------------------------
/clients/Gradio/messages/message_types/tools_messages.py:
--------------------------------------------------------------------------------
```python
1 | # messages/message_types/tools_messages.py
2 | from ...messages.message_types.incrementing_id_message import IncrementingIDMessage
3 | from ...messages.message_types.json_rpc_message import JSONRPCMessage
4 |
5 | class ToolsListMessage(IncrementingIDMessage):
6 | def __init__(self, start_id: int = None, **kwargs):
7 | super().__init__(prefix="tools-list", method="tools/list", start_id=start_id, **kwargs)
8 |
9 | class CallToolMessage(IncrementingIDMessage):
10 | def __init__(self, tool_name: str, arguments: dict, start_id: int = None, **kwargs):
11 | super().__init__(prefix="tools-call", method="tools/call", start_id=start_id, params={"name": tool_name, "arguments": arguments}, **kwargs)
12 |
13 | class ToolsListChangedMessage(JSONRPCMessage):
14 | def __init__(self, **kwargs):
15 | # A notification has no 'id' field.
16 | super().__init__(method="notifications/tools/list_changed", id=None, **kwargs)
17 |
```
--------------------------------------------------------------------------------
/clients/Gradio/mcp_servers/arxiv/arxiv-stdio.js:
--------------------------------------------------------------------------------
```javascript
1 | #!/usr/bin/env node
2 |
3 | const { spawn } = require('child_process');
4 | const { createInterface } = require('readline');
5 |
6 | // Spawn the Python process
7 | const pythonProcess = spawn('arxiv-mcp-server', [], {
8 | stdio: ['pipe', 'pipe', 'pipe']
9 | });
10 |
11 | // Set up readline interface for stdin
12 | const rl = createInterface({
13 | input: process.stdin,
14 | output: process.stdout,
15 | terminal: false
16 | });
17 |
18 | // Forward stdin to the Python process
19 | rl.on('line', (line) => {
20 | pythonProcess.stdin.write(line + '\n');
21 | });
22 |
23 | // Forward stdout from the Python process
24 | pythonProcess.stdout.on('data', (data) => {
25 | process.stdout.write(data);
26 | });
27 |
28 | // Forward stderr from the Python process
29 | pythonProcess.stderr.on('data', (data) => {
30 | console.error(`stderr: ${data}`);
31 | });
32 |
33 | // Handle process exit
34 | pythonProcess.on('close', (code) => {
35 | console.error(`child process exited with code ${code}`);
36 | process.exit(code);
37 | });
38 |
39 | // Handle SIGINT (Ctrl+C)
40 | process.on('SIGINT', () => {
41 | pythonProcess.kill('SIGINT');
42 | });
43 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/2.0 mcp_chat/obj/Debug/net9.0/mcp_chat.AssemblyInfo.cs:
--------------------------------------------------------------------------------
```csharp
1 | //------------------------------------------------------------------------------
2 | // <auto-generated>
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | // </auto-generated>
8 | //------------------------------------------------------------------------------
9 |
10 | using System;
11 | using System.Reflection;
12 |
13 | [assembly: System.Reflection.AssemblyCompanyAttribute("mcp_chat")]
14 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
15 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
16 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+481fa257a072fa2f1905104b08adab35c63b06f1")]
17 | [assembly: System.Reflection.AssemblyProductAttribute("mcp_chat")]
18 | [assembly: System.Reflection.AssemblyTitleAttribute("mcp_chat")]
19 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
20 |
21 | // Generated by the MSBuild WriteCodeFragment class.
22 |
23 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/1.0 mcp_login/obj/Debug/net9.0/mcp_login.AssemblyInfo.cs:
--------------------------------------------------------------------------------
```csharp
1 | //------------------------------------------------------------------------------
2 | // <auto-generated>
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | // </auto-generated>
8 | //------------------------------------------------------------------------------
9 |
10 | using System;
11 | using System.Reflection;
12 |
13 | [assembly: System.Reflection.AssemblyCompanyAttribute("mcp_login")]
14 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
15 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
16 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+481fa257a072fa2f1905104b08adab35c63b06f1")]
17 | [assembly: System.Reflection.AssemblyProductAttribute("mcp_login")]
18 | [assembly: System.Reflection.AssemblyTitleAttribute("mcp_login")]
19 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
20 |
21 | // Generated by the MSBuild WriteCodeFragment class.
22 |
23 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/1.1 mcp_logout/obj/Debug/net9.0/mcp_logout.AssemblyInfo.cs:
--------------------------------------------------------------------------------
```csharp
1 | //------------------------------------------------------------------------------
2 | // <auto-generated>
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | // </auto-generated>
8 | //------------------------------------------------------------------------------
9 |
10 | using System;
11 | using System.Reflection;
12 |
13 | [assembly: System.Reflection.AssemblyCompanyAttribute("mcp_logout")]
14 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
15 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
16 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+481fa257a072fa2f1905104b08adab35c63b06f1")]
17 | [assembly: System.Reflection.AssemblyProductAttribute("mcp_logout")]
18 | [assembly: System.Reflection.AssemblyTitleAttribute("mcp_logout")]
19 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
20 |
21 | // Generated by the MSBuild WriteCodeFragment class.
22 |
23 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/2.0 mcp_chat/bin/Debug/net9.0/mcp_chat.deps.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "runtimeTarget": {
3 | "name": ".NETCoreApp,Version=v9.0",
4 | "signature": ""
5 | },
6 | "compilationOptions": {},
7 | "targets": {
8 | ".NETCoreApp,Version=v9.0": {
9 | "mcp_chat/1.0.0": {
10 | "dependencies": {
11 | "Newtonsoft.Json": "13.0.3"
12 | },
13 | "runtime": {
14 | "mcp_chat.dll": {}
15 | }
16 | },
17 | "Newtonsoft.Json/13.0.3": {
18 | "runtime": {
19 | "lib/net6.0/Newtonsoft.Json.dll": {
20 | "assemblyVersion": "13.0.0.0",
21 | "fileVersion": "13.0.3.27908"
22 | }
23 | }
24 | }
25 | }
26 | },
27 | "libraries": {
28 | "mcp_chat/1.0.0": {
29 | "type": "project",
30 | "serviceable": false,
31 | "sha512": ""
32 | },
33 | "Newtonsoft.Json/13.0.3": {
34 | "type": "package",
35 | "serviceable": true,
36 | "sha512": "sha512-HrC5BXdl00IP9zeV+0Z848QWPAoCr9P3bDEZguI+gkLcBKAOxix/tLEAAHC+UvDNPv4a2d18lOReHMOagPa+zQ==",
37 | "path": "newtonsoft.json/13.0.3",
38 | "hashPath": "newtonsoft.json.13.0.3.nupkg.sha512"
39 | }
40 | }
41 | }
```
--------------------------------------------------------------------------------
/clients/C# .Net/1.0 mcp_login/bin/Debug/net9.0/mcp_login.deps.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "runtimeTarget": {
3 | "name": ".NETCoreApp,Version=v9.0",
4 | "signature": ""
5 | },
6 | "compilationOptions": {},
7 | "targets": {
8 | ".NETCoreApp,Version=v9.0": {
9 | "mcp_login/1.0.0": {
10 | "dependencies": {
11 | "Newtonsoft.Json": "13.0.3"
12 | },
13 | "runtime": {
14 | "mcp_login.dll": {}
15 | }
16 | },
17 | "Newtonsoft.Json/13.0.3": {
18 | "runtime": {
19 | "lib/net6.0/Newtonsoft.Json.dll": {
20 | "assemblyVersion": "13.0.0.0",
21 | "fileVersion": "13.0.3.27908"
22 | }
23 | }
24 | }
25 | }
26 | },
27 | "libraries": {
28 | "mcp_login/1.0.0": {
29 | "type": "project",
30 | "serviceable": false,
31 | "sha512": ""
32 | },
33 | "Newtonsoft.Json/13.0.3": {
34 | "type": "package",
35 | "serviceable": true,
36 | "sha512": "sha512-HrC5BXdl00IP9zeV+0Z848QWPAoCr9P3bDEZguI+gkLcBKAOxix/tLEAAHC+UvDNPv4a2d18lOReHMOagPa+zQ==",
37 | "path": "newtonsoft.json/13.0.3",
38 | "hashPath": "newtonsoft.json.13.0.3.nupkg.sha512"
39 | }
40 | }
41 | }
```
--------------------------------------------------------------------------------
/clients/C# .Net/5.1 mcp_edit_user/obj/Debug/net9.0/mcp_edit_user.AssemblyInfo.cs:
--------------------------------------------------------------------------------
```csharp
1 | //------------------------------------------------------------------------------
2 | // <auto-generated>
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | // </auto-generated>
8 | //------------------------------------------------------------------------------
9 |
10 | using System;
11 | using System.Reflection;
12 |
13 | [assembly: System.Reflection.AssemblyCompanyAttribute("mcp_edit_user")]
14 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
15 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
16 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+481fa257a072fa2f1905104b08adab35c63b06f1")]
17 | [assembly: System.Reflection.AssemblyProductAttribute("mcp_edit_user")]
18 | [assembly: System.Reflection.AssemblyTitleAttribute("mcp_edit_user")]
19 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
20 |
21 | // Generated by the MSBuild WriteCodeFragment class.
22 |
23 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/1.1 mcp_logout/bin/Debug/net9.0/mcp_logout.deps.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "runtimeTarget": {
3 | "name": ".NETCoreApp,Version=v9.0",
4 | "signature": ""
5 | },
6 | "compilationOptions": {},
7 | "targets": {
8 | ".NETCoreApp,Version=v9.0": {
9 | "mcp_logout/1.0.0": {
10 | "dependencies": {
11 | "Newtonsoft.Json": "13.0.3"
12 | },
13 | "runtime": {
14 | "mcp_logout.dll": {}
15 | }
16 | },
17 | "Newtonsoft.Json/13.0.3": {
18 | "runtime": {
19 | "lib/net6.0/Newtonsoft.Json.dll": {
20 | "assemblyVersion": "13.0.0.0",
21 | "fileVersion": "13.0.3.27908"
22 | }
23 | }
24 | }
25 | }
26 | },
27 | "libraries": {
28 | "mcp_logout/1.0.0": {
29 | "type": "project",
30 | "serviceable": false,
31 | "sha512": ""
32 | },
33 | "Newtonsoft.Json/13.0.3": {
34 | "type": "package",
35 | "serviceable": true,
36 | "sha512": "sha512-HrC5BXdl00IP9zeV+0Z848QWPAoCr9P3bDEZguI+gkLcBKAOxix/tLEAAHC+UvDNPv4a2d18lOReHMOagPa+zQ==",
37 | "path": "newtonsoft.json/13.0.3",
38 | "hashPath": "newtonsoft.json.13.0.3.nupkg.sha512"
39 | }
40 | }
41 | }
```
--------------------------------------------------------------------------------
/clients/C# .Net/3.1 mcp_get_source/obj/Debug/net9.0/mcp_get_source.AssemblyInfo.cs:
--------------------------------------------------------------------------------
```csharp
1 | //------------------------------------------------------------------------------
2 | // <auto-generated>
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | // </auto-generated>
8 | //------------------------------------------------------------------------------
9 |
10 | using System;
11 | using System.Reflection;
12 |
13 | [assembly: System.Reflection.AssemblyCompanyAttribute("mcp_get_source")]
14 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
15 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
16 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+481fa257a072fa2f1905104b08adab35c63b06f1")]
17 | [assembly: System.Reflection.AssemblyProductAttribute("mcp_get_source")]
18 | [assembly: System.Reflection.AssemblyTitleAttribute("mcp_get_source")]
19 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
20 |
21 | // Generated by the MSBuild WriteCodeFragment class.
22 |
23 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/5.0 mcp_store_user/obj/Debug/net9.0/mcp_store_user.AssemblyInfo.cs:
--------------------------------------------------------------------------------
```csharp
1 | //------------------------------------------------------------------------------
2 | // <auto-generated>
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | // </auto-generated>
8 | //------------------------------------------------------------------------------
9 |
10 | using System;
11 | using System.Reflection;
12 |
13 | [assembly: System.Reflection.AssemblyCompanyAttribute("mcp_store_user")]
14 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
15 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
16 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+481fa257a072fa2f1905104b08adab35c63b06f1")]
17 | [assembly: System.Reflection.AssemblyProductAttribute("mcp_store_user")]
18 | [assembly: System.Reflection.AssemblyTitleAttribute("mcp_store_user")]
19 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
20 |
21 | // Generated by the MSBuild WriteCodeFragment class.
22 |
23 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/3.3 mcp_edit_source/obj/Debug/net9.0/mcp_edit_source.AssemblyInfo.cs:
--------------------------------------------------------------------------------
```csharp
1 | //------------------------------------------------------------------------------
2 | // <auto-generated>
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | // </auto-generated>
8 | //------------------------------------------------------------------------------
9 |
10 | using System;
11 | using System.Reflection;
12 |
13 | [assembly: System.Reflection.AssemblyCompanyAttribute("mcp_edit_source")]
14 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
15 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
16 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+481fa257a072fa2f1905104b08adab35c63b06f1")]
17 | [assembly: System.Reflection.AssemblyProductAttribute("mcp_edit_source")]
18 | [assembly: System.Reflection.AssemblyTitleAttribute("mcp_edit_source")]
19 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
20 |
21 | // Generated by the MSBuild WriteCodeFragment class.
22 |
23 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/4.0 mcp_list_groups/obj/Debug/net9.0/mcp_list_groups.AssemblyInfo.cs:
--------------------------------------------------------------------------------
```csharp
1 | //------------------------------------------------------------------------------
2 | // <auto-generated>
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | // </auto-generated>
8 | //------------------------------------------------------------------------------
9 |
10 | using System;
11 | using System.Reflection;
12 |
13 | [assembly: System.Reflection.AssemblyCompanyAttribute("mcp_list_groups")]
14 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
15 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
16 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+481fa257a072fa2f1905104b08adab35c63b06f1")]
17 | [assembly: System.Reflection.AssemblyProductAttribute("mcp_list_groups")]
18 | [assembly: System.Reflection.AssemblyTitleAttribute("mcp_list_groups")]
19 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
20 |
21 | // Generated by the MSBuild WriteCodeFragment class.
22 |
23 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/4.1 mcp_store_group/obj/Debug/net9.0/mcp_store_group.AssemblyInfo.cs:
--------------------------------------------------------------------------------
```csharp
1 | //------------------------------------------------------------------------------
2 | // <auto-generated>
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | // </auto-generated>
8 | //------------------------------------------------------------------------------
9 |
10 | using System;
11 | using System.Reflection;
12 |
13 | [assembly: System.Reflection.AssemblyCompanyAttribute("mcp_store_group")]
14 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
15 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
16 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+481fa257a072fa2f1905104b08adab35c63b06f1")]
17 | [assembly: System.Reflection.AssemblyProductAttribute("mcp_store_group")]
18 | [assembly: System.Reflection.AssemblyTitleAttribute("mcp_store_group")]
19 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
20 |
21 | // Generated by the MSBuild WriteCodeFragment class.
22 |
23 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/5.2 mcp_delete_user/obj/Debug/net9.0/mcp_delete_user.AssemblyInfo.cs:
--------------------------------------------------------------------------------
```csharp
1 | //------------------------------------------------------------------------------
2 | // <auto-generated>
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | // </auto-generated>
8 | //------------------------------------------------------------------------------
9 |
10 | using System;
11 | using System.Reflection;
12 |
13 | [assembly: System.Reflection.AssemblyCompanyAttribute("mcp_delete_user")]
14 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
15 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
16 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+481fa257a072fa2f1905104b08adab35c63b06f1")]
17 | [assembly: System.Reflection.AssemblyProductAttribute("mcp_delete_user")]
18 | [assembly: System.Reflection.AssemblyTitleAttribute("mcp_delete_user")]
19 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
20 |
21 | // Generated by the MSBuild WriteCodeFragment class.
22 |
23 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/3.2 mcp_list_sources/obj/Debug/net9.0/mcp_list_sources.AssemblyInfo.cs:
--------------------------------------------------------------------------------
```csharp
1 | //------------------------------------------------------------------------------
2 | // <auto-generated>
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | // </auto-generated>
8 | //------------------------------------------------------------------------------
9 |
10 | using System;
11 | using System.Reflection;
12 |
13 | [assembly: System.Reflection.AssemblyCompanyAttribute("mcp_list_sources")]
14 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
15 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
16 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+481fa257a072fa2f1905104b08adab35c63b06f1")]
17 | [assembly: System.Reflection.AssemblyProductAttribute("mcp_list_sources")]
18 | [assembly: System.Reflection.AssemblyTitleAttribute("mcp_list_sources")]
19 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
20 |
21 | // Generated by the MSBuild WriteCodeFragment class.
22 |
23 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/4.2 mcp_delete_group/obj/Debug/net9.0/mcp_delete_group.AssemblyInfo.cs:
--------------------------------------------------------------------------------
```csharp
1 | //------------------------------------------------------------------------------
2 | // <auto-generated>
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | // </auto-generated>
8 | //------------------------------------------------------------------------------
9 |
10 | using System;
11 | using System.Reflection;
12 |
13 | [assembly: System.Reflection.AssemblyCompanyAttribute("mcp_delete_group")]
14 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
15 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
16 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+481fa257a072fa2f1905104b08adab35c63b06f1")]
17 | [assembly: System.Reflection.AssemblyProductAttribute("mcp_delete_group")]
18 | [assembly: System.Reflection.AssemblyTitleAttribute("mcp_delete_group")]
19 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
20 |
21 | // Generated by the MSBuild WriteCodeFragment class.
22 |
23 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/2.1 mcp_continue_chat/obj/Debug/net9.0/mcp_continue_chat.AssemblyInfo.cs:
--------------------------------------------------------------------------------
```csharp
1 | //------------------------------------------------------------------------------
2 | // <auto-generated>
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | // </auto-generated>
8 | //------------------------------------------------------------------------------
9 |
10 | using System;
11 | using System.Reflection;
12 |
13 | [assembly: System.Reflection.AssemblyCompanyAttribute("mcp_continue_chat")]
14 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
15 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
16 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+481fa257a072fa2f1905104b08adab35c63b06f1")]
17 | [assembly: System.Reflection.AssemblyProductAttribute("mcp_continue_chat")]
18 | [assembly: System.Reflection.AssemblyTitleAttribute("mcp_continue_chat")]
19 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
20 |
21 | // Generated by the MSBuild WriteCodeFragment class.
22 |
23 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/2.2 mcp_get_chat_info/obj/Debug/net9.0/mcp_get_chat_info.AssemblyInfo.cs:
--------------------------------------------------------------------------------
```csharp
1 | //------------------------------------------------------------------------------
2 | // <auto-generated>
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | // </auto-generated>
8 | //------------------------------------------------------------------------------
9 |
10 | using System;
11 | using System.Reflection;
12 |
13 | [assembly: System.Reflection.AssemblyCompanyAttribute("mcp_get_chat_info")]
14 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
15 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
16 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+481fa257a072fa2f1905104b08adab35c63b06f1")]
17 | [assembly: System.Reflection.AssemblyProductAttribute("mcp_get_chat_info")]
18 | [assembly: System.Reflection.AssemblyTitleAttribute("mcp_get_chat_info")]
19 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
20 |
21 | // Generated by the MSBuild WriteCodeFragment class.
22 |
23 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/3.0 mcp_create_source/obj/Debug/net9.0/mcp_create_source.AssemblyInfo.cs:
--------------------------------------------------------------------------------
```csharp
1 | //------------------------------------------------------------------------------
2 | // <auto-generated>
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | // </auto-generated>
8 | //------------------------------------------------------------------------------
9 |
10 | using System;
11 | using System.Reflection;
12 |
13 | [assembly: System.Reflection.AssemblyCompanyAttribute("mcp_create_source")]
14 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
15 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
16 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+481fa257a072fa2f1905104b08adab35c63b06f1")]
17 | [assembly: System.Reflection.AssemblyProductAttribute("mcp_create_source")]
18 | [assembly: System.Reflection.AssemblyTitleAttribute("mcp_create_source")]
19 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
20 |
21 | // Generated by the MSBuild WriteCodeFragment class.
22 |
23 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/3.4 mcp_delete_source/obj/Debug/net9.0/mcp_delete_source.AssemblyInfo.cs:
--------------------------------------------------------------------------------
```csharp
1 | //------------------------------------------------------------------------------
2 | // <auto-generated>
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | // </auto-generated>
8 | //------------------------------------------------------------------------------
9 |
10 | using System;
11 | using System.Reflection;
12 |
13 | [assembly: System.Reflection.AssemblyCompanyAttribute("mcp_delete_source")]
14 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
15 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
16 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+481fa257a072fa2f1905104b08adab35c63b06f1")]
17 | [assembly: System.Reflection.AssemblyProductAttribute("mcp_delete_source")]
18 | [assembly: System.Reflection.AssemblyTitleAttribute("mcp_delete_source")]
19 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
20 |
21 | // Generated by the MSBuild WriteCodeFragment class.
22 |
23 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/5.1 mcp_edit_user/bin/Debug/net9.0/mcp_edit_user.deps.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "runtimeTarget": {
3 | "name": ".NETCoreApp,Version=v9.0",
4 | "signature": ""
5 | },
6 | "compilationOptions": {},
7 | "targets": {
8 | ".NETCoreApp,Version=v9.0": {
9 | "mcp_edit_user/1.0.0": {
10 | "dependencies": {
11 | "Newtonsoft.Json": "13.0.3"
12 | },
13 | "runtime": {
14 | "mcp_edit_user.dll": {}
15 | }
16 | },
17 | "Newtonsoft.Json/13.0.3": {
18 | "runtime": {
19 | "lib/net6.0/Newtonsoft.Json.dll": {
20 | "assemblyVersion": "13.0.0.0",
21 | "fileVersion": "13.0.3.27908"
22 | }
23 | }
24 | }
25 | }
26 | },
27 | "libraries": {
28 | "mcp_edit_user/1.0.0": {
29 | "type": "project",
30 | "serviceable": false,
31 | "sha512": ""
32 | },
33 | "Newtonsoft.Json/13.0.3": {
34 | "type": "package",
35 | "serviceable": true,
36 | "sha512": "sha512-HrC5BXdl00IP9zeV+0Z848QWPAoCr9P3bDEZguI+gkLcBKAOxix/tLEAAHC+UvDNPv4a2d18lOReHMOagPa+zQ==",
37 | "path": "newtonsoft.json/13.0.3",
38 | "hashPath": "newtonsoft.json.13.0.3.nupkg.sha512"
39 | }
40 | }
41 | }
```
--------------------------------------------------------------------------------
/clients/C# .Net/3.1 mcp_get_source/bin/Debug/net9.0/mcp_get_source.deps.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "runtimeTarget": {
3 | "name": ".NETCoreApp,Version=v9.0",
4 | "signature": ""
5 | },
6 | "compilationOptions": {},
7 | "targets": {
8 | ".NETCoreApp,Version=v9.0": {
9 | "mcp_get_source/1.0.0": {
10 | "dependencies": {
11 | "Newtonsoft.Json": "13.0.3"
12 | },
13 | "runtime": {
14 | "mcp_get_source.dll": {}
15 | }
16 | },
17 | "Newtonsoft.Json/13.0.3": {
18 | "runtime": {
19 | "lib/net6.0/Newtonsoft.Json.dll": {
20 | "assemblyVersion": "13.0.0.0",
21 | "fileVersion": "13.0.3.27908"
22 | }
23 | }
24 | }
25 | }
26 | },
27 | "libraries": {
28 | "mcp_get_source/1.0.0": {
29 | "type": "project",
30 | "serviceable": false,
31 | "sha512": ""
32 | },
33 | "Newtonsoft.Json/13.0.3": {
34 | "type": "package",
35 | "serviceable": true,
36 | "sha512": "sha512-HrC5BXdl00IP9zeV+0Z848QWPAoCr9P3bDEZguI+gkLcBKAOxix/tLEAAHC+UvDNPv4a2d18lOReHMOagPa+zQ==",
37 | "path": "newtonsoft.json/13.0.3",
38 | "hashPath": "newtonsoft.json.13.0.3.nupkg.sha512"
39 | }
40 | }
41 | }
```
--------------------------------------------------------------------------------
/clients/C# .Net/5.0 mcp_store_user/bin/Debug/net9.0/mcp_store_user.deps.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "runtimeTarget": {
3 | "name": ".NETCoreApp,Version=v9.0",
4 | "signature": ""
5 | },
6 | "compilationOptions": {},
7 | "targets": {
8 | ".NETCoreApp,Version=v9.0": {
9 | "mcp_store_user/1.0.0": {
10 | "dependencies": {
11 | "Newtonsoft.Json": "13.0.3"
12 | },
13 | "runtime": {
14 | "mcp_store_user.dll": {}
15 | }
16 | },
17 | "Newtonsoft.Json/13.0.3": {
18 | "runtime": {
19 | "lib/net6.0/Newtonsoft.Json.dll": {
20 | "assemblyVersion": "13.0.0.0",
21 | "fileVersion": "13.0.3.27908"
22 | }
23 | }
24 | }
25 | }
26 | },
27 | "libraries": {
28 | "mcp_store_user/1.0.0": {
29 | "type": "project",
30 | "serviceable": false,
31 | "sha512": ""
32 | },
33 | "Newtonsoft.Json/13.0.3": {
34 | "type": "package",
35 | "serviceable": true,
36 | "sha512": "sha512-HrC5BXdl00IP9zeV+0Z848QWPAoCr9P3bDEZguI+gkLcBKAOxix/tLEAAHC+UvDNPv4a2d18lOReHMOagPa+zQ==",
37 | "path": "newtonsoft.json/13.0.3",
38 | "hashPath": "newtonsoft.json.13.0.3.nupkg.sha512"
39 | }
40 | }
41 | }
```
--------------------------------------------------------------------------------
/examples/dynamic_sources/rss_reader/rss_parser.py:
--------------------------------------------------------------------------------
```python
1 | import feedparser
2 | import requests
3 |
4 |
5 | def fetch_feed(rss_url):
6 | headers = {
7 | "User-Agent": "Mozilla/5.0 (compatible; RSSFetcher/1.0; +https://example.com)"
8 | }
9 |
10 | # Use requests to fetch the raw feed first
11 | try:
12 | response = requests.get(rss_url, headers=headers, timeout=10)
13 | response.raise_for_status()
14 | content = response.text
15 | except requests.RequestException as e:
16 | print(f"Failed to fetch RSS feed: {e}")
17 | exit(1)
18 |
19 | # Now parse the content using feedparser
20 | feed = feedparser.parse(content)
21 |
22 | if 'title' in feed.feed:
23 | print(f"Feed Title: {feed.feed.title}\n")
24 | else:
25 | print("Failed to parse feed metadata.")
26 |
27 | # Show entries
28 | text = ""
29 | for entry in feed.entries:
30 | text += f"Title: {entry.title}"
31 | text += f"Link: {entry.link}"
32 | text += f"Published: {entry.get('published', 'N/A')}"
33 | text += f"Summary: {entry.get('summary', 'No summary')}\n"
34 | text += "-" * 80
35 |
36 | return text
37 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/3.3 mcp_edit_source/bin/Debug/net9.0/mcp_edit_source.deps.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "runtimeTarget": {
3 | "name": ".NETCoreApp,Version=v9.0",
4 | "signature": ""
5 | },
6 | "compilationOptions": {},
7 | "targets": {
8 | ".NETCoreApp,Version=v9.0": {
9 | "mcp_edit_source/1.0.0": {
10 | "dependencies": {
11 | "Newtonsoft.Json": "13.0.3"
12 | },
13 | "runtime": {
14 | "mcp_edit_source.dll": {}
15 | }
16 | },
17 | "Newtonsoft.Json/13.0.3": {
18 | "runtime": {
19 | "lib/net6.0/Newtonsoft.Json.dll": {
20 | "assemblyVersion": "13.0.0.0",
21 | "fileVersion": "13.0.3.27908"
22 | }
23 | }
24 | }
25 | }
26 | },
27 | "libraries": {
28 | "mcp_edit_source/1.0.0": {
29 | "type": "project",
30 | "serviceable": false,
31 | "sha512": ""
32 | },
33 | "Newtonsoft.Json/13.0.3": {
34 | "type": "package",
35 | "serviceable": true,
36 | "sha512": "sha512-HrC5BXdl00IP9zeV+0Z848QWPAoCr9P3bDEZguI+gkLcBKAOxix/tLEAAHC+UvDNPv4a2d18lOReHMOagPa+zQ==",
37 | "path": "newtonsoft.json/13.0.3",
38 | "hashPath": "newtonsoft.json.13.0.3.nupkg.sha512"
39 | }
40 | }
41 | }
```
--------------------------------------------------------------------------------
/clients/C# .Net/4.0 mcp_list_groups/bin/Debug/net9.0/mcp_list_groups.deps.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "runtimeTarget": {
3 | "name": ".NETCoreApp,Version=v9.0",
4 | "signature": ""
5 | },
6 | "compilationOptions": {},
7 | "targets": {
8 | ".NETCoreApp,Version=v9.0": {
9 | "mcp_list_groups/1.0.0": {
10 | "dependencies": {
11 | "Newtonsoft.Json": "13.0.3"
12 | },
13 | "runtime": {
14 | "mcp_list_groups.dll": {}
15 | }
16 | },
17 | "Newtonsoft.Json/13.0.3": {
18 | "runtime": {
19 | "lib/net6.0/Newtonsoft.Json.dll": {
20 | "assemblyVersion": "13.0.0.0",
21 | "fileVersion": "13.0.3.27908"
22 | }
23 | }
24 | }
25 | }
26 | },
27 | "libraries": {
28 | "mcp_list_groups/1.0.0": {
29 | "type": "project",
30 | "serviceable": false,
31 | "sha512": ""
32 | },
33 | "Newtonsoft.Json/13.0.3": {
34 | "type": "package",
35 | "serviceable": true,
36 | "sha512": "sha512-HrC5BXdl00IP9zeV+0Z848QWPAoCr9P3bDEZguI+gkLcBKAOxix/tLEAAHC+UvDNPv4a2d18lOReHMOagPa+zQ==",
37 | "path": "newtonsoft.json/13.0.3",
38 | "hashPath": "newtonsoft.json.13.0.3.nupkg.sha512"
39 | }
40 | }
41 | }
```
--------------------------------------------------------------------------------
/clients/C# .Net/4.1 mcp_store_group/bin/Debug/net9.0/mcp_store_group.deps.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "runtimeTarget": {
3 | "name": ".NETCoreApp,Version=v9.0",
4 | "signature": ""
5 | },
6 | "compilationOptions": {},
7 | "targets": {
8 | ".NETCoreApp,Version=v9.0": {
9 | "mcp_store_group/1.0.0": {
10 | "dependencies": {
11 | "Newtonsoft.Json": "13.0.3"
12 | },
13 | "runtime": {
14 | "mcp_store_group.dll": {}
15 | }
16 | },
17 | "Newtonsoft.Json/13.0.3": {
18 | "runtime": {
19 | "lib/net6.0/Newtonsoft.Json.dll": {
20 | "assemblyVersion": "13.0.0.0",
21 | "fileVersion": "13.0.3.27908"
22 | }
23 | }
24 | }
25 | }
26 | },
27 | "libraries": {
28 | "mcp_store_group/1.0.0": {
29 | "type": "project",
30 | "serviceable": false,
31 | "sha512": ""
32 | },
33 | "Newtonsoft.Json/13.0.3": {
34 | "type": "package",
35 | "serviceable": true,
36 | "sha512": "sha512-HrC5BXdl00IP9zeV+0Z848QWPAoCr9P3bDEZguI+gkLcBKAOxix/tLEAAHC+UvDNPv4a2d18lOReHMOagPa+zQ==",
37 | "path": "newtonsoft.json/13.0.3",
38 | "hashPath": "newtonsoft.json.13.0.3.nupkg.sha512"
39 | }
40 | }
41 | }
```
--------------------------------------------------------------------------------
/clients/C# .Net/5.2 mcp_delete_user/bin/Debug/net9.0/mcp_delete_user.deps.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "runtimeTarget": {
3 | "name": ".NETCoreApp,Version=v9.0",
4 | "signature": ""
5 | },
6 | "compilationOptions": {},
7 | "targets": {
8 | ".NETCoreApp,Version=v9.0": {
9 | "mcp_delete_user/1.0.0": {
10 | "dependencies": {
11 | "Newtonsoft.Json": "13.0.3"
12 | },
13 | "runtime": {
14 | "mcp_delete_user.dll": {}
15 | }
16 | },
17 | "Newtonsoft.Json/13.0.3": {
18 | "runtime": {
19 | "lib/net6.0/Newtonsoft.Json.dll": {
20 | "assemblyVersion": "13.0.0.0",
21 | "fileVersion": "13.0.3.27908"
22 | }
23 | }
24 | }
25 | }
26 | },
27 | "libraries": {
28 | "mcp_delete_user/1.0.0": {
29 | "type": "project",
30 | "serviceable": false,
31 | "sha512": ""
32 | },
33 | "Newtonsoft.Json/13.0.3": {
34 | "type": "package",
35 | "serviceable": true,
36 | "sha512": "sha512-HrC5BXdl00IP9zeV+0Z848QWPAoCr9P3bDEZguI+gkLcBKAOxix/tLEAAHC+UvDNPv4a2d18lOReHMOagPa+zQ==",
37 | "path": "newtonsoft.json/13.0.3",
38 | "hashPath": "newtonsoft.json.13.0.3.nupkg.sha512"
39 | }
40 | }
41 | }
```
--------------------------------------------------------------------------------
/clients/C# .Net/3.2 mcp_list_sources/bin/Debug/net9.0/mcp_list_sources.deps.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "runtimeTarget": {
3 | "name": ".NETCoreApp,Version=v9.0",
4 | "signature": ""
5 | },
6 | "compilationOptions": {},
7 | "targets": {
8 | ".NETCoreApp,Version=v9.0": {
9 | "mcp_list_sources/1.0.0": {
10 | "dependencies": {
11 | "Newtonsoft.Json": "13.0.3"
12 | },
13 | "runtime": {
14 | "mcp_list_sources.dll": {}
15 | }
16 | },
17 | "Newtonsoft.Json/13.0.3": {
18 | "runtime": {
19 | "lib/net6.0/Newtonsoft.Json.dll": {
20 | "assemblyVersion": "13.0.0.0",
21 | "fileVersion": "13.0.3.27908"
22 | }
23 | }
24 | }
25 | }
26 | },
27 | "libraries": {
28 | "mcp_list_sources/1.0.0": {
29 | "type": "project",
30 | "serviceable": false,
31 | "sha512": ""
32 | },
33 | "Newtonsoft.Json/13.0.3": {
34 | "type": "package",
35 | "serviceable": true,
36 | "sha512": "sha512-HrC5BXdl00IP9zeV+0Z848QWPAoCr9P3bDEZguI+gkLcBKAOxix/tLEAAHC+UvDNPv4a2d18lOReHMOagPa+zQ==",
37 | "path": "newtonsoft.json/13.0.3",
38 | "hashPath": "newtonsoft.json.13.0.3.nupkg.sha512"
39 | }
40 | }
41 | }
```
--------------------------------------------------------------------------------
/clients/C# .Net/4.2 mcp_delete_group/bin/Debug/net9.0/mcp_delete_group.deps.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "runtimeTarget": {
3 | "name": ".NETCoreApp,Version=v9.0",
4 | "signature": ""
5 | },
6 | "compilationOptions": {},
7 | "targets": {
8 | ".NETCoreApp,Version=v9.0": {
9 | "mcp_delete_group/1.0.0": {
10 | "dependencies": {
11 | "Newtonsoft.Json": "13.0.3"
12 | },
13 | "runtime": {
14 | "mcp_delete_group.dll": {}
15 | }
16 | },
17 | "Newtonsoft.Json/13.0.3": {
18 | "runtime": {
19 | "lib/net6.0/Newtonsoft.Json.dll": {
20 | "assemblyVersion": "13.0.0.0",
21 | "fileVersion": "13.0.3.27908"
22 | }
23 | }
24 | }
25 | }
26 | },
27 | "libraries": {
28 | "mcp_delete_group/1.0.0": {
29 | "type": "project",
30 | "serviceable": false,
31 | "sha512": ""
32 | },
33 | "Newtonsoft.Json/13.0.3": {
34 | "type": "package",
35 | "serviceable": true,
36 | "sha512": "sha512-HrC5BXdl00IP9zeV+0Z848QWPAoCr9P3bDEZguI+gkLcBKAOxix/tLEAAHC+UvDNPv4a2d18lOReHMOagPa+zQ==",
37 | "path": "newtonsoft.json/13.0.3",
38 | "hashPath": "newtonsoft.json.13.0.3.nupkg.sha512"
39 | }
40 | }
41 | }
```
--------------------------------------------------------------------------------
/clients/C# .Net/2.1 mcp_continue_chat/bin/Debug/net9.0/mcp_continue_chat.deps.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "runtimeTarget": {
3 | "name": ".NETCoreApp,Version=v9.0",
4 | "signature": ""
5 | },
6 | "compilationOptions": {},
7 | "targets": {
8 | ".NETCoreApp,Version=v9.0": {
9 | "mcp_continue_chat/1.0.0": {
10 | "dependencies": {
11 | "Newtonsoft.Json": "13.0.3"
12 | },
13 | "runtime": {
14 | "mcp_continue_chat.dll": {}
15 | }
16 | },
17 | "Newtonsoft.Json/13.0.3": {
18 | "runtime": {
19 | "lib/net6.0/Newtonsoft.Json.dll": {
20 | "assemblyVersion": "13.0.0.0",
21 | "fileVersion": "13.0.3.27908"
22 | }
23 | }
24 | }
25 | }
26 | },
27 | "libraries": {
28 | "mcp_continue_chat/1.0.0": {
29 | "type": "project",
30 | "serviceable": false,
31 | "sha512": ""
32 | },
33 | "Newtonsoft.Json/13.0.3": {
34 | "type": "package",
35 | "serviceable": true,
36 | "sha512": "sha512-HrC5BXdl00IP9zeV+0Z848QWPAoCr9P3bDEZguI+gkLcBKAOxix/tLEAAHC+UvDNPv4a2d18lOReHMOagPa+zQ==",
37 | "path": "newtonsoft.json/13.0.3",
38 | "hashPath": "newtonsoft.json.13.0.3.nupkg.sha512"
39 | }
40 | }
41 | }
```
--------------------------------------------------------------------------------
/clients/C# .Net/2.2 mcp_get_chat_info/bin/Debug/net9.0/mcp_get_chat_info.deps.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "runtimeTarget": {
3 | "name": ".NETCoreApp,Version=v9.0",
4 | "signature": ""
5 | },
6 | "compilationOptions": {},
7 | "targets": {
8 | ".NETCoreApp,Version=v9.0": {
9 | "mcp_get_chat_info/1.0.0": {
10 | "dependencies": {
11 | "Newtonsoft.Json": "13.0.3"
12 | },
13 | "runtime": {
14 | "mcp_get_chat_info.dll": {}
15 | }
16 | },
17 | "Newtonsoft.Json/13.0.3": {
18 | "runtime": {
19 | "lib/net6.0/Newtonsoft.Json.dll": {
20 | "assemblyVersion": "13.0.0.0",
21 | "fileVersion": "13.0.3.27908"
22 | }
23 | }
24 | }
25 | }
26 | },
27 | "libraries": {
28 | "mcp_get_chat_info/1.0.0": {
29 | "type": "project",
30 | "serviceable": false,
31 | "sha512": ""
32 | },
33 | "Newtonsoft.Json/13.0.3": {
34 | "type": "package",
35 | "serviceable": true,
36 | "sha512": "sha512-HrC5BXdl00IP9zeV+0Z848QWPAoCr9P3bDEZguI+gkLcBKAOxix/tLEAAHC+UvDNPv4a2d18lOReHMOagPa+zQ==",
37 | "path": "newtonsoft.json/13.0.3",
38 | "hashPath": "newtonsoft.json.13.0.3.nupkg.sha512"
39 | }
40 | }
41 | }
```
--------------------------------------------------------------------------------
/clients/C# .Net/3.0 mcp_create_source/bin/Debug/net9.0/mcp_create_source.deps.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "runtimeTarget": {
3 | "name": ".NETCoreApp,Version=v9.0",
4 | "signature": ""
5 | },
6 | "compilationOptions": {},
7 | "targets": {
8 | ".NETCoreApp,Version=v9.0": {
9 | "mcp_create_source/1.0.0": {
10 | "dependencies": {
11 | "Newtonsoft.Json": "13.0.3"
12 | },
13 | "runtime": {
14 | "mcp_create_source.dll": {}
15 | }
16 | },
17 | "Newtonsoft.Json/13.0.3": {
18 | "runtime": {
19 | "lib/net6.0/Newtonsoft.Json.dll": {
20 | "assemblyVersion": "13.0.0.0",
21 | "fileVersion": "13.0.3.27908"
22 | }
23 | }
24 | }
25 | }
26 | },
27 | "libraries": {
28 | "mcp_create_source/1.0.0": {
29 | "type": "project",
30 | "serviceable": false,
31 | "sha512": ""
32 | },
33 | "Newtonsoft.Json/13.0.3": {
34 | "type": "package",
35 | "serviceable": true,
36 | "sha512": "sha512-HrC5BXdl00IP9zeV+0Z848QWPAoCr9P3bDEZguI+gkLcBKAOxix/tLEAAHC+UvDNPv4a2d18lOReHMOagPa+zQ==",
37 | "path": "newtonsoft.json/13.0.3",
38 | "hashPath": "newtonsoft.json.13.0.3.nupkg.sha512"
39 | }
40 | }
41 | }
```
--------------------------------------------------------------------------------
/clients/C# .Net/3.4 mcp_delete_source/bin/Debug/net9.0/mcp_delete_source.deps.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "runtimeTarget": {
3 | "name": ".NETCoreApp,Version=v9.0",
4 | "signature": ""
5 | },
6 | "compilationOptions": {},
7 | "targets": {
8 | ".NETCoreApp,Version=v9.0": {
9 | "mcp_delete_source/1.0.0": {
10 | "dependencies": {
11 | "Newtonsoft.Json": "13.0.3"
12 | },
13 | "runtime": {
14 | "mcp_delete_source.dll": {}
15 | }
16 | },
17 | "Newtonsoft.Json/13.0.3": {
18 | "runtime": {
19 | "lib/net6.0/Newtonsoft.Json.dll": {
20 | "assemblyVersion": "13.0.0.0",
21 | "fileVersion": "13.0.3.27908"
22 | }
23 | }
24 | }
25 | }
26 | },
27 | "libraries": {
28 | "mcp_delete_source/1.0.0": {
29 | "type": "project",
30 | "serviceable": false,
31 | "sha512": ""
32 | },
33 | "Newtonsoft.Json/13.0.3": {
34 | "type": "package",
35 | "serviceable": true,
36 | "sha512": "sha512-HrC5BXdl00IP9zeV+0Z848QWPAoCr9P3bDEZguI+gkLcBKAOxix/tLEAAHC+UvDNPv4a2d18lOReHMOagPa+zQ==",
37 | "path": "newtonsoft.json/13.0.3",
38 | "hashPath": "newtonsoft.json.13.0.3.nupkg.sha512"
39 | }
40 | }
41 | }
```
--------------------------------------------------------------------------------
/examples/dynamic_sources/rss_reader/demo_dynamic_sources.py:
--------------------------------------------------------------------------------
```python
1 | from pathlib import Path
2 | from time import sleep
3 |
4 | from clients.Gradio.Api import PrivateGPTAPI
5 | from clients.Gradio.config import Config
6 | import time
7 | from datetime import datetime
8 | from rss_parser import fetch_feed
9 |
10 |
11 | config_file = Path.absolute(Path(__file__).parent / "config.json")
12 | # Initialize configuration with required fields
13 | config = Config(config_file=config_file, required_fields=["base_url"])
14 | pgpt = PrivateGPTAPI(config)
15 |
16 | # TODO replace document id after first run
17 | document_id = None
18 |
19 | def init_entry(groups):
20 | id = pgpt.add_source("This is a test!", groups, "News Minimalist")["documentId"]
21 | print(pgpt.get_document_info(id))
22 |
23 |
24 | def update_task():
25 | print(f"Task executed at {datetime.now()}")
26 |
27 | text = fetch_feed("https://rss.beehiiv.com/feeds/4aF2pGVAEN.xml")
28 | pgpt.update_source(document_id, text, None, "News Minimalist.md")
29 | print(pgpt.get_document_info(document_id))
30 |
31 | if document_id is None:
32 | init_entry(["News"])
33 |
34 | while True:
35 | update_task()
36 | time.sleep(3600) # Sleep for 1 hour (3600 seconds)
37 |
38 |
39 |
40 |
```
--------------------------------------------------------------------------------
/agents/MCP-Client/Python/messages/message_types/prompts_models.py:
--------------------------------------------------------------------------------
```python
1 | from typing import Optional, List, Dict, Any, Union, Literal
2 | from pydantic import BaseModel, Field
3 |
4 | # Content Types
5 | class TextContent(BaseModel):
6 | type: Literal["text"] = "text"
7 | text: str
8 |
9 | class ImageContent(BaseModel):
10 | type: Literal["image"] = "image"
11 | data: str # base64-encoded image data
12 | mimeType: str
13 |
14 | class ResourceData(BaseModel):
15 | uri: str
16 | mimeType: str
17 | text: Optional[str] = None
18 | blob: Optional[str] = None # if binary data is included, base64-encoded
19 |
20 | class ResourceContent(BaseModel):
21 | type: Literal["resource"] = "resource"
22 | resource: ResourceData
23 |
24 | # Union of all content types
25 | MessageContent = Union[TextContent, ImageContent, ResourceContent]
26 |
27 | class PromptMessage(BaseModel):
28 | role: str
29 | content: MessageContent
30 |
31 | # Prompt Definition
32 | class Prompt(BaseModel):
33 | name: str
34 | description: Optional[str] = None
35 | arguments: Optional[List[str]] = None
36 |
37 | class PromptsGetResult(BaseModel):
38 | description: Optional[str]
39 | messages: List[PromptMessage]
40 |
41 | class PromptsGetParams(BaseModel):
42 | name: str
43 | arguments: Dict[str, Any] = {}
44 |
```
--------------------------------------------------------------------------------
/clients/Gradio/messages/message_types/prompts_models.py:
--------------------------------------------------------------------------------
```python
1 | from typing import Optional, List, Dict, Any, Union, Literal
2 | from pydantic import BaseModel, Field
3 |
4 | # Content Types
5 | class TextContent(BaseModel):
6 | type: Literal["text"] = "text"
7 | text: str
8 |
9 | class ImageContent(BaseModel):
10 | type: Literal["image"] = "image"
11 | data: str # base64-encoded image data
12 | mimeType: str
13 |
14 | class ResourceData(BaseModel):
15 | uri: str
16 | mimeType: str
17 | text: Optional[str] = None
18 | blob: Optional[str] = None # if binary data is included, base64-encoded
19 |
20 | class ResourceContent(BaseModel):
21 | type: Literal["resource"] = "resource"
22 | resource: ResourceData
23 |
24 | # Union of all content types
25 | MessageContent = Union[TextContent, ImageContent, ResourceContent]
26 |
27 | class PromptMessage(BaseModel):
28 | role: str
29 | content: MessageContent
30 |
31 | # Prompt Definition
32 | class Prompt(BaseModel):
33 | name: str
34 | description: Optional[str] = None
35 | arguments: Optional[List[str]] = None
36 |
37 | class PromptsGetResult(BaseModel):
38 | description: Optional[str]
39 | messages: List[PromptMessage]
40 |
41 | class PromptsGetParams(BaseModel):
42 | name: str
43 | arguments: Dict[str, Any] = {}
44 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/1.0 mcp_login/obj/mcp_login.csproj.nuget.g.props:
--------------------------------------------------------------------------------
```
1 | <?xml version="1.0" encoding="utf-8" standalone="no"?>
2 | <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 | <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
4 | <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
5 | <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
6 | <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
7 | <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
8 | <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\uwuertz\.nuget\packages\</NuGetPackageFolders>
9 | <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
10 | <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.2</NuGetToolVersion>
11 | </PropertyGroup>
12 | <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
13 | <SourceRoot Include="C:\Users\uwuertz\.nuget\packages\" />
14 | </ItemGroup>
15 | </Project>
```
--------------------------------------------------------------------------------
/clients/C# .Net/1.1 mcp_logout/obj/mcp_logout.csproj.nuget.g.props:
--------------------------------------------------------------------------------
```
1 | <?xml version="1.0" encoding="utf-8" standalone="no"?>
2 | <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 | <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
4 | <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
5 | <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
6 | <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
7 | <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
8 | <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\uwuertz\.nuget\packages\</NuGetPackageFolders>
9 | <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
10 | <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.2</NuGetToolVersion>
11 | </PropertyGroup>
12 | <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
13 | <SourceRoot Include="C:\Users\uwuertz\.nuget\packages\" />
14 | </ItemGroup>
15 | </Project>
```
--------------------------------------------------------------------------------
/clients/C# .Net/2.0 mcp_chat/obj/mcp_chat.csproj.nuget.g.props:
--------------------------------------------------------------------------------
```
1 | <?xml version="1.0" encoding="utf-8" standalone="no"?>
2 | <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 | <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
4 | <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
5 | <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
6 | <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
7 | <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
8 | <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\uwuertz\.nuget\packages\</NuGetPackageFolders>
9 | <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
10 | <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.2</NuGetToolVersion>
11 | </PropertyGroup>
12 | <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
13 | <SourceRoot Include="C:\Users\uwuertz\.nuget\packages\" />
14 | </ItemGroup>
15 | </Project>
```
--------------------------------------------------------------------------------
/clients/C# .Net/2.1 mcp_continue_chat/obj/mcp_continue_chat.csproj.nuget.g.props:
--------------------------------------------------------------------------------
```
1 | <?xml version="1.0" encoding="utf-8" standalone="no"?>
2 | <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 | <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
4 | <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
5 | <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
6 | <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
7 | <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
8 | <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\uwuertz\.nuget\packages\</NuGetPackageFolders>
9 | <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
10 | <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.2</NuGetToolVersion>
11 | </PropertyGroup>
12 | <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
13 | <SourceRoot Include="C:\Users\uwuertz\.nuget\packages\" />
14 | </ItemGroup>
15 | </Project>
```
--------------------------------------------------------------------------------
/clients/C# .Net/2.2 mcp_get_chat_info/obj/mcp_get_chat_info.csproj.nuget.g.props:
--------------------------------------------------------------------------------
```
1 | <?xml version="1.0" encoding="utf-8" standalone="no"?>
2 | <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 | <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
4 | <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
5 | <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
6 | <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
7 | <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
8 | <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\uwuertz\.nuget\packages\</NuGetPackageFolders>
9 | <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
10 | <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.2</NuGetToolVersion>
11 | </PropertyGroup>
12 | <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
13 | <SourceRoot Include="C:\Users\uwuertz\.nuget\packages\" />
14 | </ItemGroup>
15 | </Project>
```
--------------------------------------------------------------------------------
/clients/C# .Net/3.0 mcp_create_source/obj/mcp_create_source.csproj.nuget.g.props:
--------------------------------------------------------------------------------
```
1 | <?xml version="1.0" encoding="utf-8" standalone="no"?>
2 | <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 | <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
4 | <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
5 | <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
6 | <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
7 | <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
8 | <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\uwuertz\.nuget\packages\</NuGetPackageFolders>
9 | <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
10 | <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.2</NuGetToolVersion>
11 | </PropertyGroup>
12 | <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
13 | <SourceRoot Include="C:\Users\uwuertz\.nuget\packages\" />
14 | </ItemGroup>
15 | </Project>
```
--------------------------------------------------------------------------------
/clients/C# .Net/3.1 mcp_get_source/obj/mcp_get_source.csproj.nuget.g.props:
--------------------------------------------------------------------------------
```
1 | <?xml version="1.0" encoding="utf-8" standalone="no"?>
2 | <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 | <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
4 | <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
5 | <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
6 | <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
7 | <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
8 | <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\uwuertz\.nuget\packages\</NuGetPackageFolders>
9 | <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
10 | <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.2</NuGetToolVersion>
11 | </PropertyGroup>
12 | <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
13 | <SourceRoot Include="C:\Users\uwuertz\.nuget\packages\" />
14 | </ItemGroup>
15 | </Project>
```
--------------------------------------------------------------------------------
/clients/C# .Net/3.2 mcp_list_sources/obj/mcp_list_sources.csproj.nuget.g.props:
--------------------------------------------------------------------------------
```
1 | <?xml version="1.0" encoding="utf-8" standalone="no"?>
2 | <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 | <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
4 | <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
5 | <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
6 | <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
7 | <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
8 | <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\uwuertz\.nuget\packages\</NuGetPackageFolders>
9 | <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
10 | <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.2</NuGetToolVersion>
11 | </PropertyGroup>
12 | <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
13 | <SourceRoot Include="C:\Users\uwuertz\.nuget\packages\" />
14 | </ItemGroup>
15 | </Project>
```
--------------------------------------------------------------------------------
/clients/C# .Net/3.3 mcp_edit_source/obj/mcp_edit_source.csproj.nuget.g.props:
--------------------------------------------------------------------------------
```
1 | <?xml version="1.0" encoding="utf-8" standalone="no"?>
2 | <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 | <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
4 | <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
5 | <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
6 | <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
7 | <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
8 | <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\uwuertz\.nuget\packages\</NuGetPackageFolders>
9 | <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
10 | <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.2</NuGetToolVersion>
11 | </PropertyGroup>
12 | <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
13 | <SourceRoot Include="C:\Users\uwuertz\.nuget\packages\" />
14 | </ItemGroup>
15 | </Project>
```
--------------------------------------------------------------------------------
/clients/C# .Net/3.4 mcp_delete_source/obj/mcp_delete_source.csproj.nuget.g.props:
--------------------------------------------------------------------------------
```
1 | <?xml version="1.0" encoding="utf-8" standalone="no"?>
2 | <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 | <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
4 | <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
5 | <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
6 | <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
7 | <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
8 | <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\uwuertz\.nuget\packages\</NuGetPackageFolders>
9 | <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
10 | <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.2</NuGetToolVersion>
11 | </PropertyGroup>
12 | <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
13 | <SourceRoot Include="C:\Users\uwuertz\.nuget\packages\" />
14 | </ItemGroup>
15 | </Project>
```
--------------------------------------------------------------------------------
/clients/C# .Net/4.0 mcp_list_groups/obj/mcp_list_groups.csproj.nuget.g.props:
--------------------------------------------------------------------------------
```
1 | <?xml version="1.0" encoding="utf-8" standalone="no"?>
2 | <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 | <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
4 | <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
5 | <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
6 | <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
7 | <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
8 | <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\uwuertz\.nuget\packages\</NuGetPackageFolders>
9 | <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
10 | <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.2</NuGetToolVersion>
11 | </PropertyGroup>
12 | <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
13 | <SourceRoot Include="C:\Users\uwuertz\.nuget\packages\" />
14 | </ItemGroup>
15 | </Project>
```
--------------------------------------------------------------------------------
/clients/C# .Net/4.1 mcp_store_group/obj/mcp_store_group.csproj.nuget.g.props:
--------------------------------------------------------------------------------
```
1 | <?xml version="1.0" encoding="utf-8" standalone="no"?>
2 | <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 | <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
4 | <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
5 | <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
6 | <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
7 | <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
8 | <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\uwuertz\.nuget\packages\</NuGetPackageFolders>
9 | <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
10 | <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.2</NuGetToolVersion>
11 | </PropertyGroup>
12 | <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
13 | <SourceRoot Include="C:\Users\uwuertz\.nuget\packages\" />
14 | </ItemGroup>
15 | </Project>
```
--------------------------------------------------------------------------------
/clients/C# .Net/4.2 mcp_delete_group/obj/mcp_delete_group.csproj.nuget.g.props:
--------------------------------------------------------------------------------
```
1 | <?xml version="1.0" encoding="utf-8" standalone="no"?>
2 | <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 | <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
4 | <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
5 | <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
6 | <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
7 | <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
8 | <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\uwuertz\.nuget\packages\</NuGetPackageFolders>
9 | <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
10 | <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.2</NuGetToolVersion>
11 | </PropertyGroup>
12 | <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
13 | <SourceRoot Include="C:\Users\uwuertz\.nuget\packages\" />
14 | </ItemGroup>
15 | </Project>
```
--------------------------------------------------------------------------------
/clients/C# .Net/5.0 mcp_store_user/obj/mcp_store_user.csproj.nuget.g.props:
--------------------------------------------------------------------------------
```
1 | <?xml version="1.0" encoding="utf-8" standalone="no"?>
2 | <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 | <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
4 | <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
5 | <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
6 | <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
7 | <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
8 | <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\uwuertz\.nuget\packages\</NuGetPackageFolders>
9 | <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
10 | <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.2</NuGetToolVersion>
11 | </PropertyGroup>
12 | <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
13 | <SourceRoot Include="C:\Users\uwuertz\.nuget\packages\" />
14 | </ItemGroup>
15 | </Project>
```
--------------------------------------------------------------------------------
/clients/C# .Net/5.1 mcp_edit_user/obj/mcp_edit_user.csproj.nuget.g.props:
--------------------------------------------------------------------------------
```
1 | <?xml version="1.0" encoding="utf-8" standalone="no"?>
2 | <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 | <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
4 | <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
5 | <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
6 | <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
7 | <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
8 | <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\uwuertz\.nuget\packages\</NuGetPackageFolders>
9 | <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
10 | <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.2</NuGetToolVersion>
11 | </PropertyGroup>
12 | <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
13 | <SourceRoot Include="C:\Users\uwuertz\.nuget\packages\" />
14 | </ItemGroup>
15 | </Project>
```
--------------------------------------------------------------------------------
/clients/C# .Net/5.2 mcp_delete_user/obj/mcp_delete_user.csproj.nuget.g.props:
--------------------------------------------------------------------------------
```
1 | <?xml version="1.0" encoding="utf-8" standalone="no"?>
2 | <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 | <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
4 | <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
5 | <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
6 | <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
7 | <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
8 | <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\uwuertz\.nuget\packages\</NuGetPackageFolders>
9 | <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
10 | <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.2</NuGetToolVersion>
11 | </PropertyGroup>
12 | <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
13 | <SourceRoot Include="C:\Users\uwuertz\.nuget\packages\" />
14 | </ItemGroup>
15 | </Project>
```
--------------------------------------------------------------------------------
/agents/OpenAI_Compatible_API_Agent/Python/client_tests/vllm_client.py:
--------------------------------------------------------------------------------
```python
1 | import argparse
2 |
3 | import httpx
4 | from openai import OpenAI
5 | #pip install python-certifi-win32
6 |
7 |
8 | if __name__ == "__main__":
9 | parser = argparse.ArgumentParser(description="Provide an API key to connect to OpenAI-compatible API.")
10 | parser.add_argument("--api_key", required=True, help="API key for login")
11 | parser.add_argument("--base_url", required=True, help="The base url of the VLLM server")
12 | args = parser.parse_args()
13 |
14 | client = OpenAI(
15 | base_url=args.base_url,
16 | api_key=args.api_key,
17 | http_client=httpx.Client(verify=False)
18 | )
19 |
20 | stream = False
21 | response = client.chat.completions.create(
22 | model="/models/mistral-nemo-12b",
23 | temperature=0.8,
24 | top_p=0.8,
25 | stream=stream,
26 |
27 | # tools=tools or None,
28 | messages=[
29 | {"role": "system", "content": "You are a helpful agent."},
30 | {"role": "user", "content": "Tell me a short interesting story!"}
31 | ]
32 | )
33 |
34 | if stream:
35 | for chunk in response:
36 | print(chunk.choices[0].delta.content or "")
37 |
38 | else:
39 | # print the top "choice"
40 | print(response.choices[0].message.content)
```
--------------------------------------------------------------------------------
/agents/MCP-Client/Python/messages/message_types/prompts_messages.py:
--------------------------------------------------------------------------------
```python
1 | # messages/message_types/prompts_messages.py
2 | from typing import Any, Dict, Optional
3 | from ...messages.message_types.incrementing_id_message import IncrementingIDMessage
4 | from ...messages.message_types.json_rpc_message import JSONRPCMessage
5 | from ...messages.message_types.prompts_models import PromptsGetParams
6 |
7 | class PromptsListMessage(IncrementingIDMessage):
8 | def __init__(self, start_id: int = None, **kwargs):
9 | super().__init__(prefix="prompts-list", method="prompts/list", start_id=start_id, **kwargs)
10 |
11 |
12 | class PromptsGetMessage(IncrementingIDMessage):
13 | def __init__(self, name: str, arguments: Optional[Dict[str, Any]] = None, start_id: int = None, **kwargs):
14 | # Validate params using PromptsGetParams
15 | params_model = PromptsGetParams(name=name, arguments=arguments or {})
16 | super().__init__(
17 | prefix="prompts-get",
18 | method="prompts/get",
19 | start_id=start_id,
20 | params=params_model.model_dump(),
21 | **kwargs
22 | )
23 |
24 |
25 | class PromptsListChangedMessage(JSONRPCMessage):
26 | def __init__(self, **kwargs):
27 | super().__init__(method="notifications/prompts/list_changed", id=None, **kwargs)
28 |
```
--------------------------------------------------------------------------------
/clients/Gradio/messages/message_types/prompts_messages.py:
--------------------------------------------------------------------------------
```python
1 | # messages/message_types/prompts_messages.py
2 | from typing import Any, Dict, Optional
3 | from ...messages.message_types.incrementing_id_message import IncrementingIDMessage
4 | from ...messages.message_types.json_rpc_message import JSONRPCMessage
5 | from ...messages.message_types.prompts_models import PromptsGetParams
6 |
7 | class PromptsListMessage(IncrementingIDMessage):
8 | def __init__(self, start_id: int = None, **kwargs):
9 | super().__init__(prefix="prompts-list", method="prompts/list", start_id=start_id, **kwargs)
10 |
11 |
12 | class PromptsGetMessage(IncrementingIDMessage):
13 | def __init__(self, name: str, arguments: Optional[Dict[str, Any]] = None, start_id: int = None, **kwargs):
14 | # Validate params using PromptsGetParams
15 | params_model = PromptsGetParams(name=name, arguments=arguments or {})
16 | super().__init__(
17 | prefix="prompts-get",
18 | method="prompts/get",
19 | start_id=start_id,
20 | params=params_model.model_dump(),
21 | **kwargs
22 | )
23 |
24 |
25 | class PromptsListChangedMessage(JSONRPCMessage):
26 | def __init__(self, **kwargs):
27 | super().__init__(method="notifications/prompts/list_changed", id=None, **kwargs)
28 |
```
--------------------------------------------------------------------------------
/clients/Gradio/mcp_servers/sqlite/Dockerfile:
--------------------------------------------------------------------------------
```dockerfile
1 | # Use a Python image with uv pre-installed
2 | FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim AS uv
3 |
4 | # Install the project into `/app`
5 | WORKDIR /app
6 |
7 | # Enable bytecode compilation
8 | ENV UV_COMPILE_BYTECODE=1
9 |
10 | # Copy from the cache instead of linking since it's a mounted volume
11 | ENV UV_LINK_MODE=copy
12 |
13 | # Install the project's dependencies using the lockfile and settings
14 | RUN --mount=type=cache,target=/root/.cache/uv \
15 | --mount=type=bind,source=uv.lock,target=uv.lock \
16 | --mount=type=bind,source=pyproject.toml,target=pyproject.toml \
17 | uv sync --frozen --no-install-project --no-dev --no-editable
18 |
19 | # Then, add the rest of the project source code and install it
20 | # Installing separately from its dependencies allows optimal layer caching
21 | ADD . /app
22 | RUN --mount=type=cache,target=/root/.cache/uv \
23 | uv sync --frozen --no-dev --no-editable
24 |
25 | FROM python:3.12-slim-bookworm
26 |
27 | WORKDIR /app
28 |
29 | COPY --from=uv /root/.local /root/.local
30 | COPY --from=uv --chown=app:app /app/.venv /app/.venv
31 |
32 | # Place executables in the environment at the front of the path
33 | ENV PATH="/app/.venv/bin:$PATH"
34 |
35 | # when running the container, add --db-path and a bind mount to the host's db file
36 | ENTRYPOINT ["mcp-server-sqlite"]
37 |
38 |
```
--------------------------------------------------------------------------------
/src/public/index.html:
--------------------------------------------------------------------------------
```html
1 | <!DOCTYPE html>
2 | <html lang="en">
3 | <head>
4 | <meta charset="UTF-8">
5 | <meta name="viewport" content="width=device-width, initial-scale=1.0">
6 | <title>Live Log Viewer</title>
7 | <style>
8 | body {
9 | font-family: Arial, sans-serif;
10 | margin: 20px;
11 | text-align: center;
12 | }
13 | img {
14 | max-width: 150px;
15 | margin-bottom: 20px;
16 | }
17 | h1 {
18 | margin-top: 0;
19 | }
20 | pre {
21 | background-color: #f4f4f4;
22 | padding: 10px;
23 | border: 1px solid #ddd;
24 | overflow: auto;
25 | max-height: 80vh;
26 | text-align: left;
27 | }
28 | </style>
29 | </head>
30 | <body>
31 | <!-- Logo -->
32 | <img src="pgpt-mcp-logo.png" alt="pGPT-MCP Logo">
33 |
34 | <!-- Titel -->
35 | <h1>Private GPT MCP-Server Live Log Viewer</h1>
36 |
37 | <!-- Log-Inhalt -->
38 | <pre id="logContent">Warten auf Logdaten...</pre>
39 |
40 | <!-- WebSocket-Integration -->
41 | <script src="/socket.io/socket.io.js"></script>
42 | <script>
43 | const socket = io();
44 | const logContent = document.getElementById('logContent');
45 |
46 | socket.on('logUpdate', (data) => {
47 | logContent.textContent = data;
48 | });
49 | </script>
50 | </body>
51 | </html>
52 |
```
--------------------------------------------------------------------------------
/agents/OpenAI_Compatible_API_Agent/Python/client_tests/openai_test_client.py:
--------------------------------------------------------------------------------
```python
1 | import argparse
2 | from typing import Optional
3 |
4 | from langchain_community.chat_models import ChatOpenAI
5 | from openai import OpenAI
6 | from pydantic import Field, BaseModel
7 |
8 | if __name__ == "__main__":
9 | parser = argparse.ArgumentParser(description="Provide an API key to connect to OpenAI-compatible API.")
10 | parser.add_argument("--api_key", required=True, help="API key for login")
11 | args = parser.parse_args()
12 |
13 | # init client and connect to localhost server
14 | client = OpenAI(
15 | api_key=args.api_key,
16 | base_url="http://127.0.0.1:8001" # change the default port if needed
17 | )
18 |
19 | stream = False
20 | try:
21 | chat_completion = client.chat.completions.create(
22 | model="pgpt",
23 | messages=[{"role": "system", "content": "Be funny."}, {"role": "user", "content": "Say this is a test"}],
24 | stream=stream,
25 | extra_body={
26 | "groups": [],
27 | "newSession": True
28 | }
29 | )
30 | if stream:
31 | for chunk in chat_completion:
32 | print(chunk.choices[0].delta.content or "")
33 |
34 | else:
35 | # print the top "choice"
36 | print(chat_completion.choices[0].message.content)
37 |
38 | except Exception as e:
39 | print(e)
40 |
41 |
```
--------------------------------------------------------------------------------
/agents/ISMAgent/start_ism_agent.ps1:
--------------------------------------------------------------------------------
```
1 | param(
2 | [string]$ConfigPath = "agents\ISMAgent\config.json",
3 | [switch]$VerboseLog = $false,
4 | [string]$Language = "",
5 | [double]$Delay = 0.5
6 | )
7 |
8 | # UTF-8 Output (for emoji/logs)
9 | $env:PYTHONIOENCODING = "utf-8"
10 | try { [Console]::OutputEncoding = [System.Text.Encoding]::UTF8 } catch {}
11 |
12 | Write-Host "Ensuring Python dependencies are installed..." -ForegroundColor Cyan
13 | pip install -r agents\ISMAgent\requirements.txt
14 |
15 | if (-not (Test-Path -LiteralPath $ConfigPath)) {
16 | Write-Error "Config file not found: $ConfigPath"
17 | exit 1
18 | }
19 |
20 | # Build explicit argument list (each token separate!)
21 | $argList = @(
22 | "-m", "agents.ISMAgent.Python.ism_agent",
23 | "--config", $ConfigPath
24 | )
25 |
26 | if ($VerboseLog) { $argList += "--verbose" }
27 | if ($Language -ne "") { $argList += @("--language", $Language) }
28 | if ($Delay -ne $null) {
29 | $argList += @("--delay", ($Delay.ToString([System.Globalization.CultureInfo]::InvariantCulture)))
30 | }
31 |
32 | Write-Host "Starting the ISM Agent..." -ForegroundColor Yellow
33 |
34 | # Run python and wait; capture exit code
35 | $proc = Start-Process -FilePath "python" -ArgumentList $argList -NoNewWindow -PassThru -Wait
36 | $exit = $proc.ExitCode
37 |
38 | if ($exit -ne 0) {
39 | Write-Error "Status: ISM Agent exited with code $exit."
40 | exit $exit
41 | } else {
42 | Write-Host "Status: ISM Agent finished successfully." -ForegroundColor Green
43 | }
44 |
```
--------------------------------------------------------------------------------
/agents/AgentInterface/Python/local_file_handler.py:
--------------------------------------------------------------------------------
```python
1 | import os
2 | import json
3 |
4 | class LocalFileHandler:
5 | def __init__(self, base_name, local_dir, file_type, size_limit, remote_subdir, config, language_code):
6 | self.base_name = base_name
7 | self.local_dir = local_dir
8 | self.file_type = file_type
9 | self.size_limit = size_limit
10 | self.remote_subdir = remote_subdir
11 | self.config = config
12 | self.language_code = language_code
13 | self.current_file_path = self._create_new_file()
14 |
15 | def _create_new_file(self):
16 | os.makedirs(self.local_dir, exist_ok=True)
17 | file_path = os.path.join(self.local_dir, f"{self.base_name}.{self.file_type}")
18 | with open(file_path, "w", encoding="utf-8") as f:
19 | if self.file_type == "json":
20 | json.dump([], f)
21 | return file_path
22 |
23 | def append_record(self, record):
24 | if self.file_type != "json":
25 | raise ValueError("Only JSON records are supported.")
26 | with open(self.current_file_path, "r+", encoding="utf-8") as f:
27 | data = json.load(f)
28 | data.append(record)
29 | f.seek(0)
30 | json.dump(data, f, indent=4)
31 |
32 | def append_text(self, text):
33 | if self.file_type != "txt":
34 | raise ValueError("Only text files are supported.")
35 | with open(self.current_file_path, "a", encoding="utf-8") as f:
36 | f.write(text + "\n")
37 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/2.0 mcp_chat/obj/Debug/net9.0/mcp_chat.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
```
1 | C:\Users\uwuertz\AI\mcp-client\mcp_chat\bin\Debug\net9.0\mcp_chat.exe
2 | C:\Users\uwuertz\AI\mcp-client\mcp_chat\bin\Debug\net9.0\mcp_chat.deps.json
3 | C:\Users\uwuertz\AI\mcp-client\mcp_chat\bin\Debug\net9.0\mcp_chat.runtimeconfig.json
4 | C:\Users\uwuertz\AI\mcp-client\mcp_chat\bin\Debug\net9.0\mcp_chat.dll
5 | C:\Users\uwuertz\AI\mcp-client\mcp_chat\bin\Debug\net9.0\mcp_chat.pdb
6 | C:\Users\uwuertz\AI\mcp-client\mcp_chat\bin\Debug\net9.0\Newtonsoft.Json.dll
7 | C:\Users\uwuertz\AI\mcp-client\mcp_chat\obj\Debug\net9.0\mcp_chat.csproj.AssemblyReference.cache
8 | C:\Users\uwuertz\AI\mcp-client\mcp_chat\obj\Debug\net9.0\mcp_chat.GeneratedMSBuildEditorConfig.editorconfig
9 | C:\Users\uwuertz\AI\mcp-client\mcp_chat\obj\Debug\net9.0\mcp_chat.AssemblyInfoInputs.cache
10 | C:\Users\uwuertz\AI\mcp-client\mcp_chat\obj\Debug\net9.0\mcp_chat.AssemblyInfo.cs
11 | C:\Users\uwuertz\AI\mcp-client\mcp_chat\obj\Debug\net9.0\mcp_chat.csproj.CoreCompileInputs.cache
12 | C:\Users\uwuertz\AI\mcp-client\mcp_chat\obj\Debug\net9.0\mcp_chat.csproj.Up2Date
13 | C:\Users\uwuertz\AI\mcp-client\mcp_chat\obj\Debug\net9.0\mcp_chat.dll
14 | C:\Users\uwuertz\AI\mcp-client\mcp_chat\obj\Debug\net9.0\refint\mcp_chat.dll
15 | C:\Users\uwuertz\AI\mcp-client\mcp_chat\obj\Debug\net9.0\mcp_chat.pdb
16 | C:\Users\uwuertz\AI\mcp-client\mcp_chat\obj\Debug\net9.0\mcp_chat.genruntimeconfig.cache
17 | C:\Users\uwuertz\AI\mcp-client\mcp_chat\obj\Debug\net9.0\ref\mcp_chat.dll
18 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/1.0 mcp_login/obj/Debug/net9.0/mcp_login.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
```
1 | C:\Users\uwuertz\AI\mcp-client\mcp_login\bin\Debug\net9.0\mcp_login.exe
2 | C:\Users\uwuertz\AI\mcp-client\mcp_login\bin\Debug\net9.0\mcp_login.deps.json
3 | C:\Users\uwuertz\AI\mcp-client\mcp_login\bin\Debug\net9.0\mcp_login.runtimeconfig.json
4 | C:\Users\uwuertz\AI\mcp-client\mcp_login\bin\Debug\net9.0\mcp_login.dll
5 | C:\Users\uwuertz\AI\mcp-client\mcp_login\bin\Debug\net9.0\mcp_login.pdb
6 | C:\Users\uwuertz\AI\mcp-client\mcp_login\bin\Debug\net9.0\Newtonsoft.Json.dll
7 | C:\Users\uwuertz\AI\mcp-client\mcp_login\obj\Debug\net9.0\mcp_login.csproj.AssemblyReference.cache
8 | C:\Users\uwuertz\AI\mcp-client\mcp_login\obj\Debug\net9.0\mcp_login.GeneratedMSBuildEditorConfig.editorconfig
9 | C:\Users\uwuertz\AI\mcp-client\mcp_login\obj\Debug\net9.0\mcp_login.AssemblyInfoInputs.cache
10 | C:\Users\uwuertz\AI\mcp-client\mcp_login\obj\Debug\net9.0\mcp_login.AssemblyInfo.cs
11 | C:\Users\uwuertz\AI\mcp-client\mcp_login\obj\Debug\net9.0\mcp_login.csproj.CoreCompileInputs.cache
12 | C:\Users\uwuertz\AI\mcp-client\mcp_login\obj\Debug\net9.0\mcp_login.csproj.Up2Date
13 | C:\Users\uwuertz\AI\mcp-client\mcp_login\obj\Debug\net9.0\mcp_login.dll
14 | C:\Users\uwuertz\AI\mcp-client\mcp_login\obj\Debug\net9.0\refint\mcp_login.dll
15 | C:\Users\uwuertz\AI\mcp-client\mcp_login\obj\Debug\net9.0\mcp_login.pdb
16 | C:\Users\uwuertz\AI\mcp-client\mcp_login\obj\Debug\net9.0\mcp_login.genruntimeconfig.cache
17 | C:\Users\uwuertz\AI\mcp-client\mcp_login\obj\Debug\net9.0\ref\mcp_login.dll
18 |
```
--------------------------------------------------------------------------------
/clients/Gradio/mcp_servers/demo-mcp-server/tools/calculator.js:
--------------------------------------------------------------------------------
```javascript
1 | export{ calculator, calculator_sse}
2 |
3 | //The actual tool function
4 | async function calculator(args){
5 | const a = Number(args.a);
6 | const b = Number(args.b);
7 |
8 | let result = 0;
9 | switch(args.operation){
10 | case "add":
11 | result = Number(a) + Number(b);
12 | break;
13 | case "subtract":
14 | result = Number(a) - Number(b);
15 | break;
16 | case "multiply":
17 | result = Number(a) * Number(b);
18 | break;
19 | case "divide":
20 | if (b === 0) throw new Error("Division by zero");
21 | result = Number(a) / Number(b);
22 | break;
23 | }
24 |
25 | return {
26 | content: [{ type: "text", text: `${result}` }],
27 | };
28 | }
29 |
30 |
31 |
32 | async function calculator_sse(args){
33 | // For some reason sse expects an expression, while stdio expects a,b, operation
34 |
35 | var split = args.expression.split(/([+\-*/()])/)
36 | const a = Number(split[0])
37 | const operation = split[1];
38 | const b = Number(args.expression.replace(split[0], "").replace(split[1], ""))
39 | let result = 0;
40 | switch(operation){
41 | case "+":
42 | result = Number(a) + Number(b);
43 | break;
44 | case "-":
45 | result = Number(a) - Number(b);
46 | break;
47 | case "*":
48 | result = Number(a) * Number(b);
49 | break;
50 | case "/":
51 | if (b === 0) throw new Error("Division by zero");
52 | result = Number(a) / Number(b);
53 | break;
54 | }
55 |
56 | return {
57 | content: [{ type: "text", text: `${result}` }],
58 | };
59 | }
```
--------------------------------------------------------------------------------
/clients/C# .Net/1.1 mcp_logout/obj/Debug/net9.0/mcp_logout.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
```
1 | C:\Users\uwuertz\AI\mcp-client\mcp_logout\bin\Debug\net9.0\mcp_logout.exe
2 | C:\Users\uwuertz\AI\mcp-client\mcp_logout\bin\Debug\net9.0\mcp_logout.deps.json
3 | C:\Users\uwuertz\AI\mcp-client\mcp_logout\bin\Debug\net9.0\mcp_logout.runtimeconfig.json
4 | C:\Users\uwuertz\AI\mcp-client\mcp_logout\bin\Debug\net9.0\mcp_logout.dll
5 | C:\Users\uwuertz\AI\mcp-client\mcp_logout\bin\Debug\net9.0\mcp_logout.pdb
6 | C:\Users\uwuertz\AI\mcp-client\mcp_logout\bin\Debug\net9.0\Newtonsoft.Json.dll
7 | C:\Users\uwuertz\AI\mcp-client\mcp_logout\obj\Debug\net9.0\mcp_logout.csproj.AssemblyReference.cache
8 | C:\Users\uwuertz\AI\mcp-client\mcp_logout\obj\Debug\net9.0\mcp_logout.GeneratedMSBuildEditorConfig.editorconfig
9 | C:\Users\uwuertz\AI\mcp-client\mcp_logout\obj\Debug\net9.0\mcp_logout.AssemblyInfoInputs.cache
10 | C:\Users\uwuertz\AI\mcp-client\mcp_logout\obj\Debug\net9.0\mcp_logout.AssemblyInfo.cs
11 | C:\Users\uwuertz\AI\mcp-client\mcp_logout\obj\Debug\net9.0\mcp_logout.csproj.CoreCompileInputs.cache
12 | C:\Users\uwuertz\AI\mcp-client\mcp_logout\obj\Debug\net9.0\mcp_logout.csproj.Up2Date
13 | C:\Users\uwuertz\AI\mcp-client\mcp_logout\obj\Debug\net9.0\mcp_logout.dll
14 | C:\Users\uwuertz\AI\mcp-client\mcp_logout\obj\Debug\net9.0\refint\mcp_logout.dll
15 | C:\Users\uwuertz\AI\mcp-client\mcp_logout\obj\Debug\net9.0\mcp_logout.pdb
16 | C:\Users\uwuertz\AI\mcp-client\mcp_logout\obj\Debug\net9.0\mcp_logout.genruntimeconfig.cache
17 | C:\Users\uwuertz\AI\mcp-client\mcp_logout\obj\Debug\net9.0\ref\mcp_logout.dll
18 |
```
--------------------------------------------------------------------------------
/agents/IoTAgent/config_example.json:
--------------------------------------------------------------------------------
```json
1 | {
2 | "logging": {
3 | "level": "INFO",
4 | "format": "%(asctime)s | %(level_icon)s %(component)s :%(tag)s | %(message_type)s | %(message)s",
5 | "date_format": "%Y-%m-%d %H:%M:%S"
6 | },
7 | "mqtt": {
8 | "broker": "your.broker.ip.address",
9 | "port": 1883,
10 | "username": "your_mqtt_username",
11 | "password": "your_mqtt_password",
12 | "topic": "<your MQTT topic to subscribe)",
13 | "vehicle": "<your MQTT entry>"
14 | },
15 | "files": {
16 | "base_filename": "TM3-IoT",
17 | "json_file_name": "mqtt.json",
18 | "translated_text_files": {
19 | "de": "translated_text_de.txt",
20 | "en": "translated_text_en.txt"
21 | },
22 | "size_limits": {
23 | "json": 1048576,
24 | "de_txt": 512000,
25 | "en_txt": 512000
26 | },
27 | "local_subdirs": {
28 | "json": "local/json",
29 | "de_txt": "local/de",
30 | "en_txt": "local/en"
31 | },
32 | "sftp_subdirs": {
33 | "json": "remote/json",
34 | "de_txt": "remote/de",
35 | "en_txt": "remote/en"
36 | }
37 | },
38 | "sftp": {
39 | "host": "your.sftp.host.address",
40 | "port": 2222,
41 | "username": "your_sftp_username",
42 | "password": "your_sftp_password",
43 | "remote_path": "/"
44 | },
45 | "chatbot_agent": {
46 | "api_url": "http://your.chatbot.api.url/ask",
47 | "api_key": "your_secure_api_key"
48 | },
49 | "languages": ["en", "de"],
50 | "metrics": {
51 | "port": 9101
52 | }
53 | }
54 |
```
--------------------------------------------------------------------------------
/clients/Gradio/mcp_servers/pgpt/server.py:
--------------------------------------------------------------------------------
```python
1 | import asyncio
2 | import re
3 | from datetime import timedelta
4 | from pathlib import Path
5 |
6 | from mcp.server.fastmcp import FastMCP, Context
7 | from Api import PrivateGPTAPI
8 | from config import Config, ConfigError
9 |
10 | mcp = FastMCP("PGPT", description="Interact with PrivateGPT.", dependencies=[])
11 |
12 |
13 |
14 | def load_config():
15 | # Load configuration file
16 | try:
17 | # Get the absolute path to the config.json file
18 | config_file = Path.absolute(Path(__file__).parent / "config.json")
19 | # Initialize configuration with required fields
20 | config = Config(config_file=config_file, required_fields=["base_url"])
21 | return config
22 | except ConfigError as e:
23 | print(f"Configuration Error: {e}")
24 | return None
25 |
26 |
27 |
28 | @mcp.tool()
29 | async def chat_test(message: str) -> str:
30 | """Interact with a Knowledge database about the user request"""
31 | config = load_config()
32 | pgpt = PrivateGPTAPI(config)
33 | print(pgpt.chosen_groups)
34 |
35 | result = pgpt.create_chat(message)
36 | return result["data"]["answer"]
37 |
38 |
39 | @mcp.tool()
40 | async def add_user(userName:str, userEmail:str, userPassword:str, userGroups: list) -> str:
41 | """Add a user to PrivateGPT """
42 | config = load_config()
43 | pgpt = PrivateGPTAPI(config)
44 |
45 | result = pgpt.add_user(userName, userEmail, userPassword,userGroups)
46 | return result
47 |
48 |
49 |
50 |
51 | if __name__ == "__main__":
52 | #result = asyncio.run(chat_test("What do I need to enter the PrivateGPT testdrive?"))
53 | #print(result)
54 |
55 | result2 = asyncio.run(add_user("test", "[email protected]","Test1234!", []))
56 | print(result2)
57 |
```
--------------------------------------------------------------------------------
/clients/Go/1.1 mcp_logout/MCPLogoutClient.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 LogoutPayload struct {
15 | Command string `json:"command"`
16 | Token string `json:"token"`
17 | }
18 |
19 | func sendLogoutRequest(serverIP string, serverPort int, token string) (string, error) {
20 | payload := LogoutPayload{
21 | Command: "logout",
22 | Token: token,
23 | }
24 |
25 | payloadJSON, err := json.Marshal(payload)
26 | if err != nil {
27 | return "", err
28 | }
29 |
30 | conn, err := net.Dial("tcp", fmt.Sprintf("%s:%d", serverIP, serverPort))
31 | if err != nil {
32 | return "", err
33 | }
34 | defer conn.Close()
35 |
36 | _, err = conn.Write(payloadJSON)
37 | if err != nil {
38 | return "", err
39 | }
40 |
41 | var responseBuffer bytes.Buffer
42 | buf := make([]byte, 4096)
43 | for {
44 | n, err := conn.Read(buf)
45 | if err != nil {
46 | if errors.Is(err, io.EOF) {
47 | break
48 | }
49 | return "", err
50 | }
51 | responseBuffer.Write(buf[:n])
52 | if n < 4096 {
53 | break
54 | }
55 | }
56 |
57 | return responseBuffer.String(), nil
58 | }
59 |
60 | func main() {
61 | serverIP := flag.String("server-ip", "", "IP address of the MCP server")
62 | serverPort := flag.Int("server-port", 0, "Port number of the MCP server")
63 | token := flag.String("token", "", "Authentication token")
64 |
65 | flag.Parse()
66 |
67 | if *serverIP == "" || *serverPort == 0 || *token == "" {
68 | fmt.Println("❌ ERROR: All flags are required.")
69 | flag.Usage()
70 | os.Exit(1)
71 | }
72 |
73 | fmt.Println("🔒 Sending logout request...")
74 | response, err := sendLogoutRequest(*serverIP, *serverPort, *token)
75 | if err != nil {
76 | fmt.Printf("❌ ERROR: %v\n", err)
77 | os.Exit(1)
78 | }
79 |
80 | fmt.Println("✅ Response from server:")
81 | fmt.Println(response)
82 | }
83 |
```
--------------------------------------------------------------------------------
/clients/C# .Net/5.1 mcp_edit_user/obj/Debug/net9.0/mcp_edit_user.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
```
1 | C:\Users\uwuertz\AI\mcp-client\mcp_edit_user\bin\Debug\net9.0\mcp_edit_user.exe
2 | C:\Users\uwuertz\AI\mcp-client\mcp_edit_user\bin\Debug\net9.0\mcp_edit_user.deps.json
3 | C:\Users\uwuertz\AI\mcp-client\mcp_edit_user\bin\Debug\net9.0\mcp_edit_user.runtimeconfig.json
4 | C:\Users\uwuertz\AI\mcp-client\mcp_edit_user\bin\Debug\net9.0\mcp_edit_user.dll
5 | C:\Users\uwuertz\AI\mcp-client\mcp_edit_user\bin\Debug\net9.0\mcp_edit_user.pdb
6 | C:\Users\uwuertz\AI\mcp-client\mcp_edit_user\bin\Debug\net9.0\Newtonsoft.Json.dll
7 | C:\Users\uwuertz\AI\mcp-client\mcp_edit_user\obj\Debug\net9.0\mcp_edit_user.csproj.AssemblyReference.cache
8 | C:\Users\uwuertz\AI\mcp-client\mcp_edit_user\obj\Debug\net9.0\mcp_edit_user.GeneratedMSBuildEditorConfig.editorconfig
9 | C:\Users\uwuertz\AI\mcp-client\mcp_edit_user\obj\Debug\net9.0\mcp_edit_user.AssemblyInfoInputs.cache
10 | C:\Users\uwuertz\AI\mcp-client\mcp_edit_user\obj\Debug\net9.0\mcp_edit_user.AssemblyInfo.cs
11 | C:\Users\uwuertz\AI\mcp-client\mcp_edit_user\obj\Debug\net9.0\mcp_edit_user.csproj.CoreCompileInputs.cache
12 | C:\Users\uwuertz\AI\mcp-client\mcp_edit_user\obj\Debug\net9.0\mcp_edit.94A30270.Up2Date
13 | C:\Users\uwuertz\AI\mcp-client\mcp_edit_user\obj\Debug\net9.0\mcp_edit_user.dll
14 | C:\Users\uwuertz\AI\mcp-client\mcp_edit_user\obj\Debug\net9.0\refint\mcp_edit_user.dll
15 | C:\Users\uwuertz\AI\mcp-client\mcp_edit_user\obj\Debug\net9.0\mcp_edit_user.pdb
16 | C:\Users\uwuertz\AI\mcp-client\mcp_edit_user\obj\Debug\net9.0\mcp_edit_user.genruntimeconfig.cache
17 | C:\Users\uwuertz\AI\mcp-client\mcp_edit_user\obj\Debug\net9.0\ref\mcp_edit_user.dll
18 |
```