Melaya · Build and run AI agents across your business tools, browser, desktop apps and Android phone. Seven connected products on one governed platform: Agents, Assistant, Device Control, Browser Control, Computer Control, MCP Server, and Marketing. Bring your own AI and keep human approval on every consequential action.

Melaya Blog

Extend AI Clients With MCP: Add Real Tools Safely

Learn how to extend ChatGPT, Claude, Cursor and Codex with MCP: how the protocol works, how to connect a server, and how to keep every action approved.

Extend AI Clients With MCP: Add Real Tools Safely

To extend an AI client with MCP, you point the client at an MCP server that exposes tools, and the model can call them. The hard part is not the connection. It is deciding which tools the model gets, what each one may touch, and which actions wait for a human. The Melaya MCP Server brings browser, Android, desktop and business-system tools to the clients you already use, with every consequential action behind human approval.

TL;DR

  • MCP is an open client-server protocol: the AI app (host) runs one client per server, and each server exposes tools, resources and prompts.
  • Connecting is configuration: a URL or a command, a transport (stdio or Streamable HTTP), and authentication. Each client stores it in a different place.
  • Treat every tool as code execution. Scope permissions, log calls, and require approval for publishing, sending, paying and writing to connected apps.
  • Melaya is bring-your-own-model: Claude, GPT, Gemini, DeepSeek, Mistral, Qwen, Ollama and LM Studio all work, and Melaya does not sell or require its own model.

What MCP gives an AI client

The MCP architecture docs describe a host (the AI application) that creates one MCP client per server. Each client keeps a dedicated connection over STDIO for local servers or Streamable HTTP for remote ones. Servers expose three primitives:

Primitive Who controls it Example
Tools The model A function such as searchFlights, invoked with tools/call
Resources The application Read-only data at a URI, read with resources/read
Prompts The user A reusable template, fetched with prompts/get

The official introduction lists what this reaches: local files, databases, search engines, calculators and workflows. SAP's explainer adds that MCP complements APIs: the API gives access to a system, and MCP lets an agent find and use that access without hardcoded endpoint knowledge.

The practical payoff for multi-model teams is arithmetic. As InfoQ describes it, MCP turns an M×N integration problem into M+N: build a tool server once, and any MCP-capable client can use it.

Connect a server to the client you already use

Every client wants the same three facts: where the server lives, which transport it speaks, and how it authenticates. The files differ.

  • Claude (claude.ai, Desktop, Claude Code). Anthropic's connector documentation says to use Streamable HTTP, since legacy HTTP+SSE is being deprecated, and to allow the redirect URI https://claude.ai/api/mcp/auth_callback. Limits apply per tool call: roughly 150,000 characters and 240 seconds on claude.ai and Desktop. In Claude Code, a URL means a remote server added with claude mcp add --transport http, while an npx or uvx command means a local stdio server, per the Claude Code MCP docs.
  • ChatGPT web. OpenAI's custom MCP server guide says ChatGPT supports SSE and streaming HTTP with OAuth, no authentication or mixed authentication. You add the server by URL and can toggle individual tools off in settings.
  • Codex (ChatGPT desktop, CLI, IDE extension). These share one config in ~/.codex/config.toml, or .codex/config.toml per project, according to ChatGPT Learn.
  • Cursor. Config lives in .cursor/mcp.json per project or ~/.cursor/mcp.json globally. Cursor's docs list stdio for local single-user use, plus SSE and Streamable HTTP for remote multi-user servers with OAuth.

A short checklist before you save the config:

  1. Pick Streamable HTTP for anything remote. Use stdio only for a local process on the same machine.
  2. Confirm the client's auth path: OAuth, bearer token, or none. Cursor and Codex both support static client credentials where a provider lacks Dynamic Client Registration.
  3. Allow the client's exact redirect URI. Mismatches are the most common first-connection failure.
  4. Start with the smallest tool set, then add more.
  5. Run one read-only call and check the result before enabling anything that writes.

Why a shared tool layer beats per-model plumbing

If you route between models, you do not want tool definitions per vendor. MCP is model-agnostic: any open-source model served through vLLM, Ollama or Hugging Face TGI can consume MCP tools once the orchestrator bridges tool definitions into the model's prompt format, as Tenzed's architecture guide puts it. The ToolSmith project shows the router version: register an MCP tool provider at the LiteLLM proxy, and every model behind it sees the same tools with no per-client setup.

Melaya is built on that idea. It is bring-your-own-model: you connect Claude, GPT, Gemini, DeepSeek, Mistral, Qwen, or local runtimes such as Ollama and LM Studio. Swap the model and the tools, permissions and workflows stay as they are. Your AI is the brain, Melaya is the controlled pair of hands. For local models specifically, see our guide to local AI models, hardware and runtimes.

Why a shared tool layer beats per-model plumbing

What the Melaya MCP Server adds

A bare MCP server gives you functions. Real work needs hands in real software. Through the Melaya MCP Server, an existing client such as ChatGPT, Claude, Cursor or Codex can reach:

  • Browser Control to operate websites.
  • Mobile Agents to operate Android applications. Device control is Android only; iPhone and iOS are not supported.
  • Computer Control to operate desktop software. It runs through the Melaya desktop app.
  • Melaya Assistant across connected business systems, including native integrations such as Odoo.

