Explainer

Why doesn't autocomplete work for MCP prompts?

MCP completion lets a server suggest values as you type, but only if the client also asks. Most clients never do, so the box just stays empty.

MCPOrbit Team

Engineering, MCPOrbit

Published
Updated
· Updated
Read time
· 5 min read
A client card deciding whether to ask for autocomplete, a server card that declares the completions capability and matches a partial value, and a results card showing three suggestions when the client asks versus none when it does not.

Model Context Protocol (MCP) servers can offer autocomplete for prompt arguments. The feature is called completion, and it runs on a request named completion/complete. Most MCP clients never send that request, so a server can implement it perfectly and a user will still see no suggestions at all.

This post explains how MCP completion works, why a correct server can still show no suggestions, and how to check your client.

What is MCP completion?

Model Context Protocol (MCP) is an open standard that lets AI assistants connect to outside tools and data. Completion is a small part of it. It lets a server suggest values while someone is still typing.

Think of the search bar on your phone. You type a few letters, and a list of likely matches drops down below it. MCP completion works the same way, through a request called completion/complete.

Completion only covers two things: a prompt's arguments, and the variable part of a resource URI, called a resource template. It does not cover tool arguments. If you are filling in a tool call, there is no completion request for that field at all.

A resource template looks like file:///{path} or repo://{owner}/{repo}/issues/{id}, with curly braces marking the part a user fills in. Completion can suggest values for those variables too, not just prompt arguments, which is why the spec groups both under one request type.

Why does my MCP server show no suggestions at all?

The most common cause is the client, not the server. Completion needs two things to both happen: your server has to offer it, and your client has to ask for it. Most MCP clients skip the second part.

A server signals that it supports completion during the initial handshake. It adds an empty completions object to its capabilities, like this:

{
  "capabilities": {
    "completions": {}
  }
}

If a client never reads that signal, or reads it and chooses not to act on it, it will never send a completion request. Your server's logic could be perfect and nobody would ever call it.

Building the client side costs real engineering, even though the server side is simple. A text box needs a dropdown, a request sent on almost every keystroke, and logic to discard a stale reply once the user keeps typing. Many clients ship a prompt picker without ever adding that layer, which is why completion support lags behind the rest of the spec.

When a client does ask, the request names the prompt, the argument being typed, and the partial value so far:

{
  "method": "completion/complete",
  "params": {
    "ref": { "type": "ref/prompt", "name": "code_review" },
    "argument": { "name": "language", "value": "py" }
  }
}

The server replies with a ranked list of matches, capped at 100 values:

{
  "completion": {
    "values": ["python", "pytorch", "pyside"],
    "total": 3,
    "hasMore": false
  }
}

That whole exchange happens, or it does not. There is no partial credit and no error message when a client skips it. The box you are typing into just stays empty.

How do you check whether your MCP client actually asks for completions?

You cannot tell from a client's feature list alone. The only reliable way is to watch the actual requests it sends.

  • Connect your client to a server that declares the completions capability.
  • Type a partial value into a prompt argument, such as py for a language field.
  • Watch the client's request log for a completion/complete call.
  • Treat silence as your answer: if nothing appears, the client is not asking, no matter what the server returns.

You do not need to write any code to check this yourself. Connect your server to a plain MCP client like MCPOrbit, and read its request log line by line. If completion/complete never shows up while you test, you have your answer: the client in front of you is not asking.

If your client never asks, you are not stuck. Most prompt forms still accept a typed value with no suggestions at all, so you can just type the full argument yourself. The feature is a convenience on top of a working prompt, not a requirement for the prompt to run.

How do you add completion support to your own MCP server?

Add the capability first, then the matching logic. Both steps matter, because a client has no way to know your server supports completion until it sees the capability.

  • Declare completions: {} in your server's capabilities during initialize.
  • Handle the completion/complete method by matching the partial value against your real data.
  • Return up to 100 matches in values, sorted by relevance.
  • Use context.arguments to narrow results when a prompt has more than one argument.

A prompt with a language argument and a framework argument can use the first answer to narrow the second. Once language is python, a partial framework value of fla can return just flask instead of every framework you know about:

{
  "params": {
    "argument": { "name": "framework", "value": "fla" },
    "context": { "arguments": { "language": "python" } }
  }
}

The MCP spec also says a server should rate limit these requests and validate every input, the same as any other field a user can type into.


Common questions

What is the MCP completion/complete request?
It is the request an MCP client sends to ask a server for autocomplete suggestions. The client sends the argument name and the partial value typed so far, and the server returns a ranked list of matches, capped at 100 values.
Why does autocomplete work for some MCP prompts but not others, on the same server?
Completion only applies to prompt arguments and resource template variables, not regular tool arguments. If the field you are typing into belongs to a tool, there is no completion request to send, so nothing will ever suggest matches there.
Do I need to declare a capability before my MCP server can offer completions?
Yes. A server must list completions as an empty object in its capabilities during the initialize handshake. A client that sees no completions capability will not send a completion request, even if your server can answer one correctly.
Which MCP clients support sending completion requests?
Support varies and changes often, so check the specific client's own documentation, or watch its request log directly. Reading the raw requests a client sends is the fastest way to confirm support yourself, rather than trusting a feature list.
Can MCP completion suggest values for tool arguments?
No. The MCP spec scopes completion to prompt arguments and resource template URI variables only. Tool arguments have no built-in autocomplete mechanism in the protocol itself, regardless of what your client or server supports elsewhere.

A correct server is only half of what autocomplete needs. The rest is a client willing to ask, and the fastest way to find out is to watch the traffic yourself.

About the author

MCPOrbit Team

Engineering, MCPOrbit

The MCPOrbit engineering team builds MCPOrbit, a free desktop client for the Model Context Protocol. It connects to any MCP server so you can browse its tools, call them by hand, and run them through a real agent loop.

Share this post

MCPOrbit

Test an MCP server in 60 seconds.

Download MCPOrbit for free — no account, no telemetry. Hear about a server and test it before the curiosity wears off.

macOS 14+ · Apple silicon · No account needed