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

rijksmuseum-mcp/dist/index.js is missing #2

Open
kintopp opened this issue Jan 4, 2025 · 3 comments
Open

rijksmuseum-mcp/dist/index.js is missing #2

kintopp opened this issue Jan 4, 2025 · 3 comments

Comments

@kintopp
Copy link

kintopp commented Jan 4, 2025

I get this error following npm start

[email protected] start
node dist/index.js

node:internal/modules/cjs/loader:1413
throw err;
^

Error: Cannot find module '/Users/abosse/Documents/GitHub/rijksmuseum-mcp/dist/index.js'
at Function._resolveFilename (node:internal/modules/cjs/loader:1410:15)
at defaultResolveImpl (node:internal/modules/cjs/loader:1061:19)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1066:22)
at Function._load (node:internal/modules/cjs/loader:1215:37)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:234:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:151:5)
at node:internal/main/run_main_module:33:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

Node.js v23.5.0

@r-huijts
Copy link
Owner

r-huijts commented Jan 5, 2025

I've fixed this issue in the repository. Here's how to get the server running properly:

  1. Clone the repository and install dependencies:
npm install
  1. Build the typescript files:
npm run build
  1. Make sure your Claude Desktop configuration points to the correct path:
  • The args in your Claude config should point to the index.js file in the build directory
  • Example: "args": ["/your/path/to/rijksmuseum-mcp/build/index.js"]

The key change was ensuring consistency between the TypeScript output directory (build/) and the Claude Desktop configuration. You don't need to run npm start - Claude Desktop will handle running the server when properly configured.

Let me know if you need any help with the configuration!

@kintopp
Copy link
Author

kintopp commented Jan 6, 2025

Works perfectly now, thank you. I guess I will need to upgrade to Claude Pro :) There's currently no way to get MCP to work outside the Claude Desktop app, is that right? e.g. via LM Studio or some other front-end that uses the Anthropic API.

@r-huijts
Copy link
Owner

r-huijts commented Jan 7, 2025

You could write your own client. But for this MCP server there's only the option to use it with Claude Desktop at the moment.

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