r/opencodeCLI • • 8d ago

Code Mode is great

https://github.com/anomalyco/opencode/blob/dev/packages/codemode/README.md
190 Upvotes

24 comments sorted by

View all comments

Show parent comment

1

u/FailedGradAdmissions 8d ago

Do you this with subscriptions? How do you route the requests then?

2

u/AlmostEasy89 7d ago

Cloudflare has 2 GUI controls. MCP Portals and MCP Servers.

MCP servers you just place the http transport URL like https://saasiuse.com/mcp and then choose auth method. Auth login is the usual. Custom headers you can use API/bearer token so it's a permanent access that doesn't expire.

So say you add 20 of those.

Then you can add 2..3..20 to ONE MCP Portal to say ChatGPT or Claude code or OpenCode, whatever.

That MCP client (ChatGPT and Claude code are MCP clients) then only needs you to add 1 MCP to it. The client then only sees 5 tools. Essentially the ones you use are tool_search and then tool_execute or something like that. Another is toggle servers on/off.

So in context you don't keep 800 tools every turn. You keep 5 and it can search and execute the tools it needs.

I have 2 Google Workspace accounts for my business. Google fucking finally released an MCP for it's main products. Mail, Docs, Drive, Sheets, Slides, Workspace Search etc. Being Google, it was a massive pain in the ass to set that up but once I did, I had 7-8 MCPs per workspace and added a Google Admin portal and Google Support portal. Many clients have Google stuff built in nowadays but now I have a portable, fully accessible suite of Google MCPs and Portals that I can take with me wherever I go and will always be mine and will always work.

I could add them all to one portal, or multiple, or mix and match. For terminal clients I have one huge MCP Portal. For ChatGPT Business chats I have a Marketing Portal, Operations Portal, Google Workspace Portal etc just for scoping access.

I think it's obfuscation by complexity with Cloudflare because idk why this isn't the most popular AI companion software for everyone. It's a game changer.