Connect an agent to DYNIK
Two ways in. If your client supports MCP authorization, add the URL and approve it in DYNIK. Otherwise create a scoped key and paste one line of configuration. Either way, then ask your agent to confirm which account it is on.
Connect with OAuth
Add DYNIK to the client. It opens DYNIK in your browser: sign in, check which app is asking, where it returns and what it may do, untick anything it does not need, and approve. The app then appears under Settings → Agents with its recent activity, and Disconnect ends its access at once.
Claude Code
claude mcp add --transport http --scope user dynik https://api.dynik.com/api/v1/mcp
claude mcp login dynikClaude Code opens DYNIK in your browser (or, with --no-browser, prints the link). You can also run /mcp inside Claude Code and choose Authenticate. It renews its access on its own.
Codex CLI
codex mcp add dynik --url https://api.dynik.com/api/v1/mcp
# Codex detects OAuth and starts the login. Later, to sign in again:
codex mcp login dynikCodex prints the link if it cannot open a browser. Codex asks before tools not marked read-only.
Any client that supports MCP authorization
{
"mcpServers": {
"dynik": { "type": "http", "url": "https://api.dynik.com/api/v1/mcp" }
}
}Add the URL with no Authorization header. The client finds DYNIK’s authorization server from the 401 and the protected resource metadata, identifies itself with a client metadata document or dynamic registration, and opens DYNIK for you to approve. The details are under Authorization below.
Or use a key
For clients that take a configured Authorization header instead, and for scripts and CI.
1. Create a key
In DYNIK, open Settings → Agents (job seekers) or Employer Settings → Security (employers) and choose Create key. Tick only what the agent needs: a key that can only read cannot change anything, whatever it is asked to do. The secret is shown once and stored only as a fingerprint, and active keys can be rotated in place with Rotate.
Open DYNIK settings2. Configure your client
Claude Code
# Read the key without echoing it or storing it in shell history.
printf 'DYNIK key: ' >&2
IFS= read -r -s DYNIK_MCP_KEY
printf '\n' >&2
export DYNIK_MCP_KEY
claude mcp add-json --scope user dynik \
'{"type":"http","url":"https://api.dynik.com/api/v1/mcp","headers":{"Authorization":"Bearer ${DYNIK_MCP_KEY}"}}'Then run /mcp inside Claude Code. The configuration stores an environment-variable reference, so set DYNIK_MCP_KEY again when you start a new terminal session.
Codex CLI
In a terminal:
# In Bash or zsh: this prompt neither echoes nor records the key in history.
printf 'DYNIK key: ' >&2
IFS= read -r -s DYNIK_MCP_KEY
printf '\n' >&2
export DYNIK_MCP_KEYThen add this separately to ~/.codex/config.toml:
# ~/.codex/config.toml
[shell_environment_policy]
# The MCP transport can still read this variable; Codex shell commands cannot.
exclude = ["DYNIK_MCP_KEY"]
[mcp_servers.dynik]
url = "https://api.dynik.com/api/v1/mcp"
bearer_token_env_var = "DYNIK_MCP_KEY"
default_tools_approval_mode = "writes"Start or restart Codex from that terminal, then run codex mcp list to confirm. Set DYNIK_MCP_KEY securely whenever you start Codex; it is never stored in config.toml or passed to Codex shell commands. Codex asks before tools not marked read-only.
Cursor
// ~/.cursor/mcp.json
{
"mcpServers": {
"dynik": {
"url": "https://api.dynik.com/api/v1/mcp",
"headers": { "Authorization": "Bearer ${env:DYNIK_MCP_KEY}" }
}
}
}Export DYNIK_MCP_KEY before starting Cursor. Cursor CLI reads this same file; run cursor-agent mcp enable dynik, then cursor-agent mcp list-tools dynik to check discovery.
GitHub Copilot CLI
// ~/.copilot/mcp-config.json
{
"mcpServers": {
"dynik": {
"type": "http",
"url": "https://api.dynik.com/api/v1/mcp",
"headers": { "Authorization": "Bearer ${DYNIK_MCP_KEY}" },
"tools": ["*"]
}
}
}Export DYNIK_MCP_KEY before starting Copilot CLI, then run copilot mcp get dynik. Copilot CLI expands the environment variable in the header.
Grok CLI, Grok Build and Grokbot
grok mcp add --transport http --scope user dynik https://api.dynik.com/api/v1/mcp \
--header 'Authorization: Bearer ${DYNIK_MCP_KEY}'
grok mcp doctor dynik --jsonExport DYNIK_MCP_KEY before starting Grok CLI, Grok Build or a Grokbot MCP runner. For xAI API remote MCP tool definitions, pass server_url "${ENDPOINT}" and your Bearer key from secret storage.
Google Antigravity and Antigravity CLI (agy)
# Read the key silently, register in ~/.gemini/config/mcp_config.json, and restrict file permissions.
printf 'DYNIK key: ' >&2
IFS= read -r -s DYNIK_MCP_KEY
printf '\n' >&2
agy mcp add -t http dynik https://api.dynik.com/api/v1/mcp -H "Authorization: Bearer $DYNIK_MCP_KEY"
chmod 600 ~/.gemini/config/mcp_config.json
unset DYNIK_MCP_KEYAntigravity IDE and agy read ~/.gemini/config/mcp_config.json (serverUrl + headers) and do not expand environment variables inside that JSON file, so restrict mcp_config.json to mode 600 and rotate the key from Settings when done.
Clawbot (OpenClaw)
// ~/.openclaw/openclaw.json
{
"mcpServers": {
"dynik": {
"url": "https://api.dynik.com/api/v1/mcp",
"headers": { "Authorization": "Bearer ${DYNIK_MCP_KEY}" }
}
}
}Clawbot / OpenClaw agents can connect over Streamable HTTP MCP using mcpServers or invoke dynik-cli.py and /api/v1/agent/* REST endpoints directly from skills.
Any other MCP client
{
"mcpServers": {
"dynik": {
"type": "http",
"url": "https://api.dynik.com/api/v1/mcp",
"headers": { "Authorization": "Bearer ${DYNIK_MCP_KEY}" }
}
}
}Use the Streamable HTTP transport and an Authorization bearer header sourced from an environment variable or secret store.
3. Check it works
Ask the agent: “Use the dynik tools to tell me which account I am on and what you are allowed to do.” It should call get_profile and read back your email and the scopes it holds. If it cannot, the key or connection is wrong, revoked or expired, and the server answers 401 and says so.
Or check by hand after setting DYNIK_MCP_KEYin your shell:
curl -s https://api.dynik.com/api/v1/mcp \
-H "Authorization: Bearer $DYNIK_MCP_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "MCP-Protocol-Version: 2026-07-28" \
-H "Mcp-Method: server/discover" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "server/discover",
"params": {
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientInfo": {"name": "manual-probe", "version": "1.0"},
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}'Scopes
A key or an approved app holds exactly the scopes you ticked, and a tool it cannot use is not even listed to the agent, so it never plans around a capability it does not have. Employer scopes require an employer account; if your account loses that role, existing keys and connections lose those scopes on the very next call.
| profile:read | Read your name, email, role, plan allowances and recent account events. |
| jobs:read | Search the catalogue and read jobs, matches and saved jobs. |
| jobs:write | Save and unsave jobs on your account. Requires jobs:read. |
| resumes:read | Read your uploaded resumes and their analysis. |
| resumes:write | Upload a resume file to your account, and delete one from it. Requires resumes:read. |
| applications:read | Read the applications you have submitted. |
| applications:write | Submit, update and withdraw applications on your behalf. Requires applications:read. |
| cover_letters:read | Read the cover letters saved on your account. |
| cover_letters:write | Write and delete cover letters on your account (generating uses your plan's monthly AI allowance). Requires cover_letters:read and resumes:read. |
| employer:read | Read your employer account, job postings, candidate applications and attached candidate resumes. |
| employer:write | Update your employer account, create, edit, publish, close and delete draft postings, and move candidates. Requires employer:read. |
Job-seeker tools
| search_jobs | Search the catalogue by keyword, location, skills, salary and recency. |
| get_job | Read one job: apply URL, quick-apply and sponsorship flags, screening questions and description_truncated. |
| list_job_matches | Score catalogue jobs against one of your resumes. |
| list_saved_jobs | List the jobs you have saved. |
| save_job | Save a job, optionally with a note. |
| unsave_job | Remove a job from your saved list. |
| list_applications | List your applications, filterable by status and company. |
| get_application | Read one application in full, including pipeline and withdrawal state. |
| create_application | Record or submit an application. Attaching a cover letter also needs cover_letters:read. Requires confirm: true. |
| update_application | Update tracker fields or withdraw an application (withdrawing requires confirm: true; supports expected_status). |
| generate_cover_letter | Write a cover letter for one job. Needs cover_letters:write and resumes:read; spends the plan's monthly AI allowance; requires confirm: true. |
| list_cover_letters | List your cover letters, without their text. |
| get_cover_letter | Read one cover letter in full. |
| delete_cover_letter | Delete a saved cover letter (frees resume references without refunding monthly AI quota). Requires confirm: true. |
| list_resumes | List your uploaded resumes. |
| upload_resume | Upload a PDF, DOCX, RTF or plain-text resume, up to 1 MiB, sent inline. Parsing finishes after the call returns. |
| delete_resume | Delete a resume, its file and its analysis. Requires confirm: true. |
| get_resume_analysis | Read parsed skills, experience, analysis and pipeline_execution_state for one resume. |
| get_profile | Confirm which account and scopes the credential carries, and what is left of this month’s allowances. |
| list_recent_events | Poll recent state transitions across readable resumes, applications and employer candidate applications since a timestamp. |
Employer tools
| get_employer_account | Read your employer profile, plan posting slots and ready_to_publish status. |
| update_employer_account | Update company name, website, description, size, location, industry, job title or department. |
| list_job_postings | List your postings, filterable by status and search text. |
| get_job_posting | Read one posting in full, including qualifications, benefits and screening questions. |
| create_job_posting | Create a posting. Always created as a draft. |
| update_job_posting | Edit a posting, with an optional expected_title concurrency check. |
| publish_job_posting | Make a draft live. Requires confirm: true. |
| close_job_posting | Close a posting. Requires confirm: true. |
| delete_job_posting | Delete a draft posting and release its posting slot. Requires confirm: true. |
| list_candidates | List applicants, filterable by posting, stage and match score. |
| get_candidate | Read one application without mutating its stage, with cover letter, screening answers and has_attached_resume. |
| get_candidate_resume | Read the plain text of the resume attached to a live application and record the view. Never exposes candidate-private analysis. |
| update_candidate_status | Move a candidate, with optional expected_status. Rejection or offer_declined requires confirm: true. |
Resources and prompts
Read-only context URIs served via resources/list, resources/templates/list and resources/read:
dynik://me(profile:read): authenticated account and granted scopes.dynik://catalogue/summary(jobs:read): count of searchable active jobs.dynik://jobs/{job_id}(jobs:read): full catalogue job record.dynik://resumes/{resume_id}(resumes:read): parsed resume analysis andpipeline_execution_state.dynik://applications/{application_id}(applications:read): tracked application record.
Workflow prompts served via prompts/list and prompts/get: find_matching_jobs and screen_candidates.
Programmatic REST API and OpenAPI 3.1
Custom agent frameworks, CI jobs and HTTP clients that prefer REST over JSON-RPC can call https://api.dynik.com/api/v1/agent/* with the exact same Authorization: Bearer agent key or OAuth access token, scopes, confirmation previews and Idempotency-Key header. The complete OpenAPI 3.1.0 specification is published at https://api.dynik.com/api/v1/agent/openapi.json.
# Read OpenAPI 3.1.0 schema (public)
curl -fsS https://api.dynik.com/api/v1/agent/openapi.json | head -c 400
# Authenticated REST calls using the same DYNIK_MCP_KEY
curl -fsS https://api.dynik.com/api/v1/agent/profile \
-H "Authorization: Bearer $DYNIK_MCP_KEY"
curl -fsS "https://api.dynik.com/api/v1/agent/jobs?query=python&work_type=remote&limit=5" \
-H "Authorization: Bearer $DYNIK_MCP_KEY"
curl -fsS "https://api.dynik.com/api/v1/agent/events?limit=10" \
-H "Authorization: Bearer $DYNIK_MCP_KEY"Use DYNIK from a terminal, Python or CI job
The official CLI (dynik-cli.py v1.0.0) is a single Python 3.11+ file with no extra packages. Download it over HTTPS and verify its SHA-256 checksum. To import it in Python as from dynik_cli import DynikClient, copy it to dynik_cli.py first: a module name cannot carry a hyphen, so the download name does not import. Pass credentials via DYNIK_MCP_KEY or --config. Never pass a secret on the command line.
curl -fsS https://www.dynik.com/downloads/dynik-cli.py -o dynik-cli.py
curl -fsS https://www.dynik.com/downloads/dynik-cli.py.sha256 -o dynik-cli.py.sha256
sha256sum -c dynik-cli.py.sha256
# Optional, only needed to import it in Python: a module name cannot carry a hyphen.
cp dynik-cli.py dynik_cli.py
# In CI, inject DYNIK_MCP_KEY from a scoped secret instead.
printf 'DYNIK key: ' >&2
IFS= read -r -s DYNIK_MCP_KEY
printf '\n' >&2
export DYNIK_MCP_KEY
python3 dynik-cli.py discover
python3 dynik-cli.py openapi
python3 dynik-cli.py profile
python3 dynik-cli.py events --limit 10
python3 dynik-cli.py jobs search --query engineer --work-type remote --limit 10
python3 dynik-cli.py jobs get JOB_ID
python3 dynik-cli.py applications list --limit 10
# Upload a resume with an idempotency key and wait for Step Functions parsing to finish.
python3 dynik-cli.py resume upload --file ./jane-doe.pdf --operation-key "$(uuidgen)"
python3 dynik-cli.py resume wait RESUME_ID --max-wait 120
python3 dynik-cli.py resume delete RESUME_ID --confirmFor any tool, inspect tools for the input schema, or run call TOOL_NAME --arguments @request.json (or --arguments - from stdin). Output is structured JSON on stdout; diagnostics go to stderr (suppress with --quiet, or inspect timing with --verbose / --debug). Exit codes: 0 success, 2 invalid local input, 3 authentication, 4 product or tool refusal, and 5 transport, rate-limit, or server failure.
resume upload accepts files up to 1 MiB inline (larger files up to 10 MB upload in the web app). Parsing runs asynchronously after the upload returns. Poll get_resume_analysis (or resume wait) and read pipeline_execution_state as the processing authority: RUNNING means work is active; SUCCEEDED, FAILED, TIMED_OUT and ABORTED are terminal; NOT_APPLICABLE and HISTORY_EXPIRED also mean no pipeline needs the file. Never delete or replace a resume while pipeline_execution_state is RUNNING, NO_EXECUTION or UNKNOWN.
Confirm high-impact writes
Submitting an application (create_application), withdrawing an application (update_application with status: "withdrawn"), writing or deleting a cover letter (generate_cover_letter, delete_cover_letter), deleting a resume (delete_resume), publishing, closing or deleting a job posting (publish_job_posting, close_job_posting, delete_job_posting), and rejecting a candidate or recording a declined offer (update_candidate_status) require confirmation. Without it, the tool returns CONFIRMATION_REQUIRED describing the effect. After showing that preview to the person, call again with confirm: true to go ahead. Treat the refusal as a preview, not an error to route around.
New job postings are always created as drafts, so an agent cannot make a role live by accident. Writing a cover letter is gated for a different reason: it spends one of the plan’s monthly AI generations, which do not refill on request.
Errors
Tool failures come back as MCP tool errors carrying code, message and retryable, so an agent never has to parse prose to decide what to do next.
A JSON-RPC request ID links a call to its response; it does not prevent a duplicate write indefinitely. Identical calls with the same ID and arguments are blocked for 24 hours while the replay cache is available. If a call with idempotentHint: false times out, inspect the current state before deciding whether to call it again. Check list_applications after creating an application, list_cover_letters after writing a cover letter, list_job_postings after creating a posting, get_candidate after moving a candidate, or list_resumes after uploading a resume. Ask the account owner if the result is still unclear.
For a write you may need to retry, pass operation_key: a unique string you choose (a UUID works well). The five non-idempotent tools (create_application, create_job_posting, update_candidate_status, upload_resume and generate_cover_letter) run at most once per key: a later call with the same key and identical arguments returns the remembered outcome (replayed: true on success) instead of running again, and reusing the key with different arguments is a CONFLICT. A call whose outcome is not yet known answers OPERATION_IN_PROGRESS, retryable while the original may still be running, not retryable once it is stale. Keys are remembered for 7 days from last use. A refusal (validation, confirmation, quota, not-found) is not remembered, so the confirming retry with the same key still runs.
| VALIDATION_FAILED | An argument is wrong. The field is named. Not retryable as sent. |
| NOT_FOUND | No such record is visible to this account. |
| INSUFFICIENT_SCOPE | The key lacks a scope. The required ones are listed. |
| FORBIDDEN | The account may not do this at all. It is not a scope or a limit. Not retryable. |
| CONFIRMATION_REQUIRED | A high-impact call needs confirm: true. |
| QUOTA_EXCEEDED | A plan limit was reached. |
| RATE_LIMITED | Too many calls. Carries retry_after_seconds. |
| CONFLICT | The record changed, or is in the wrong state for this operation. |
| DUPLICATE_REQUEST | An identical non-idempotent call was received within 24 hours. Inspect state. |
| OPERATION_IN_PROGRESS | An identical call with the same operation key is still running (retryable), or never recorded an outcome (inspect state). |
| DEPENDENCY_UNAVAILABLE | A dependency failed. Inspect state if retryable is false. |
| INTERNAL_ERROR | A server error. Inspect state if retryable is false. |
| REQUEST_FAILED | A failure with no more specific code. Read the message; do not retry blindly. |
Rate limits
120 calls per minute per key, and 300 per minute from one IP address across all keys. Exceeding either returns HTTP 429 with a Retry-After header and a RATE_LIMITED body carrying retry_after_seconds. Requests are refused, never silently dropped.
Protocol details
- Transport: Streamable HTTP, POST only. The endpoint is stateless: no session id is minted, and GET and DELETE answer 405. Send one message per POST with an id for every request. Legacy clients may batch up to ten messages.
- Protocol versions:
2026-07-28(current), and2025-11-25,2025-06-18and2025-03-26for clients that still open with aninitializehandshake. - Authentication:
Authorization: Beareron every request, carrying either a scoped key from Settings or an OAuth access token from DYNIK’s authorization server (below). Never in a query string, and cookies are ignored. - Discovery:
server/discover, plus RFC 9728 metadata at/.well-known/oauth-protected-resource/api/v1/mcp(and at the origin root), which names the authorization server.
Authorization
DYNIK implements the MCP 2026-07-28 authorization profile for https://api.dynik.com/api/v1/mcp.
- Authorization server: issuer
https://api.dynik.com, RFC 8414 metadata athttps://api.dynik.com/.well-known/oauth-authorization-server. Authorization code grant only, with PKCES256required, andissin every authorization response (RFC 9207). - Clients: public clients only (no secrets). Identify with a Client ID Metadata Document (an https
client_id) or register with RFC 7591. Redirect URIs must be https, or http tolocalhost,127.0.0.1or[::1]on any port, and must match what the client registered. - Resource: send
resource=https://api.dynik.com/api/v1/mcp(RFC 8707). Tokens are bound to it and refused anywhere else; a request naming another resource is refused. - Scopes: request the ones you need. With no scope the request is read-only. A write scope must come with the read it depends on (see Scopes). The person can untick any of them before approving.
- Tokens: access tokens last 1 hour. Refresh tokens rotate on every use and lapse after 30 days unused, and a connection ends after 90 days, when the person approves the app again. Presenting a spent refresh token ends the connection.
- Challenges: no or bad token gets
401withresource_metadata. A tool outside the token’s scopes gets403witherror="insufficient_scope"and the scopes to ask for when the client authorizes again. - Revocation: the RFC 7009 endpoint, Disconnect in Settings, a password change or reset, and signing out of all sessions all end a connection at once.
If something goes wrong
- 401 on every call. The key or connection is wrong, revoked or expired. Check Settings → Agents (or Employer Settings → Security); the status says which. An OAuth client signs in again with its login command.
- A tool you expected is missing. The key or connection lacks its scope. Scopes cannot be added to an existing key: create a new one (or rotate once a key has the scopes you want) and revoke the old. For an OAuth app, connect it again and approve the scope.
- Catalogue counts differ from the web app. Job providers whose terms prohibit automated agent distribution are excluded on agent surfaces, including counts, search results and application listing snapshots.
- 400 with
-32022. Your client asked for a protocol version we do not speak; the error lists the ones we do. - 403 with “Origin not allowed”. Something is sending a browser
Originheader. MCP clients send none; this is the DNS-rebinding guard doing its job.
Ready?
Add DYNIK to a client that supports MCP authorization and approve it, or create a key in your DYNIK settings and paste one line into your agent.