Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build with bun doesn't return version #1

Closed
luxus opened this issue Mar 5, 2025 · 3 comments
Closed

build with bun doesn't return version #1

luxus opened this issue Mar 5, 2025 · 3 comments

Comments

@luxus
Copy link

luxus commented Mar 5, 2025

when i build the package with bun (i cannot install -g packages with npm under nixos)

 bun install -g mcp-hub@latest
bun add v1.2.4 (fd9a5ea6)

installed [email protected] with binaries:
 - mcp-hub

[877.00ms] done
❯ mcp-hub
{"type":"error","code":"CLI_ARGS_ERROR","message":"Failed to parse command line arguments","data":{"message":"Missing required arguments: port, config","help":"Use --help to see usage information"},"timestamp":"2025-03-05T22:47:17.068Z"}
❯ mcp-hub --version
unknown
❯ mcp-hub --port 3000 --config ~/mcpservers.json
{"type":"info","message":"Initializing MCP Hub","data":{},"timestamp":"2025-03-05T22:33:05.567Z"}
{"type":"info","message":"Config loaded successfully from /Users/luxus/mcpservers.json","data":{"path":"/Users/luxus/mcpservers.json","serverCount":2},"timestamp":"2025-03-05T22:33:05.568Z"}
{"type":"info","message":"Starting 2 configured MCP servers in parallel","data":{"count":2},"timestamp":"2025-03-05T22:33:05.568Z"}
{"type":"info","message":"Initializing MCP server 'fetch'","data":{"server":"fetch"},"timestamp":"2025-03-05T22:33:05.568Z"}
{"type":"info","message":"Initializing MCP server 'todoist'","data":{"server":"todoist"},"timestamp":"2025-03-05T22:33:05.571Z"}
{"type":"debug","message":"Server 'todoist' does not support capability 'resources/templates/list'","data":{"server":"todoist","error":"MCP error -32601: Method not found"},"timestamp":"2025-03-05T22:33:05.745Z"}
{"type":"debug","message":"Server 'todoist' does not support capability 'resources/list'","data":{"server":"todoist","error":"MCP error -32601: Method not found"},"timestamp":"2025-03-05T22:33:05.745Z"}
{"type":"info","message":"'todoist' MCP server connected","data":{"server":"todoist","tools":5,"resources":0},"timestamp":"2025-03-05T22:33:05.746Z"}
{"type":"debug","message":"Server 'fetch' does not support capability 'resources/templates/list'","data":{"server":"fetch","error":"MCP error -32601: Method not found"},"timestamp":"2025-03-05T22:33:06.077Z"}
{"type":"debug","message":"Server 'fetch' does not support capability 'resources/list'","data":{"server":"fetch","error":"MCP error -32601: Method not found"},"timestamp":"2025-03-05T22:33:06.077Z"}
{"type":"info","message":"'fetch' MCP server connected","data":{"server":"fetch","tools":1,"resources":0},"timestamp":"2025-03-05T22:33:06.077Z"}
{"type":"info","message":"Server initialization completed","data":{"total":2,"successful":2,"failed":0,"disabled":0,"failedServers":[]},"timestamp":"2025-03-05T22:33:06.077Z"}
{"type":"info","message":"Starting HTTP server on port 3000","data":{"port":3000},"timestamp":"2025-03-05T22:33:06.078Z"}
{"type":"info","message":"MCP_HUB_STARTED","data":{"status":"ready","port":3000},"timestamp":"2025-03-05T22:33:06.078Z"}
@ravitemer
Copy link
Owner

The issue is how bun installs global packages. mcp-hub looks for package.json to resolve version currently. In bun the symlinking and installation of global node_modules is little tricky. Will be fixed soon.

Thank you.

@luxus
Copy link
Author

luxus commented Mar 6, 2025

yes it works, but as in the commit its hardcoded.. i guess this should stay open :D

@ravitemer
Copy link
Owner

This is now solved with the build step.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants