AI assistants
Use the Qelka MCP server in Zed
Add the Qelka MCP server to Zed as a remote context server with your API key in the Authorization header, then verify emails and phone numbers from the Agent Panel.
Updated 2026-11-26
This guide connects the Zed agent to the Qelka MCP server, so it can verify the email addresses in a file you have open, rewrite the phone numbers of a fixture in E.164, or check the IPs in a log. There is no Qelka extension for Zed: you add https://mcp.qelka.com/mcp as a remote context server, Zed's name for an MCP server, and authenticate with your API key.
The server speaks Streamable HTTP, is stateless, and accepts one kind of authentication: an Authorization: Bearer header with your key. It offers no OAuth.
What you need
- A current version of Zed with the Agent Panel.
- A Qelka API key. Start with a
sk_test_key: tools return simulated, fixed answers and never spend credits. See Test mode. - A restricted key, because Zed stores it in your settings file in plain text: tick the endpoints the agent should call, plus
accountfor the freeget_accounttool. See restricted keys.
Steps
1. Add the remote server
Open Settings, then AI, then MCP Servers, or run the agent: open settings action and select MCP Servers. Click Add Server, then Add Remote Server, and enter the URL and the header. Zed writes the result to your settings file, which you can open with the zed: open settings file action:
{
"context_servers": {
"qelka": {
"url": "https://mcp.qelka.com/mcp",
"headers": {
"Authorization": "Bearer sk_test_your_key"
}
}
}
}
Replace sk_test_your_key with your key. The header is what stops Zed from starting an OAuth flow: without it, Zed tries to sign you in, which this server does not support.
If your version of Zed has no Add Remote Server option, update it. Clients that only start local servers can use the mcp-remote bridge described in the MCP server docs.
2. Check that the server runs
Back in Settings, AI, MCP Servers, look at the dot next to qelka. Green, with the tooltip "Server is active", means Zed connected and listed the tools. Another color means something failed: hover it to read why.
3. Check the connection from the Agent Panel
Open the Agent Panel and ask:
Use the qelka tools to tell me my Qelka credit balance, and whether this key is in test or live mode.
The agent calls get_account, which is free, and answers with your plan, balance and key.mode, test or live. Zed's documentation notes that naming the server in the prompt helps the model pick its tools.
4. Set tool permissions
By default, agent.tool_permissions.default is "confirm": Zed asks before any tool action, MCP tools included. You can set a default per tool with the key mcp:<server>:<tool>. This lets the free get_account run without a prompt and keeps the paid tools behind a confirmation:
{
"agent": {
"tool_permissions": {
"tools": {
"mcp:qelka:get_account": { "default": "allow" },
"mcp:qelka:verify_email": { "default": "confirm" },
"mcp:qelka:validate_phone": { "default": "confirm" }
}
}
}
}
For MCP tools, the per-tool default is the setting that matters: Zed matches patterns against an empty string for them, so always_allow patterns rarely apply. Zed versions before 0.224.0 used the agent.always_allow_tool_actions setting instead.
5. Make a validation profile (optional)
To make sure the agent uses the Qelka tools and nothing else from MCP, create a profile that turns off other context servers and enables only the tools you want:
{
"agent": {
"profiles": {
"validation": {
"name": "Validation",
"tools": {
"read_file": true,
"grep": true,
"find_path": true,
"edit_file": false,
"terminal": false
},
"enable_all_context_servers": false,
"context_servers": {
"qelka": {
"tools": {
"verify_email": true,
"validate_phone": true,
"lookup_ip": true,
"get_account": true
}
}
}
}
}
}
}
This profile can read files but not edit them, which suits a review of a CSV or a log. Select it as the profile in the Agent Panel before you start.
What each call costs
Each tool call is one API request made with your key: same price, cache and rate limits as a REST call.
| Tool | What it does | Credits |
|---|---|---|
verify_email |
Checks that an address exists, without sending mail | 1 |
validate_phone |
Validates a number and returns E.164, country, line type | 1 at basic, 3 at live |
lookup_ip |
Location, network type, VPN, Tor and data center flags | 1 |
get_account |
Plan, balance, limits and key mode | 0 |
The server tells agents to prefer the fast email mode and the basic phone level. Ask for "check that the mailbox exists" or "who is the current carrier" when you need mode: "full" or level: "live". All 12 tools are listed in the MCP server docs.
Example prompts
Read seed/users.csv and verify the email column. List the undeliverable addresses and any typo suggestions.
Put every phone number in test/fixtures/contacts.json in E.164. Numbers without a + are British.
Look up the IPs in logs/login.log and tell me which ones are flagged as VPN, Tor or data center.
Before a long list, ask the agent to call get_account and compare the balance with the number of rows. For thousands of values, a bulk file check is a better fit.
Handle errors and rate limits
When the API refuses a call, the tool result is marked as an error, and Zed shows the server's message in the agent's response: the API's message, the error type and the HTTP status. Refused calls are not billed.
| What you see | Cause | Fix |
|---|---|---|
| Zed asks you to authenticate the server | No Authorization header in the entry |
Add the header with Bearer and your key |
The dot is not green and mentions a 401 |
The header value is not Bearer followed by an sk_live_ or sk_test_ key |
Check the word Bearer, the space after it and the key |
Tools appear but every call fails with invalid_api_key |
The key is well formed but revoked or mistyped | Create a new key and update the header |
A call fails with forbidden |
The key is restricted and the tool's endpoint is not in its list | Use a key that allows it, with account for get_account |
A call fails with insufficient_credits |
The balance cannot cover the call | Ask for get_account, then add credits |
A call fails with rate_limited |
A key allows 200 requests per 10 seconds | Wait the seconds given in the message, or ask for fewer calls at a time |
Revoking a key in the dashboard cuts off Zed within 60 seconds. See Errors and Rate limits.
Related
Frequently asked questions
Why does Zed ask me to sign in to the server?
Authorization header in its configuration. The Qelka server does not offer OAuth, so the flow cannot finish. Add the header with Bearer and your key, and Zed connects without a sign-in.Is my API key safe in Zed's settings file?
Do external agents in Zed get the server too?
More in AI assistants
All integrationsPut this check in your product
Get an API key in under a minute. 100 free credits every month, no card required.
- 100 free credits a month
- No card
- Test keys spend nothing
- Cancel any time