Skip to content

Use Server#tools instead of instance_variable_get#340

Merged
koic merged 1 commit intomodelcontextprotocol:mainfrom
koic:use_server_tools_instead_of_instance_variable_get
May 10, 2026
Merged

Use Server#tools instead of instance_variable_get#340
koic merged 1 commit intomodelcontextprotocol:mainfrom
koic:use_server_tools_instead_of_instance_variable_get

Conversation

@koic
Copy link
Copy Markdown
Member

@koic koic commented May 10, 2026

Follow-up to #301 (comment).

Server#tools method can be used instead of a hack like instance_variable_get(:@tools).

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Follow-up to modelcontextprotocol#301 (comment).

`Server#tools` method can be used instead of a hack like `instance_variable_get(:@tools)`.
@koic koic force-pushed the use_server_tools_instead_of_instance_variable_get branch from cfa8f34 to 25f3f9a Compare May 10, 2026 05:54
@koic koic merged commit 9090cb6 into modelcontextprotocol:main May 10, 2026
11 checks passed
@koic koic deleted the use_server_tools_instead_of_instance_variable_get branch May 10, 2026 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants