# Develop an extension to send prompt to Cursor Chat

**URL:** <https://forum.cursor.com/t/develop-an-extension-to-send-prompt-to-cursor-chat/81342>\
**Category:** Help\
**Created:** [April 19, 2025, 6:57pm UTC](https://forum.cursor.com/t/develop-an-extension-to-send-prompt-to-cursor-chat/81342 "2025-04-19T18:57:54Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![benlau](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/benlau/32/8860_2.png) [@benlau](https://forum.cursor.com/u/benlau)\
**Post date:** [April 19, 2025, 6:57pm UTC](https://forum.cursor.com/t/develop-an-extension-to-send-prompt-to-cursor-chat/81342/1 "2025-04-19T18:57:54Z")

</div>

Hello,

I want to develop a Cursor extension that can send prompts to Cursor Chat and execute them directly. Is there any API or VSCode command available for this purpose?

---

<div class="post-metadata">

**Author:** ![normalnormie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/normalnormie/32/18258_2.png) [@normalnormie](https://forum.cursor.com/u/normalnormie)\
**Post date:** [April 19, 2025, 10:09pm UTC](https://forum.cursor.com/t/develop-an-extension-to-send-prompt-to-cursor-chat/81342/2 "2025-04-19T22:09:56Z")

</div>

Check [GitHub - MarkShawn2020/oh-my-prompt: ✨ AI IDE 专用多 prompt 管理系统，支持跨 IDE、一键切换、智能同步 Global / Project Prompt！ ✨](https://github.com/MarkShawn2020/oh-my-prompt) which is a vscode extension to input template prompts

---

<div class="post-metadata">

**Author:** ![benlau](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/benlau/32/8860_2.png) [@benlau](https://forum.cursor.com/u/benlau)\
**Post date:** [April 20, 2025, 3:56pm UTC](https://forum.cursor.com/t/develop-an-extension-to-send-prompt-to-cursor-chat/81342/3 "2025-04-20T15:56:43Z")

</div>

Thank you! It is not perfect but a clever way.

---

<div class="post-metadata">

**Author:** ![taggartbg](https://avatars.discourse-cdn.com/v4/letter/t/f6c823/32.png) [@taggartbg](https://forum.cursor.com/u/taggartbg)\
**Post date:** [April 21, 2025, 1:24am UTC](https://forum.cursor.com/t/develop-an-extension-to-send-prompt-to-cursor-chat/81342/4 "2025-04-21T01:24:05Z")

</div>

Hey @benlau - totally different usecase but you can look at my source code for [GitHub - taggartbg/vibeframe: VSCode Extension to enable UIs for MCP Servers (SSE)](https://github.com/taggartbg/vibeframe). It creates an extension, looks through all your MCPs for a specific endpoint `/vibeframe` and then hits it + loads it into the webview panel. You could just hit your `/doWhatever` endpoint and have the MCP then SSE to the Agent.

Feel free to fork / ask questions.

---

<div class="post-metadata">

**Author:** ![benlau](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/benlau/32/8860_2.png) [@benlau](https://forum.cursor.com/u/benlau)\
**Post date:** [April 21, 2025, 3:01am UTC](https://forum.cursor.com/t/develop-an-extension-to-send-prompt-to-cursor-chat/81342/5 "2025-04-21T03:01:27Z")

</div>

Cool, let’s me study it first. thx~

---

<div class="post-metadata">

**Author:** ![webxtor](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/webxtor/32/53407_2.png) [@webxtor](https://forum.cursor.com/u/webxtor)\
**Post date:** [May 9, 2025, 1:55am UTC](https://forum.cursor.com/t/develop-an-extension-to-send-prompt-to-cursor-chat/81342/6 "2025-05-09T01:55:11Z")

</div>

Hello.  
In your example video it looks like its a one way interaction.  
Then how would it be possible to force the Agent to constantly listen and execute commands from the MCP server like if they were sent directly from the chat box (if this is what you’re referring to)?

Do you mean like to say in the chat something like: “Listen to this MCP server continuously and perform all its requests as they go”?

---

<div class="post-metadata">

**Author:** ![taggartbg](https://avatars.discourse-cdn.com/v4/letter/t/f6c823/32.png) [@taggartbg](https://forum.cursor.com/u/taggartbg)\
**Post date:** [May 9, 2025, 2:54am UTC](https://forum.cursor.com/t/develop-an-extension-to-send-prompt-to-cursor-chat/81342/7 "2025-05-09T02:54:33Z")

</div>

In my example the MCP server is stateful and holds the source of truth. The UI allows for 2-way interaction with the server over HTTP2, but currently you have to ask the agent to use an MCP tool. However, it is my understanding that MCP SSE transport allows for the server to send commands to the client…just Cursor doesn’t support receiving them. Can anyone confirm that for me?

In any event, some creative UX in designing a system where the Agent can get the data it needs out using some tool call is what my demo shows.

---

<div class="post-metadata">

**Author:** ![prabhassagi\_003](https://avatars.discourse-cdn.com/v4/letter/p/ec9cab/32.png) [@prabhassagi\_003](https://forum.cursor.com/u/prabhassagi_003)\
**Post date:** [May 28, 2025, 11:51am UTC](https://forum.cursor.com/t/develop-an-extension-to-send-prompt-to-cursor-chat/81342/8 "2025-05-28T11:51:27Z")

</div>

@benlau did you find any approach for your usecas? I am also looking for similar usecase

---

<div class="post-metadata">

**Author:** ![andrewh](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/andrewh/32/65515_2.png) [@andrewh](https://forum.cursor.com/u/andrewh)\
**Post date:** [December 28, 2025, 7:33pm UTC](https://forum.cursor.com/t/develop-an-extension-to-send-prompt-to-cursor-chat/81342/9 "2025-12-28T19:33:07Z")

</div>

Just added this [A command for passing a prompt to the chat - #7 by andrewh](https://forum.cursor.com/t/a-command-for-passing-a-prompt-to-the-chat/138049/7)
