/rka:mcp-credentialsfrom rka
Walks users through obtaining and persisting API keys for MCP servers (Zotero, Semantic Scholar, SerpAPI, OpenAlex) by editing Claude Desktop/Claude Code config files.
Ships in rka. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are configuring an MCP server's credentials for a Claude Desktop or Claude Code install. Most cross-project MCP servers (Zotero, Semantic Scholar, SerpAPI, OpenAlex) need credentials that the user obtains once and then reuses across every project.
This skill walks you through:
claude_desktop_config.json and/or ~/.claude.json for Claude Code.<file>.bak.<ISO-timestamp> so the user can recover.mcpServers block.walkthroughs/zotero.md — ZOTERO_API_KEY + ZOTERO_LIBRARY_ID + ZOTERO_LIBRARY_TYPE for the zotero-mcp server. Per-user library, scope-restrictable.walkthroughs/semantic-scholar.md — SEMANTIC_SCHOLAR_API_KEY for the rka MCP server's Semantic Scholar search backend (legacy tool rka_search_semantic_scholar, deferred on the v2.7.0+ surface — load via rka_load_tools; the rka_record_literature verb's search_source='semantic_scholar' mode delegates to the same code, so the key applies regardless of surface). Raises the rate limit from 100 req/5min to 1 req/sec.walkthroughs/serpapi.md — SERPAPI_KEY for the rka MCP server's deep-research augmentation. 250 free searches/month.walkthroughs/openalex.md — OPENALEX_MAILTO (just an email, not a secret) for the OpenAlex polite-pool, granting a higher rate limit.catalog.md — registry of every supported service with envvar names, target config blocks, and validation regex. Use when you need a quick lookup.config-ops.md — the read/parse/merge/backup/write pattern for claude_desktop_config.json, including cross-platform paths and atomic-write discipline.When the user asks you to set up one or more credentials, do this:
Ask which service(s) the user wants if not stated. Surface the available walkthroughs so they know what's supported.
"Which credentials would you like to set up? I can walk you through Zotero, Semantic Scholar, SerpAPI, or OpenAlex. You can do one or several."
Load the relevant walkthrough card from walkthroughs/<service>.md. Each card has the same shape:
Walk the user through the steps. Use AskUserQuestion for branching choices (e.g., "personal library vs group library"). When they paste the key in chat, validate it against the regex; if it fails, point at the likely typo (wrong length, wrong charset).
If the walkthrough card has a Sanity check block, run the curl command via Bash to confirm the credential works. Non-200 response → tell the user, suggest the most likely cause (wrong scope, expired, wrong ID), don't proceed to persist.
Use the procedure in config-ops.md:
claude_desktop_config.json or ~/.claude.json for Claude Code — the walkthrough card tells you which.<file>.bak.<ISO-timestamp>.✓ Done. Credentials persisted to <path>.
Backup saved at <path>.bak.<timestamp>.
To activate, **fully quit and reopen Claude Desktop**:
- macOS: Cmd+Q, then reopen from Applications
- Windows: right-click tray icon → Quit, then reopen from Start Menu
- Linux: close the app entirely, then reopen
Once Claude Desktop is back up, ask me to "list Zotero items" (or
"search Semantic Scholar for X") to confirm the new MCP server
is active.
For Claude Code: reload the VS Code window (Cmd+Shift+P → "Developer: Reload Window") instead of full quit.
echo "$KEY" | curl --data-binary @-) or a heredoc to avoid putting the key on the command line.claude_desktop_config.json if it currently fails to parse. Show the user the parse error, ask them to fix it manually first. A botched JSON would prevent Claude Desktop from starting.If the user asks for a service not in catalog.md, say so clearly and offer two paths:
walkthroughs/<service>.md following the existing template.Don't fabricate URLs or env-var names for unfamiliar services — verify against the service's docs first.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub rka-project/rka-core --plugin rka4 skills in this plugin
/rka-brainStrategic AI for RKA-managed research projects. Interprets evidence, maintains the research graph, makes decisions, and directs the Executor. Load on session start, before presenting decisions to the PI, or when reasoning about provenance./rka-executorImplementation AI for RKA-managed research projects. Executes missions, runs experiments, modifies code, collects evidence, and reports with provenance. Load on mission pickup or when producing a Backbrief / report./rka-piPI quick reference for RKA-managed research projects. Resolves checkpoints, sets direction, preserves original intent. Load when supervising RKA work, reviewing checkpoints, or recording PI guidance with verbatim attribution.Other plugins' skills for the same job