# Tutorials

The best way to learn MCP Functions is by doing. These step-by-step tutorials walk you through the most important workflows — from creating your first tool to monitoring production usage. Each tutorial is self-contained: follow them in order if you're new, or jump straight to the one you need.

![Tutorial Learning Path](https://1140963605-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcNkjl1Dsug0KQrLLIjPR%2Fuploads%2Fgit-blob-f10a78a4644904d062c3ffdd5be34d436765c0fb%2Ftutorials-hero.png?alt=media)

## Tutorials in This Section

If you're new, follow them in this order:

| # | Tutorial                                                                                                  | What you'll learn                                                                               | Time     |
| - | --------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -------- |
| 1 | [Create Your First Tool](https://docs.mcpfunctions.ai/documentation/tutorials/first-tool)                 | Build a complete MCP tool from scratch — create a server, write code, test, and publish         | \~10 min |
| 2 | [Generate a Tool with AI](https://docs.mcpfunctions.ai/documentation/tutorials/ai-tool-generation)        | Use the built-in AI assistant to generate tool code, parameters, and descriptions from a prompt | \~5 min  |
| 3 | [Test and Debug Tools](https://docs.mcpfunctions.ai/documentation/tutorials/testing-and-debugging)        | Run tests in the sandbox, read execution logs, and diagnose common failures                     | \~10 min |
| 4 | [Manage Secrets and External APIs](https://docs.mcpfunctions.ai/documentation/tutorials/secrets-and-apis) | Store API keys as workspace secrets, configure OAuth2, and reference credentials in tool code   | \~10 min |
| 5 | [Connect an AI Assistant](https://docs.mcpfunctions.ai/documentation/tutorials/connect-assistant)         | Wire Cursor, Claude Desktop, or any MCP client to your server                                   | \~5 min  |
| 6 | [Invite Team Members](https://docs.mcpfunctions.ai/documentation/tutorials/invite-team-members)           | Invite users, assign organization roles, and manage workspace permissions                       | \~5 min  |
| 7 | [Monitor Usage and Logs](https://docs.mcpfunctions.ai/documentation/tutorials/monitoring-and-logs)        | Use the dashboard, execution logs, and activity feed to track tool usage                        | \~5 min  |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mcpfunctions.ai/documentation/tutorials.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
