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 - OAuth Tutorial
From the course: Unboxing AI: Build a Remote MCP Server from Zero to Deployed with OAuth
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
-
-
-
-
(Locked)
How to build your own MCP server1m 36s
-
(Locked)
Setting up your MCP development environment1m 25s
-
(Locked)
SDKs and setup1m 31s
-
(Locked)
Installing and using UV2m 19s
-
(Locked)
Running an MCP server locally2m 33s
-
(Locked)
Using the MCP Inspector3m 6s
-
(Locked)
Testing an MCP server in VS Code3m 50s
-
(Locked)
Using Resources and Prompts1m 18s
-
(Locked)
Building an MCP server from a template6m 14s
-
(Locked)
Writing tools, resources, and prompts7m 37s
-
(Locked)
Testing your MCP server4m 31s
-
(Locked)
Using an MCP server in Claude Desktop3m 42s
-
(Locked)
Customizing your MCP server to fit your needs1m 22s
-
(Locked)
Extending your MCP server with GitHub Copilot1m 54s
-
(Locked)
-
-
-
-