- Python 3.8 or higher
- pip (Python package manager)
- Internet access to connect to the Microsoft Learn Docs MCP server
-
Clone this repository or download the project files.
-
Install the required dependencies:
pip install -r requirements.txt
A command-line client that connects to the Docs MCP server, sends a query, and prints the result.
- Run the script:
python scenario1.py
- Enter your documentation question at the prompt.
A web-based interface (using Chainlit) that allows users to generate a personalized, week-by-week study plan for any technical topic.
- Start the Chainlit app:
chainlit run scenario2.py
- Open the local URL provided in your terminal (e.g., http://localhost:8000) in your browser.
- In the chat window, enter your study topic and the number of weeks you want to study (e.g., "AI-900 certification, 8 weeks").
- The app will respond with a week-by-week study plan, including links to relevant Microsoft Learn documentation.
Environment Variables Required:
To use Scenario 2 (the Chainlit web app with Azure OpenAI), you must set the following environment variables in a .env file in the python directory:
AZURE_OPENAI_CHAT_DEPLOYMENT_NAME=
AZURE_OPENAI_API_KEY=
AZURE_OPENAI_ENDPOINT=
AZURE_OPENAI_API_VERSION=
Fill in these values with your Azure OpenAI resource details before running the app.
Tip
You can easily deploy your own models using Azure AI Foundry.
Instead of switching browser tabs to search documentation, you can bring Microsoft Learn Docs directly into your VS Code using the MCP server. This enables you to:
- Search and read docs inside VS Code without leaving your coding environment.
- Reference documentation and insert links directly into your README or course files.
- Use GitHub Copilot and MCP together for a seamless, AI-powered documentation workflow.
Example Use Cases:
- Quickly add reference links to a README while writing a course or project documentation.
- Use Copilot to generate code and MCP to instantly find and cite relevant docs.
- Stay focused in your editor and boost productivity.
Important
Ensure you have a valid mcp.json configuration in your workspace (location is .vscode/mcp.json).
Chainlit is a modern open-source framework for building conversational web applications. It makes it easy to create chat-based user interfaces that connect to backend services like the Microsoft Learn Docs MCP server. This project uses Chainlit to provide a simple, interactive way to generate personalized study plans in real time. By leveraging Chainlit, you can quickly build and deploy chat-based tools that enhance productivity and learning.
This app allows users to create a personalized study plan by simply entering a topic and a duration. The app parses your input, queries the Microsoft Learn Docs MCP server for relevant content, and organizes the results into a structured, week-by-week plan. Each week’s recommendations are displayed in the chat, making it easy to follow and track your progress. The integration ensures you always get the latest, most relevant learning resources.
Try these queries in the chat window to see how the app responds:
AI-900 certification, 8 weeksLearn Azure Functions, 4 weeksAzure DevOps, 6 weeksData engineering on Azure, 10 weeksMicrosoft security fundamentals, 5 weeksPower Platform, 7 weeksAzure AI services, 12 weeksCloud architecture, 9 weeks
These examples demonstrate the flexibility of the app for different learning goals and timeframes.