Skip to content

Conversation

Kludex
Copy link
Member

@Kludex Kludex commented Mar 16, 2025

You can try mcp run --help locally.

Now it looks like this:

❯ mcp run --help
                                                                                                                                                                                 
 Usage: mcp run [OPTIONS] FILE_SPEC                                                                                                                                              
                                                                                                                                                                                 
 Run a MCP server.                                                                                                                                                               
 The server can be specified in two ways:                                                                                                                                        
 1. Module approach: server.py - runs the module directly, expecting a server.run() call.                                                                                        
 2. Import approach: server.py:app - imports and runs the specified server object.                                                                                               
                                                                                                                                                                                 
 Note: This command runs the server directly. You are responsible for ensuring all dependencies are available.                                                                   
 For dependency management, use `mcp install` or `mcp dev` instead.                            

@Kludex Kludex requested a review from dsp-ant March 16, 2025 11:06
@Kludex
Copy link
Member Author

Kludex commented Mar 16, 2025

Btw, the import approach should have been server:app instead of adding the .py in it, as uvicorn does.

@dsp-ant dsp-ant merged commit 6b6f34e into main Mar 17, 2025
5 checks passed
@dsp-ant dsp-ant deleted the format-output-on-cli-better branch March 17, 2025 10:24
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