feat: implement dynamic package versioning and refactor MCP server initialization (#104)

This commit is contained in:
samanhappy
2025-05-18 20:07:01 +08:00
committed by GitHub
parent ae3fe1c6f1
commit f46e2c22fc
6 changed files with 57 additions and 12 deletions

View File

@@ -40,7 +40,11 @@ const Header: React.FC<HeaderProps> = ({ onToggleSidebar }) => {
{/* Theme Switch and Version */}
<div className="flex items-center space-x-4">
<span className="text-sm text-gray-500 dark:text-gray-400">{import.meta.env.PACKAGE_VERSION}</span>
<span className="text-sm text-gray-500 dark:text-gray-400">
{import.meta.env.PACKAGE_VERSION === 'dev'
? import.meta.env.PACKAGE_VERSION
: `v${import.meta.env.PACKAGE_VERSION}`}
</span>
<a
href="https://github.com/samanhappy/mcphub"
target="_blank"