# Continue + Dizo

> Add Dizo to Continue as a streamable-http MCP server in a YAML block, then use its people, company, email and phone tools in agent mode.

Type: MCP client — server URL `https://mcp.dizo.ai/mcp`. No native app needed.

## Steps
1. Create a capped Dizo key and store it as a Continue secret named `DIZO_API_KEY`.
2. Add a `.continue/mcpServers/dizo.yaml` block to your workspace, or put the `mcpServers` entry in your `config.yaml`.
3. Set `type: streamable-http`, the Dizo `url` and `apiKey: ${{ secrets.DIZO_API_KEY }}`.
4. Switch Continue to **agent mode**; MCP tools are only available there. Ask it to call `dizo_whoami` to confirm.

## Where to go
Add to `config.yaml` under `mcpServers`: `type: streamable-http`, `url: https://mcp.dizo.ai/mcp`.

Open the Continue MCP docs: https://docs.continue.dev/customize/deep-dives/mcp

## .continue/mcpServers/dizo.yaml
```
name: Dizo
version: 0.0.1
schema: v1
mcpServers:
  - name: Dizo
    type: streamable-http
    url: https://mcp.dizo.ai/mcp
    apiKey: ${{ secrets.DIZO_API_KEY }}
```

## config.yaml (headers via requestOptions)
```
mcpServers:
  - name: Dizo
    type: streamable-http
    url: https://mcp.dizo.ai/mcp
    requestOptions:
      headers:
        Authorization: Bearer ${{ secrets.DIZO_API_KEY }}
```

## Notes
- The `type` value is `streamable-http`, with a hyphen.
- Continue's docs show `apiKey` for remote servers but do not say how it is sent. If authentication fails, use the `requestOptions.headers` form instead.
- Commit the block file, not the key: the `${{ secrets.DIZO_API_KEY }}` reference resolves on each developer's machine.

