What you’ll learn:
- How to use a Metorial MCP server
- How to use the Metorial SDKs
- Complete the Introduction guide
- Complete the Deploying your first MCP server guide
- Complete the Testing your first MCP server guide
1
1. Install the SDKs
Run the installer for your language of choice:
2
2. Configure Clients
Instantiate both clients with your API keys and your MCP server ID.
3
3. Fetch Your Server Tools
Retrieve the session object that exposes your deployed MCP tools.
4
4. Send Your First Prompt
Kick off the loop by sending an initial message.
5
5. Loop & Handle Tool Calls
- Send
messagesto OpenAI, passingtools: session.tools(TS) ortools=session.tools(Py). - If the assistant response contains
tool_calls, invoke it:
- Append both the tool call requests and their results to
messages. - Repeat until the assistant’s response has no more
tool_calls.
6
6. Display the Final Output
Once there are no more tool calls, your assistant’s final reply is in:
What’s Next?
You are all set on having a production-ready MCP server to use in your AI apps. Next, you will learn about all the dev tooling available.Next Up: How to monitor your server and tool calls
Learn how to use the observability & logging features.