Repository navigation
Finish MCP (#22): refusals name the AI setting, help topic, SDK client test - #28
Open
vanatteveldt wants to merge 4 commits into
Open
vanatteveldt wants to merge 4 commits into
vanatteveldt wants to merge 4 commits into
Conversation
…such Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… consent - New help topic ai-assistant.md: connecting, the study's AI policy, things to ask, deploying, ending access (removing the connector doesn't revoke the key), what goes to the AI provider - Help buttons to it on the API keys section, the AI policy card and the consent page (MCP); design-privacy and researcher-api point to it - MCP server instructions send assistants to annotinder://help/ai-assistant for questions about their access; test checks the resource is listed Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The other MCP tests write JSON-RPC by hand. This one connects the SDK's Client and Streamable HTTP transport to the app (handshake, protocol version), lists tools, calls one, reads a resource, gets an AI policy refusal as a tool error, and fails to connect with an expired key (401 invalid_token): so an SDK update or a transport change that breaks real clients shows in the tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…json) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Four commits from
claude/mcp-version-2that we forgot to push before #23 was merged. They finish #22.fc1d3eae): a tool refused by a study's AI policy now says which setting would allow it ("AI can also deploy and pause", "AI can read answers", …) and where an admin changes it; a study on "No AI" says so. Before, the message listed scope names and Claude guessed at causes (archived, deleted). Found in the connector test of 3 Dec.e425dc66): connecting (including the new confirmation step), the AI policy per study, things to ask, deploying, ending access (removing the connector doesn't revoke the key), what goes to the AI provider. Linked from the keys section, the AI policy card and the consent page;researcher-api.mdanddesign-privacy.mdpoint to it; the MCP server instructions send assistants toannotinder://help/ai-assistantfor questions about their access.9833ba63,080a5651): the other MCP tests write JSON-RPC by hand; this one connects the SDK'sClientand Streamable HTTP transport (handshake, protocol version), lists tools, calls one, reads a resource, gets a policy refusal as a tool error, and fails with an expired key. So an SDK update or transport change that breaks real clients shows in the tests.Rebased on this branch after #23 (conflicts in
auth.ts,ApiKeysSection.tsx,ConnectPage.tsxandresearcher-api.mdresolved onto the new components). Tested with Claude's connector on the test instance; see the closing comment on #22.While doing this we ran into three test problems, none in this PR: a timezone bug in
migrations.test.ts, a flakyrateLimit.test.tson CI, and CLAUDE.md's server check skippingtsconfig.test.json. See #27.🤖 Generated with Claude Code