Is there a way to hook into Cmd+K or autocomplete workflows?

Maybe an MCP tool can be invoked each time Cmd+K is invoked, which can provide additional context to the LLM. This can help in building highly specific IDE features for specific use cases.