Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions src/askui/chat/api/mcp_configs/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,16 +150,9 @@ def _save(self, mcp_config: McpConfig, new: bool = False) -> None:

def seed(self) -> None:
"""Seed the MCP configuration service with default MCP configurations."""
while True:
list_response = self.list_(
None, ListQuery(limit=LIST_LIMIT_MAX, order="asc")
)
for mcp_config in list_response.data:
self.delete(None, mcp_config.id, force=True)
if not list_response.has_more:
break
for seed in self._seeds:
try:
self.delete(None, seed.id, force=True)
self._save(seed, new=True)
except ConflictError: # noqa: PERF203
self._save(seed)