Commit 2ed2131
committed
feat(mcp): persist MCP server configurations to local data directory
- Add mcps_dir() method to AppDirs in cortex-common for cross-platform
MCP storage directory path (Linux/macOS/Windows)
- Create new mcp_storage module in cortex-tui for MCP server config
persistence as JSON files
- Add StoredMcpServer struct with support for stdio and HTTP transports
- Integrate storage into event_loop: save on add, remove on delete
- Load persisted MCP servers at app startup in app_runner
- Servers are stored in the platform-specific data directory:
- Linux: ~/.local/share/cortex/mcps/
- macOS: ~/.local/share/cortex/mcps/
- Windows: %APPDATA%\cortex\mcps\1 parent 093bfb8 commit 2ed2131
File tree
5 files changed
+528
-4
lines changed- cortex-common/src
- cortex-tui/src
- runner
5 files changed
+528
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
133 | 138 | | |
134 | 139 | | |
135 | 140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
117 | 120 | | |
118 | 121 | | |
119 | 122 | | |
| |||
163 | 166 | | |
164 | 167 | | |
165 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
166 | 172 | | |
167 | 173 | | |
168 | 174 | | |
| |||
0 commit comments