Zed, its agent and remote context servers
Zed is a fast, open-source code editor with a built-in AI agent in its Agent Panel. Zed calls MCP servers context servers, and it supports both local servers that it launches as processes and remote servers that it reaches over a URL. Remote servers are configured in the settings UI or directly in settings.json under the context_servers key.
Dizo is a remote server at https://mcp.dizo.ai/mcp, so there is nothing to install or keep running. Once Zed connects, the agent can search for people and companies, size a market with free counts, find and verify work emails, look up phones with line type and Do Not Call flags, and turn a domain, email or phone number into a full record. Each tool's description includes its credit cost, which the agent reads when deciding what to call.
Why a data server belongs in your editor
Engineers building go-to-market software spend a surprising amount of time switching between the editor and a data tool to check what a real record looks like. With Dizo in Zed, the agent can fetch the record itself while it writes the code that consumes it. A type generated from a real company profile, with its headcount, revenue band, industry, HQ, funding and technologies, is far less likely to be wrong than one guessed from memory.
The same applies to error handling. Dizo lookups that find nothing return 404 not_found and cost nothing, searches charge only for results returned, and errors include a stable error.code and a plain-English fix. When the agent can trigger those cases against the live server, it writes code that handles them, rather than treating every non-200 response the same way.
Things to ask the Zed agent
These requests pair a data call with an editing task. Prices come from the MCP page and are charged only under the rules listed there.
- "Call dizo_whoami and tell me what this connection can do." (free)
- "Look up ledgerline.io with the domain-to-company tool and write a Rust struct for the response." (1 credit if found)
- "Count US healthtech companies with 50 to 500 employees and add the filter values as constants in filters.ts." (free)
- "Find 25 product leaders at Canadian SaaS companies and write them to fixtures/people.json." (1 credit for 25 results)
- "Resolve the email in this support ticket to a person and company, then draft a routing rule for it." (2 credits if found)
- "Quote the cost of enriching every domain in data/accounts.csv, but do not run it." (free quote)
Adding Dizo through the settings UI
Open Settings → AI → MCP Servers. You can also run the agent: open settings action and pick MCP Servers. Click Add Server in the page header and choose Add Remote Server. Name the server and enter https://mcp.dizo.ai/mcp as its URL. Zed writes the result into settings.json under context_servers.
Then decide how to authenticate. If you leave out an Authorization header, Zed's docs say it prompts you to authenticate through the standard MCP OAuth flow. Dizo supports OAuth 2.1 for MCP, so you are sent to dizo.ai to sign in and no key is stored in your settings. If you add a header instead, Zed sends that key on every request.
Zed shows an indicator dot next to each server in the MCP Servers page. Green, with the tooltip "Server is active", means the connection is up and the tools are loaded.
Editing settings.json by hand
If you prefer to work in the file, add a dizo object under context_servers with a url. For OAuth, that is the whole entry. For a key, add a headers object with Authorization set to Bearer and your key. Both forms appear in the code blocks on this page.
Choose between them on purpose. OAuth is the quickest route and keeps secrets out of your settings, and Dizo gives OAuth connections a safe default: data:read only and a 500-credit limit per call, with billing writes never exposed. A key is better when you want specific caps or a specific environment, for example a dz_test_ key that returns synthetic data and never spends credits while you build a feature, and a separate capped live key when you need real records. Sign up to get a live key.
Controlling what the agent spends
An editor agent will happily run several tool calls in a row, so set limits where they cannot be argued with. For key-based setups, create a key for Zed with max_credits_per_request, daily and monthly caps and an allowed_endpoints list, using the fields in the keys reference. A key limited to search, domain lookups and email find cannot run 10-credit phone lookups at all.
Teach the agent two habits. Call dizo_whoami at the start of a session to learn its scopes and remaining budget, which mirrors the me endpoint. Call dizo_quote before any job that may exceed about 100 credits, which returns the exact cost and spends nothing. At account level, a monthly spend cap stops calls with 402 monthly_cap_reached, alerts fire at 50%, 80% and 100%, and auto-refill never pushes past the cap.
Worked example: a lead-routing fix
A lead from a mid-sized logistics company was routed to the wrong team. You open the routing module in Zed and ask the agent why. It looks up the lead's domain with the domain-to-company tool, at 1 credit if found, and compares the returned HQ country and headcount with your rules. The mismatch is a headcount threshold that treats 500 as small rather than mid-market.
You ask it to add a regression test using 10 real domains around the threshold. That is 10 more lookups, at most 10 credits. It writes the test, fixes the comparison and runs the suite. The whole session costs at most 11 credits, about $0.28 at the $0.025 rate, and once the responses are recorded, later runs can use a test key at no cost.
What a month of editor use costs
Credits are priced by the size of each purchase: $0.025 for $10 to $499, $0.021 for $500 to $1,999, $0.017 for $2,000 to $9,999, $0.013 for $10,000 to $49,999 and $0.010 for $50,000 and up. A developer using Dizo from Zed will usually buy at the first tier, and the minimum top-up is $10.
Editor usage is small. Suppose that over a month you run 20 company lookups while writing types and tests, three searches of 25 people each for fixtures and 30 email finds, of which 24 are found. That is 20 credits, 3 credits and 24 credits, or 47 credits in total, about $1.18. Counts, quotes and dizo_whoami add nothing. Production enrichment belongs on its own key and budget; the pricing page has the full table.
Troubleshooting
If the dot next to Dizo is not green, check the entry first. The key must be context_servers, not mcpServers, and the JSON must be valid. For OAuth, finish the dizo.ai sign-in in your browser and confirm you finished signing up and confirmed your email. For a key, the header must read Bearer, one space and the key.
If the server is active but calls fail, ask the agent to run dizo_whoami. A key without data:read, or with an allow-list that excludes the endpoint, will be refused. A 402 monthly_cap_reached means stop and raise the cap or wait for the next month. Calls over the per-request maximum are refused, so split the work, or for more than 50 lookups, write code against the batch endpoint. Rate-limit errors include error.retryable and error.retry_after.
Security practices
Zed's settings.json is personal configuration, but people do share dotfiles. If yours is in a public repository, use OAuth so no Dizo secret lives in the file, or keep the key-based entry somewhere you never publish. Revoke any key that has been exposed and create a new one in the console.
Give Zed its own key or its own OAuth connection rather than reusing a production integration key, so usage in the console shows what the editor agent spent. Keep billing:write off; an editor has no reason to top up an account. Dizo hashes keys at rest and supports per-key scopes, as described on the trust page.
Frequently asked questions
Does Zed support remote MCP servers?
Yes. Zed supports remote context servers configured with a url and optional headers, either through Settings, AI, MCP Servers, Add Remote Server, or in settings.json under context_servers.
Do I need an API key to use Dizo in Zed?
No. If you leave out the Authorization header, Zed runs the MCP OAuth flow and you sign in at dizo.ai. Use a key header only when you want specific caps or a test key.
What limits apply to an OAuth connection?
Dizo MCP connections default to data:read only and a 500-credit limit per call, unless you change them in the console. Billing write actions are not exposed.
How do I know the connection works?
Look for a green dot next to Dizo in the MCP Servers settings, with the tooltip "Server is active". Then ask the agent to call dizo_whoami, which is free.
Can I use Dizo in Zed without spending credits?
Yes. Configure the header with a dz_test_ key. Test keys return synthetic data in the live format and never spend credits.
Is Dizo a Zed extension?
No. There is no Dizo extension for Zed. You add it as a remote server using the settings on this page, the same way you would in other MCP clients such as Cursor.
Last reviewed 2026-11-24.