## Related API docs
- [/docs/keys](https://dizo.ai/docs/keys.md)
- [/docs/company-enrich](https://dizo.ai/docs/company-enrich.md)
- [/docs/me](https://dizo.ai/docs/me.md)


## Continue and the case for config-as-code

Continue is an open-source AI coding assistant for VS Code and JetBrains, configured in YAML. Models, rules, prompts and MCP servers are all declared as blocks, either in a central `config.yaml` or as separate files in a workspace `.continue` folder. That makes it a good fit for teams that want their assistant setup reviewed, versioned and shared like any other code.

Dizo slots into that model as one more block. A `.continue/mcpServers/dizo.yaml` file describes the remote server at `https://mcp.dizo.ai/mcp`, and a secret reference supplies the key. Everyone who opens the repository gets the same Dizo tools in agent mode, with their own key and their own caps. Nobody pastes a key into a shared file, and changing the server definition is a pull request rather than a message in chat.

## What Dizo adds to an agent-mode session

Continue's docs state that MCP tools only work in agent mode. In that mode the assistant can read files, propose edits and call tools in a loop. With Dizo attached, those tools include natural-language and structured search, free counts, decision-maker matching, org charts, email and phone finding, enrichment and reverse lookups from an email, phone or domain. Each tool description carries its credit cost, which the model sees when it chooses what to call.

For engineers, the practical gain is working against real responses. When Continue writes a mapper from a person record into your CRM schema, it can fetch one record and see the actual fields, such as `history` with start and end months, a `location` object with an ISO country code and an email `status` enum. That is more reliable than asking a model to recall a schema, and the result is code that survives its first production run.

It also helps with the parts that are easy to get wrong. Dizo lookups that find nothing return a 404 and cost nothing, searches charge only for results returned, and every POST accepts an `Idempotency-Key` so retries within 24 hours are never charged twice. When Continue can trigger each of those cases against the live server, it writes handling for them instead of treating every non-200 response as a crash.

## Example requests

These prompts mix data and code, which is where Continue's agent mode is strongest. Costs come from the published tool prices on the [MCP page](/mcp).

- "Call dizo_whoami and summarise what this key can do." (free)
- "Enrich stripe.com and acme.com with the company tool, then generate a Pydantic model from the response." (1 credit each if matched)
- "Count VPs of Engineering at German SaaS companies by headcount band to pick defaults for this filter form." (free)
- "Find work emails for the 20 people in tests/data/contacts.csv and record which ones return `404 not_found`." (1 credit per email found, misses free)
- "Find the head of finance at each of the five domains in accounts.txt using the decision-maker tool."
- "Quote the cost of finding emails for every row in leads.csv before you run anything." (free quote)

## Writing the Dizo block

The simplest setup is a standalone block file. Create `.continue/mcpServers/dizo.yaml` at the top level of your workspace with the `name`, `version` and `schema: v1` metadata Continue expects, followed by an `mcpServers` list. The single entry needs a `name`, `type: streamable-http` and `url: https://mcp.dizo.ai/mcp`. The type is case-sensitive and uses a hyphen, so `streamableHttp` or `http` will not work here.

For authentication, Continue's own examples for hosted servers use an `apiKey` field that references a secret, written as `${{ secrets.DIZO_API_KEY }}`. Continue's docs do not spell out how that value is transmitted. Its config reference also lists `requestOptions` for `sse` and `streamable-http` servers, using the same format as model request options, which accept custom `headers`. If the `apiKey` form does not authenticate, switch to `requestOptions.headers` with `Authorization: Bearer` and the secret reference.

If you prefer a single file, put the same `mcpServers` entry in your `config.yaml`. The block-file approach is easier to share, because the Dizo definition travels with the repository.

## Handling the key with secrets

The `${{ secrets.NAME }}` syntax keeps the key out of your YAML. Continue's docs say secrets can come from Continue Hub or from locally stored environment secrets, so each developer supplies their own value and the committed block holds only the reference. Check Continue's documentation on secrets for the exact storage location on your setup.

Use this to give each person a different key. A developer exploring the data model can use a `dz_test_` key, which returns synthetic records and never spends credits. Someone validating a production feature can use a live key with tight caps. Because the block is identical for both, the only difference is which secret is loaded, and you avoid the classic mistake of one shared live key copied into every laptop.

## Keeping agent mode inside a budget

Agent mode is designed to keep going until a task is done, so put limits on the key rather than relying on the prompt. Create a key for Continue with `max_credits_per_request`, `daily_cap_credits`, `monthly_cap_credits` and an `allowed_endpoints` list, as described in the [keys reference](/docs/keys). A key that can reach only search, company enrich and email find cannot run a phone job at 10 credits a number, however a task is phrased.

Add two habits to your Continue rules. First, call `dizo_quote` before any job that might exceed about 100 credits; the quote is exact and free. Second, call `dizo_whoami` at the start of a session so the agent knows its scopes and remaining budget. The [me endpoint](/docs/me) behind it returns the same information. At account level, a monthly spend cap stops calls with `402 monthly_cap_reached`, and auto-refill never pushes past it.

## Writing rules for the agent

Continue lets you shape agent behavior with rules and prompts, and a few short instructions make Dizo use predictable. Tell the agent to call `dizo_count` before any search, since counts are free and show how many records match, including how many have an email or phone. Tell it to call `dizo_quote` before any job that could exceed about 100 credits and to show you the number before it proceeds. Tell it to stop and ask if `dizo_balance` shows monthly spend close to the cap.

It also helps to steer endpoint choice. Open-ended prospecting goes through `dizo_search` with a plain-English query. A known name and company goes to `dizo_find_email`. More than 50 lookups should become a `dizo_batch` job rather than a loop of single calls. These are the same rules Dizo publishes for agents, and writing them down once keeps every developer's agent consistent, whatever model they run behind Continue.

## A worked example: building a list-cleaning script

Suppose you are writing a script that fills in missing work emails on CRM contacts before each send. You ask Continue to prototype it against 200 contacts from a sample file. It quotes the job first with `dry_run`: at most 200 credits if every lookup finds an email, or $5.00 at the $0.025 rate. You approve, it runs the lookups, and it sees the two outcomes the [email finder](/docs/email-find) returns: an address with `status: "verified"` and a 0–1 `confidence`, or a free `404 not_found`.

If 150 of the 200 come back, the prototype cost 150 credits. It then writes the script to store found addresses with their confidence, hold low-confidence ones for review and mark not-found contacts so they are not retried every run, with tests built from the recorded results. For anything over 50 addresses in production, it switches the script to the batch endpoint, which accepts up to 10,000 lookups per job and returns JSONL or CSV. The prototyping cost was paid once, and later test runs use a test key at no cost.

## Troubleshooting

If the Dizo tools do not appear, confirm that you are in agent mode, since Continue does not expose MCP tools elsewhere. Then check the YAML: indentation errors, a `type` of anything other than `streamable-http`, or a missing `schema: v1` line in a block file will stop it loading. If the server loads but calls fail with an authentication error, check that the secret resolves to a real key and try the `requestOptions.headers` form.

Dizo errors carry a stable `error.code` and a plain-English `fix`. A `402 monthly_cap_reached` means stop and tell a human. A refusal for exceeding the per-request maximum means split the job or use batch. Rate-limit responses include `error.retryable` and `error.retry_after`, and a rule telling Continue to honour them avoids retry storms. A free `dizo_whoami` call is the quickest way to see what the key can actually do.

## Security and review practices

Because Continue configuration lives in the repository, code review is your best control. Reviewers should reject any block where the `apiKey` or header holds a literal `dz_live_` value instead of a secret reference. If a live key ever lands in history, revoke it in the console and create a replacement; a key's secret is shown only once, at creation.

Keep billing out of reach. Keys are read-only for billing by default, and a coding assistant has no reason to hold `billing:write`, so leave that scope off. Give Continue its own key rather than reusing one from a production integration, so per-key usage in the console shows exactly what the assistant spent and a misbehaving session can be shut off without breaking anything else.

Finally, think about what the agent reads. A file or web page in context can contain instructions aimed at the model. Tight caps and an endpoint allow-list mean that even a manipulated session can only spend a bounded amount on the endpoints you chose. The [trust page](/trust) covers how Dizo itself handles keys, which are hashed at rest.

## FAQ

### Does Continue support remote MCP servers?
Yes. Continue supports remote servers with type: streamable-http (and sse) and a url. Dizo uses streamable HTTP at https://mcp.dizo.ai/mcp.

### Why can't I see the Dizo tools in Continue?
Continue only exposes MCP tools in agent mode. Switch modes, then check the YAML block loads without errors.

### How do I pass my Dizo key in Continue?
Reference a secret, for example apiKey: ${{ secrets.DIZO_API_KEY }}, as Continue's hosted-server examples do. If that does not authenticate, send it as an Authorization: Bearer header under requestOptions.headers.

### Can the whole team share one Dizo block?
Yes. Commit .continue/mcpServers/dizo.yaml with a secret reference. Each developer supplies their own key, so caps and usage stay per person.

### Can I test without spending credits?
Yes. Load a dz_test_ key as the secret. It returns synthetic data in the live response format and never spends credits. You get a live key when you [sign up](/signup).

### Is Dizo a listed block on Continue Hub?
No. There is no Dizo listing. You add it yourself with the YAML on this page.
