Skip to content

Commit cf08f2d

Browse files
authored
MCP Handler docs (cloudflare#26657)
1 parent 9c934d9 commit cf08f2d

File tree

3 files changed

+529
-20
lines changed

3 files changed

+529
-20
lines changed

src/content/docs/agents/model-context-protocol/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ The MCP standard supports two modes of operation:
2929
- **Local MCP connections**: MCP clients connect to MCP servers on the same machine, using [stdio](https://spec.modelcontextprotocol.io/specification/draft/basic/transports/#stdio) as a local transport method.
3030

3131
### Best Practices
32+
3233
- **Tool design**: Do not treat your MCP server as a wrapper around your full API schema. Instead, build tools that are optimized for specific user goals and reliable outcomes. Fewer, well-designed tools often outperform many granular ones, especially for agents with small context windows or tight latency budgets.
3334
- **Scoped permissions**: Deploying several focused MCP servers, each with narrowly scoped permissions, reduces the risk of over-privileged access and makes it easier to manage and audit what each server is allowed to do.
3435
- **Tool descriptions**: Detailed parameter descriptions help agents understand how to use your tools correctly — including what values are expected, how they affect behavior, and any important constraints. This reduces errors and improves reliability.

0 commit comments

Comments
 (0)