Skip to content

Commit 097ee75

Browse files
committed
Update MCP handler to use dynamic versioning and clean up setup page formatting
- Modified the MCP handler to retrieve the version from `package.json`, ensuring accurate versioning. - Cleaned up the setup page by removing unnecessary line breaks for improved readability.
1 parent 17accee commit 097ee75

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

apps/mcp/src/mcp-handler.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { createMcpHandler } from "@vercel/mcp-adapter";
33
import { z } from "zod";
44

55
import withPostHog from "@/analytics";
6+
import packageJson from "../package.json";
67

78
function getBackendApiBaseUrl(): string {
89
return (
@@ -177,7 +178,7 @@ Tool: ask_stack_auth
177178
{
178179
serverInfo: {
179180
name: "stack-auth-mcp",
180-
version: "0.1.0",
181+
version: packageJson.version,
181182
},
182183
},
183184
{

apps/mcp/src/setup-page.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,7 @@ Add the following JSON to your Gemini CLI configuration file (\`~/.gemini/settin
249249
}
250250
}
251251
\`\`\`
252-
</details>
253-
254-
by [![Hypr MCP](https://hyprmcp.com/hyprmcp_20px.svg)](https://hyprmcp.com/)`;
252+
</details>`;
255253
}
256254

257255
function renderTabs(tabs: SetupTab[]): string {

0 commit comments

Comments
 (0)