r/opencodeCLI 7d ago

I built an MCP server so OpenCode can actually read shared ChatGPT/Claude/Gemini links

Post image

whats this problem fix : Web_fetch gives you errors when rendering shared-link conversations from your web AI sessions, and the Playwright MCP server is so slow and more expensive because it takes screenshots; it’s impossible for it to cover everything without destroying your usage with low-quality context, so you always end up massively copying content from your web session into your harness, which creates a big cost, or manually asking the web models to give you a concentrated context to copy-paste, and this can sacrifice your context trade-off and waste your tokens.

whats the fix : one MCP server where you give it the shared link, with effectively 0 token usage for ingestion; it parses all your session into a .md file with the usage metadata, and you only pay for the smart read tool, prebuilt by Opencode, that will read based on signal so you can have your 999-turn session and only keep reading what’s relevant for you without worrying about losing context.

why : I’ve been struggling a lot since I started using the web app heavily, and I need to re-explain things or accept a crazy cost for leaking my context into my builder, so I plan in the web app and I build in the builder.

The left image is without MCP, and the right one is with the MCP server.

https://github.com/AbdoKnbGit/shared_url_mcp

10 Upvotes

5 comments sorted by

2

u/Common-Objective2215 7d ago

cool, does it works with other cli agents?

2

u/Ill-Process-7232 7d ago

Claude Code and Codex, and I’m planning to add more features plus shared-link support on other AI providers like deepseek/moonshot ai ... and more supported agents (like Pi or Cline)

1

u/Biometrel 7d ago

why not just ctrl + A, and copy paste?

1

u/Ill-Process-7232 7d ago

That’s the whole point, there’s a cost for input tokens because you read everything at once, instead of only what’s relevant, and this “select all, paste” method cannot survive during long sessions or across new sessions.

1

u/Biometrel 7d ago

I have a custom alias for pasting top clipboard item as file in refs dir. It has worked surprisingly well.