Add stateless MCP server to API#352
Merged
mbklein merged 1 commit intodeploy/stagingfrom Mar 20, 2026
Merged
Conversation
ae4d16e to
bb2524c
Compare
47d33f2 to
203a05a
Compare
kdid
reviewed
Mar 19, 2026
mcp/bin/run.sh
Outdated
| @@ -0,0 +1,6 @@ | |||
| #!/bin/bash | |||
| export HOME="${HOME:-/Users/mbk836}" | |||
Contributor
There was a problem hiding this comment.
@mbklein - I'm confused about your testing instructions. Am I supposed to edit this file first?
Contributor
Author
There was a problem hiding this comment.
Whoops, nice catch. I'll update that.
d7cfb0b to
1f7d7ae
Compare
Use @nulib/clover-mcp for MCP UI resource Add view-search-results tool Combine search and semantic-search tools Add source maps to MCP Add MCP tests Update to use new visibility / auth filtering in DCAPI
bmquinn
approved these changes
Mar 20, 2026
Contributor
bmquinn
left a comment
There was a problem hiding this comment.
Looks great, and I think we should handle any issues that surfaced like the erroring pagination in search results upstream from the MCP server implementation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds an MCP server at
/api/v2/mcp. Testing it is a little tricky but doable on your local machine (not remote dev environment).cd mcp && npm ci.bash_profileproperly initializesmiseorasdfor whatever local package manager you use. (It is not sufficient that.zprofileor.zshrcdoes it, since the MCP server launches underbashand notzsh.)nodejsv24.11.1 installed using the aforementioned package manager.~/Library/Application Support/Claude/claude_desktop_config.json. Create it if it doesn't exist.{ "mcpServers": { "dc-api": { "command": "/path/to/dc-api-v2/mcp/bin/run.sh", "environment": { "SEARCH_MODEL_ID": "PROD_OPENSEARCH_MODEL_ID" } } } }production/infrastructure/indexsecret in AWS.You can now launch Claude and ask about content from Digital Collections. Expand the tool calls to see requests and responses. Go to Settings > Connectors > dc-api > Configure to see a list of tools and permissions.