The same pattern appears in open-source tooling: Mozilla's Firefox DevTools MCP server drives a browser for form filling and multi-step flows, and the WebDriverIO MCP server reaches desktop and mobile apps. Melaya packages this surface behind one governed server rather than a pile of separate ones. For the walkthrough, read the Melaya MCP Server guide and how to automate tasks from Claude and ChatGPT.

Permissions and approvals: where MCP deployments fail

The MCP specification is blunt. Its security section says users must explicitly consent to data access and operations, hosts must get consent before invoking any tool, and tool descriptions should be treated as untrusted unless the server is trusted. The protocol does not enforce this for you. You build it.

OpenAI's own guidance warns that an untrusted custom server can access or steal information or trick ChatGPT into changing data. Cursor's docs recommend verifying the source, reviewing permissions and limiting API keys. Claude Code's docs add that servers fetching external content can expose you to prompt injection.

A workable control set:

  1. Role-specific tools. Read-only tools for research agents, write tools only for agents that mutate. Tenzed recommends the same split.
  2. Annotations. Mark tools with readOnlyHint, destructiveHint and openWorldHint, as OpenAI's build guide requires for production servers.
  3. Server-side authorization on every request, never only in the client.
  4. Approval gates. In Melaya, every consequential action (publishing, sending, paying, writing to connected apps) runs behind human approval. Agents propose; a person approves.
  5. Execution traces. Every run is traceable and replayable, so you can see which tool fired, with which input, and who approved it. Our piece on AI workflow monitoring covers what to track, and AI tool calling covers running it safely.

Melaya adds granular permissions and independent security audits on top of the approval and trace layer.

Spec changes to design around

The protocol moves. Streamable HTTP arrived with the 2025-03-26 revision, and the 2026-07-28 architecture makes MCP stateless: each request carries its own protocol version and capabilities, and sampling and roots are deprecated for new implementations. Build new work on Streamable HTTP, keep requests self-contained, and avoid depending on sampling. Because Melaya sits between your model and your tools, a protocol revision is a change in one place, not in every workflow.

Building your own server versus using one

If you want a custom server, the path is documented: define focused tools with action-oriented names and schemas, expose Streamable HTTP at a stable HTTPS endpoint (typically /mcp), test with npx @modelcontextprotocol/inspector, and add logging for failed initializations and tool calls, per OpenAI's build guide. Plan for ongoing work: authorization, backward-compatible schemas, and spec updates are yours to maintain. If your goal is agents that operate browsers, Android devices, desktop apps and business systems, the Melaya MCP Server already covers those surfaces, and the Agent Builder combines models, tools, memory, schedules, approvals, triggers and multi-agent pipelines when you need workflows rather than single calls.

Melaya MCP Server

Start with Melaya

Melaya plans are listed on the pricing page: Browser Agents and Mobile Agents are $9.99 per month each, Melaya Assistant is $9.99 per month, and Melaya Marketing is $14.99 per month. Platform tiers run from Sandbox at $0 per month and Outpost at $20 per month to Forge at $49 per month ($469 per year), Bastion at $129 per month ($1,239 per year), and Citadel from $490 per month. Connect the MCP Server to your client, pick your model, and keep approvals on for anything that writes.

Melaya MCP Server

Our perspective

Most MCP failures we expect are governance failures, not protocol failures. A connection that works in five minutes can still give a model write access to systems nobody mapped.

We built Melaya around that gap. Your model, whichever one you choose, supplies the reasoning. Melaya supplies tools with granular permissions, human approval on every consequential action, and execution traces you can replay.

Provider independence is the second half. Teams that change models, or move to local infrastructure, should not rebuild their tools and workflows. The tool layer should outlast any single model.

Melaya Team

FAQ

Does MCP work with local and open-weight models?

Yes. MCP is model-agnostic, so models served through Ollama, vLLM or similar runtimes can use MCP tools when the client or orchestrator passes tool definitions to the model. Melaya works with Ollama and LM Studio alongside cloud models such as Claude, GPT, Gemini, DeepSeek, Mistral and Qwen.

Which transport should I use?

Use Streamable HTTP for remote servers, since Claude is deprecating legacy HTTP+SSE and OpenAI recommends it for production endpoints. Use stdio for a local process on the same machine. Cursor, Codex and Claude Code all support both.

Can the agent act without a human approving?

In Melaya, no for consequential actions. Publishing, sending, paying and writing to connected apps run behind human approval, and runs are recorded in execution traces.

Does Melaya control iPhones?

No. Device control is Android only. Browser Control covers websites, and Computer Control covers desktop software through the Melaya desktop app.

Sources

Recommended

Frequently asked questions

Does MCP work with local and open-weight models?

Yes. MCP is model-agnostic, so models served through Ollama, vLLM or similar runtimes can use MCP tools when the client or orchestrator passes tool definitions to the model. Melaya works with Ollama and LM Studio alongside cloud models such as Claude, GPT, Gemini, DeepSeek, Mistral and Qwen.

Which transport should I use?

Use Streamable HTTP for remote servers, since Claude is deprecating legacy HTTP+SSE and OpenAI recommends it for production endpoints. Use stdio for a local process on the same machine. Cursor, Codex and Claude Code all support both.

Can the agent act without a human approving?

In Melaya, no for consequential actions. Publishing, sending, paying and writing to connected apps run behind human approval, and runs are recorded in execution traces.

Does Melaya control iPhones?

No. Device control is Android only. Browser Control covers websites, and Computer Control covers desktop software through the Melaya desktop app.