[Doc] Remove redundant descriptions in AGENTS.md
The "Component definition patterns" section has been removed because it overlaps with
"Three Ways to Define Components" in AGENTS.md:
d745ccde/AGENTS.md (key-patterns)
This helps make the system prompt more concise.
This commit is contained in:
parent
d745ccdedc
commit
5aef96773e
1 changed files with 0 additions and 6 deletions
|
|
@ -105,9 +105,3 @@ This is the official Ruby SDK for the Model Context Protocol (MCP), implementing
|
|||
- **Rails controllers**: Use `server.handle_json(request.body.read)` for HTTP endpoints
|
||||
- **Command-line tools**: Use `StdioTransport.new(server).open` for CLI applications
|
||||
- **HTTP services**: Use `StreamableHttpTransport` for web-based servers
|
||||
|
||||
### Component definition patterns
|
||||
|
||||
1. **Class inheritance**: `class MyTool < MCP::Tool`
|
||||
2. **Define methods**: `MCP::Tool.define(name: "my_tool") { ... }`
|
||||
3. **Server registration**: `server.define_tool(name: "my_tool") { ... }`
|
||||
|
|
|
|||
Loading…
Reference in a new issue