From the course: Claude with Amazon Bedrock by Anthropic

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

The MCP Inspector

The MCP Inspector

We have put together some functionality inside of our MCP server but we have no idea if it works so it'd be really great if we could test this out somehow. It turns out that by using this Python SDK we automatically get access to an in-browser debugger so we can make sure that this server is working as expected. Let me show you how to use it really quickly. Back inside my terminal, I'm going to make sure that I have my Python environment activated. Remember the readme document goes into detail on the exact command to run to make sure that you have activated that environment. Once you are sure that it is activated, we'll run mcp dev and then the name of the file that contains our server. In this case it is mcpserver.py. Once I run that, I'll then be told that I have a server listening on port 6277 and I'll be given a direct address to actually access it. I'm going to open up that address inside my browser and once you go there you'll see something that looks like this. This is the MCP…

Contents