Skip to content

fix: remove sample capability and credential reads for directory review - #1

Merged
kpal81xd merged 1 commit into
mainfrom
fix/directory-credential-holds
Oct 12, 2026
Merged

kpal81xd merged 1 commit into
mainfrom
fix/directory-credential-holds

Conversation

@kpal81xd

Copy link
Copy Markdown
Owner

Clears the directory validator's "Uses a credential from the user's machine" hold.

  • Removes the sample capability (pages asking Claude via the Anthropic API), which read ANTHROPIC_API_KEY / ANTHROPIC_AUTH_TOKEN. Comments and the session monitor are unaffected.
  • The mcp capability no longer reads ~/.claude.json; servers come from the project's .mcp.json or ~/.spatial-artifacts/mcp.json.
  • Cross-origin tests use evil.invalid instead of evil.com.

Smoke test

  1. Publish a page that declares capabilities: { sample: {} } → publish is refused with unknown capability "sample".
  2. Publish a page with comments, leave a comment and send it to Claude → the session's monitor picks it up as before.
  3. Publish a page with mcp naming a server from the project's .mcp.json → the consent dialog lists it and callTool works.
  4. Open the viewer's permissions shield on a page using files → no "Ask Claude" entry appears.

- drop the sample capability, which read ANTHROPIC_API_KEY / ANTHROPIC_AUTH_TOKEN
- stop reading ~/.claude.json for the mcp capability; servers come from the project's .mcp.json or ~/.spatial-artifacts/mcp.json
- use a reserved .invalid host in cross-origin tests
@kpal81xd
kpal81xd merged commit 79370c2 into main Oct 12, 2026
3 checks passed
@kpal81xd
kpal81xd deleted the fix/directory-credential-holds branch October 12, 2026 19:12
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

Successfully merging this pull request may close these issues.

1 participant