Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This is the official Ruby SDK for the Model Context Protocol (MCP), implementing

- Ruby 3.2.0+ required
- Run `bundle install` to install dependencies
- Dependencies: `json_rpc_handler` ~> 0.1, `json-schema` >= 4.1
- Dependencies: `json-schema` >= 4.1 - Schema validation

## Build and test commands

Expand Down Expand Up @@ -100,12 +100,6 @@ This is the official Ruby SDK for the Model Context Protocol (MCP), implementing
- `server_context` hash passed through tool/prompt calls for request-specific data
- Methods can accept `server_context:` keyword argument for accessing context

### Dependencies

- `json_rpc_handler` ~> 0.1 - JSON-RPC 2.0 message handling
- `json-schema` >= 4.1 - Schema validation
- Ruby 3.2.0+ required

### Integration patterns

- **Rails controllers**: Use `server.handle_json(request.body.read)` for HTTP endpoints
Expand All @@ -116,4 +110,4 @@ This is the official Ruby SDK for the Model Context Protocol (MCP), implementing

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") { ... }`
3. **Server registration**: `server.define_tool(name: "my_tool") { ... }`