| 1 | <html> |
| 2 | |
| 3 | <head> |
| 4 | <title>Project MCP servers</title> |
| 5 | <script type="module"> |
| 6 | import { store as mcpServersStore } from "/components/settings/mcp/client/mcp-servers-store.js"; |
| 7 | </script> |
| 8 | </head> |
| 9 | |
| 10 | <body> |
| 11 | <div x-data> |
| 12 | <template x-if="$store.projects && $store.projects.selectedProject && $store.mcpServersStore"> |
| 13 | <div class="project-mcp-section"> |
| 14 | <div> |
| 15 | <p class="project-mcp-description"> |
| 16 | Project MCP servers are inherited on chats using this project. Global MCP servers remain available unless a project server with the same name overrides them. |
| 17 | </p> |
| 18 | <p class="project-mcp-count"> |
| 19 | <span x-text="$store.mcpServersStore.countServersInConfig($store.projects.selectedProject.mcp_servers)"></span> |
| 20 | <span>project servers configured</span> |
| 21 | </p> |
| 22 | </div> |
| 23 | <button type="button" class="button" @click="$store.mcpServersStore.openProjectConfig($store.projects.selectedProject)"> |
| 24 | <x-icon class="icon" name="hub"></x-icon> |
| 25 | MCP Servers |
| 26 | </button> |
| 27 | </div> |
| 28 | </template> |
| 29 | </div> |
| 30 | |
| 31 | <style> |
| 32 | .project-mcp-section { |
| 33 | display: flex; |
| 34 | align-items: flex-start; |
| 35 | justify-content: space-between; |
| 36 | gap: 1rem; |
| 37 | } |
| 38 | |
| 39 | .project-mcp-description { |
| 40 | margin: 0; |
| 41 | color: var(--color-text-muted); |
| 42 | font-size: 0.9rem; |
| 43 | line-height: 1.45; |
| 44 | } |
| 45 | |
| 46 | .project-mcp-count { |
| 47 | margin: 0.5rem 0 0; |
| 48 | color: var(--color-text); |
| 49 | font-size: 0.85rem; |
| 50 | font-weight: 600; |
| 51 | } |
| 52 | |
| 53 | .project-mcp-count span + span { |
| 54 | margin-left: 0.25rem; |
| 55 | color: var(--color-text-muted); |
| 56 | font-weight: 500; |
| 57 | } |
| 58 | |
| 59 | .project-mcp-section .button { |
| 60 | display: inline-flex; |
| 61 | align-items: center; |
| 62 | gap: 0.35rem; |
| 63 | flex-shrink: 0; |
| 64 | } |
| 65 | |
| 66 | @media (max-width: 760px) { |
| 67 | .project-mcp-section { |
| 68 | flex-direction: column; |
| 69 | } |
| 70 | } |
| 71 | </style> |
| 72 | |
| 73 | </body> |
| 74 | |
| 75 | </html> |