From the course: Unboxing AI: Build a Remote MCP Server from Zero to Deployed with OAuth

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Testing your MCP server

Testing your MCP server

- Back to our simple example. Inside the server we have, like I said, a tool, a resource, and a prompt. Then at the bottom we say, we just set it up so we say mcp.run. That runs MCP, the class instance. And then that will hook into everything and then rerun it. To get this to run on the MCP inspector, you have to make sure that you are running this environment inside your console. And then you go down to here. Let's see. I'll pass all that stuff. So this is just descriptions of how to do all these things. And then we can say uv run mcp dev server.py. Copy that. UV is environment run. It's just how to run things. MCP is the MCP CLI. Dev is the dev server. And then we're pointing at server.py. Run that. The inspector starts over here. And if everything works correctly, it does not because I need to recall this simple-mcp-server, I think. There we go. And we can go and look at the resources. There's one resource or is it a list template here. There we go, get_greeting. There is a prompt,…

Contents