Skip to content
Closed
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
3 changes: 2 additions & 1 deletion services/mcp/src/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ export {
} from './oauth-constants'

import { resolveAuthorizationServerUrl } from './oauth-constants'
import packageJson from '../../package.json'

export const getAuthorizationServerUrl = (): string => resolveAuthorizationServerUrl()

export const MCP_SERVER_NAME = 'PostHog'
export const MCP_SERVER_VERSION = '1.0.0'
export const MCP_SERVER_VERSION = packageJson.version

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Version bumps will fail tests When services/mcp/package.json is bumped, this value will change, but two assertions in request-context.test.ts still require '1.0.0'. The intended version update will fail the Hono tests. Derive those expectations from the package version too.

Prompt To Fix With AI
This is a comment left during a code review.
Path: services/mcp/src/lib/constants.ts
Line: 24

Comment:
**Version bumps will fail tests** When `services/mcp/package.json` is bumped, this value will change, but two assertions in `request-context.test.ts` still require `'1.0.0'`. The intended version update will fail the Hono tests. Derive those expectations from the package version too.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

export const MCP_ANALYTICS_SOURCE = 'posthog_mcp_analytics'

// Claude Code truncates a server's `instructions` payload at this many characters — silently,
Expand Down
Loading