Skip to content

Conversation

@koic
Copy link
Member

@koic koic commented Jun 19, 2025

Motivation and Context

Since the example files are not executable binaries, this PR removes the shebangs.

This ensures that all examples are consistently executed via ruby command. It also removes the executable permission from examples/stdio_server.rb using chmod 444, bringing it in line with the other example files.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

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

Additional context

Since the example files are not executable binaries, this PR removes the shebangs.

This ensures that all examples are consistently executed via `ruby` command.
It also removes the executable permission from `examples/stdio_server.rb` using `chmod 444`,
bringing it in line with the other example files.
Copy link
Contributor

@sambostock sambostock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, with one nit

Comment on lines 11 to +12
```bash
ruby examples/stdio_server.rb
$ ruby examples/stdio_server.rb
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're using prefixes before running commands, we should use the console language for the codeblock

```console
$ ruby examples/stdio_server.rb

(Same for the other code blocks)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think so too. That said, this repository uses bash, so a separate PR will likely change it to console.

@koic koic merged commit c806e1e into modelcontextprotocol:main Jun 23, 2025
5 checks passed
@koic koic deleted the remove_chebang_from_example_files branch June 23, 2025 17:21
topherbullock pushed a commit that referenced this pull request Jul 2, 2025
Follow-up to #67 (comment).

This PR updates code blocks for command examples to use `console` as the language identifier.
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