Skip to content

Conversation

@dj707chen
Copy link
Contributor

@dj707chen dj707chen commented Dec 17, 2025

Add -p parameter to the cargo run commands in README.md files and other documentation to fix error.

Motivation and Context

When I launched the following command as documented in examples/servers/README.md at the examples/server directory:

cargo run --example servers_counter_stdio

It ran well, but when I launched it at repository root or places other than the examples/server subtree, I got error:

error: no example target named `servers_counter_stdio` in default-run packages

Add the -p parameter to make it runs at all places:

cargo run -p mcp-server-examples --example servers_counter_stdio

How Has This Been Tested?

Run the new commands at repository root or places other than the examples subtree, the server should be launched without errors.

Breaking Changes

(None)

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

(None)

@github-actions github-actions bot added T-documentation Documentation improvements T-examples Example code changes labels Dec 17, 2025
@dj707chen dj707chen changed the title Add -p parameter to the cargo run commands in README.md files Add -p parameter to the cargo run commands in documentation Dec 17, 2025
@dj707chen dj707chen changed the title Add -p parameter to the cargo run commands in documentation docs: add -p parameter to the cargo run commands in documentation Dec 17, 2025
@alexhancock
Copy link
Collaborator

@dj707chen Can you update the commit messages to follow https://www.conventionalcommits.org/en/v1.0.0/ format? Then we can get this in

@dj707chen
Copy link
Contributor Author

dj707chen commented Jan 15, 2026

Oh, didn't know the convention, that's neat! Prefixed the 3 commit messages with "fix(docs): ", not sure if I did it in a correct way.

@dj707chen dj707chen changed the title docs: add -p parameter to the cargo run commands in documentation fix(docs): add -p parameter to the cargo run commands in documentation Jan 15, 2026
@alexhancock
Copy link
Collaborator

@dj707chen All that needs to change now is the first letter of the subject cannot be uppercased. Sorry for the hassle. I am going to merge the PR anyway and I'll look at disabling some of the unnecessary strictness tomorrow.

I did #619 earlier today which will also verify messages on pre-commit as a useful shift-left.

@alexhancock alexhancock merged commit 2d1456e into modelcontextprotocol:main Jan 15, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-documentation Documentation improvements T-examples Example code changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants