Skip to content

Commit 812854a

Browse files
authored
fix: Adjustments from trial run (#14)
1 parent e48d198 commit 812854a

File tree

6 files changed

+30
-56
lines changed

6 files changed

+30
-56
lines changed

.github/steps/1-step.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
<img width="150" align="right" alt="copilot logo" src="https://github.com/user-attachments/assets/4d22496d-850b-4785-aafe-11cba03cd5f2" />
44

5-
Welcome to another Skills exercise!
6-
75
In the [Getting Started with GitHub Copilot](https://github.com/skills/getting-started-with-github-copilot) exercise, we were introduced to the Mergington High School's extracurricular activities website, which allowed students to sign up for events.
86

97
And now we have a problem... but.. it's a good one! More teachers are asking to to use it! 🎉
@@ -41,7 +39,7 @@ graph LR
4139

4240
### :keyboard: Activity: Get to know your environment
4341

44-
Let's start up our development environment and refamiliarize ourself with the extracurricular activity application.
42+
Before we dive into MCP, let's start up our development environment and refamiliarize ourself with the extracurricular activity application.
4543

4644
1. Right-click the below button to open the **Create Codespace** page in a new tab. Use the default configuration.
4745

@@ -83,8 +81,6 @@ Let's start up our development environment and refamiliarize ourself with the ex
8381

8482
### :keyboard: Activity: Add the GitHub MCP server
8583

86-
Since we are using GitHub, we have asked our fellow teachers to submit their ideas and bugs as issues (instead of email).
87-
8884
1. Inside your codespace, open the **Copilot Chat** panel and verify **Agent** mode is selected.
8985

9086
<img width="200" alt="image" src="https://github.com/user-attachments/assets/201e08ab-14a0-48bf-824e-ba4f8f43f8ab" />

.github/steps/2-step.md

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -33,61 +33,45 @@ Isn't that cool?! Now let's do it! 👩‍🚀
3333
> ![Static Badge](https://img.shields.io/badge/-Prompt-text?style=social&logo=github%20copilot)
3434
>
3535
> ```prompt
36-
> Are their any other repositories for organizing extra curricular actitivities?
36+
> Are their any other repositories for organizing extra curricular activities?
3737
> ```
3838
3939
4. When an MCP tool is required, Copilot will ask permission. Click **Continue**.
4040
4141
<img width="250" alt="request permission dialog" src="https://github.com/user-attachments/assets/d14ea944-5443-4b8a-a4d2-ae677fdb274c" />
4242
43-
5. Ask Copilot to describe one of the projects.
43+
5. Ask Copilot to describe one of the projects. Explore until you find something you like.
4444
4545
> ![Static Badge](https://img.shields.io/badge/-Prompt-text?style=social&logo=github%20copilot)
4646
>
4747
> ```prompt
4848
> Please look at the code for the 3rd option and give me a detailed description of the features.
4949
> ```
5050
51-
6. (optional) You might pick a project that is still young. If that happens, Copilot might say there isn't much to describe. Instead just ask to review a different one. Example:
51+
6. Use Copilot to compare and generate ideas for enhancements.
5252
5353
> ![Static Badge](https://img.shields.io/badge/-Prompt-text?style=social&logo=github%20copilot)
5454
>
5555
> ```prompt
56-
> Ok. How about the first one then?
56+
> Please compare these features to our project. Which would be new?
5757
> ```
5858
59-
7. Use Copilot to compare and generate ideas for enhancements.
60-
61-
> ![Static Badge](https://img.shields.io/badge/-Prompt-text?style=social&logo=github%20copilot)
62-
>
63-
> ```prompt
64-
> Which of these features would be new for our project?
65-
> ```
66-
67-
8. Nice! Let's have Copilot create issues to save these ideas.
59+
7. Nice! Let's have Copilot create issues to save these ideas.
6860
6961
> ![Static Badge](https://img.shields.io/badge/-Prompt-text?style=social&logo=github%20copilot)
7062
>
7163
> ```prompt
7264
> I like it. Let's create issues for these.
7365
> ```
7466
75-
9. Copilot will ask for permssion to create issues on your repository. Click **Continue** for each new issue.
67+
8. Copilot will ask for permission to create issues on your repository. Click **Continue** for each new issue.
7668
7769
<img width="250" alt="request permission dialog" src="https://github.com/user-attachments/assets/52635294-950a-4168-b71e-498eb769f3af" />
7870
79-
10. With the new issues created, Mona should already be busy checking your work. Give her a moment and keep watch in the comments. You will see her respond with progress info and the next lesson.
80-
81-
11. (Optional) Let's see if the author has other projects we might be interested in.
71+
9. Since we are done researching, let's finish this chat session to clear the context. At the top of the **Copilot Chat** panel, click the **New Chat** icon (plus sign).
8272
83-
> ![Static Badge](https://img.shields.io/badge/-Prompt-text?style=social&logo=github%20copilot)
84-
>
85-
> ```prompt
86-
> What was the name of the owner of the repo we just reviewed?
87-
> Search GitHub and give me a summary of other projects they have recently worked on.
88-
> ```
73+
10. With the new issues created, Mona should already be busy checking your work. Give her a moment and keep watch in the comments. You will see her respond with progress info and the next lesson.
8974
90-
> 🪧 **Note:** We explicitly asked about the owner to help guide Copilot with the relative reference.
9175
9276
> [!NOTE]
9377
> The Model Context Protocal (MCP) landscape is quickly evolving. Many servers, including the [Official GitHub MCP server](https://github.com/github/github-mcp-server) are in active development and do not have full parity with their stable APIs.

.github/steps/3-step.md

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Great workd doing that research and finding a potential collaboration opportunity.
44
Not only did we find some new ideas to help organize extracurricular activies, but we did all that quickly too.
55

6-
Plenty of time to focus on the fun stuff, teaching our awesome students! 🌱
6+
Plenty of time to focus on the fun stuff, like teaching our awesome students! 🌱
77

88
Btw, it seems the teachers have also been active.
99
Looks like they submitted some bugs and requests! Perfect! 🚀
@@ -19,9 +19,11 @@ Now, let's use our MCP server's tools and Copilot to do a bit of triage and get
1919
> ![Static Badge](https://img.shields.io/badge/-Prompt-text?style=social&logo=github%20copilot)
2020
>
2121
> ```prompt
22-
> How many open issues are there?
22+
> #codebase How many open issues are there?
2323
> ```
2424
25+
> :placard: **Note:** In our tests, we found that Copilot sometimes gets confused about the repository owner here. We chose to add `#codebase` to reduce this ambiguity and make the lesson smoother.
26+
2527
3. Ask Copilot to summarize the important issues.
2628
2729
> ![Static Badge](https://img.shields.io/badge/-Prompt-text?style=social&logo=github%20copilot)
@@ -33,24 +35,19 @@ Now, let's use our MCP server's tools and Copilot to do a bit of triage and get
3335
3436
4. Review the suggested issues. If Copilot didn't give a specific recommendation, try providing some feedback to narrow the results.
3537
36-
5. With the list narrowed, ask copilot to implement one.
38+
5. With the list narrowed, ask copilot to implement an issue. **Mona won't grade if the changes work, just that an attempt was made.**
3739
3840
> ![Static Badge](https://img.shields.io/badge/-Prompt-text?style=social&logo=github%20copilot)
3941
>
4042
> ```prompt
41-
> #codebase Let's do the first one. Add a comment that I am working on it and
42-
> assign it to me. Start a new branch, make the changes, then push them
43-
> and start a pull request. Make sure to link this issue and the new PR.
43+
> #codebase Let's do the first one. Follow these steps:
44+
> 1. Checkout a new local branch for making our changes.
45+
> 2. Make the changes then confirm with me that they look correct.
46+
> 3. Push the changes and start a pull request. Make sure to link this issue and the new PR.
4447
> ```
4548
4649
> ⚠️ **Warning:** Always verify the the actions Copilot is asking to perform, especially with the external abilities provided by an MCP server.
4750
48-
6. Follow Copilot's recommendations to make the changes and create a pull request.
49-
50-
- You can press the **Keep** buttons as changes are made. However, do **NOT** press the **Done** button, which will clear the context.
51-
- When the changes are finished, you can optionally preview the website to see if they worked. **This won't be checked.**
52-
- Remember, Copilot is conversational and iterative. You can always pause and provide additional guidance. Pausing is also useful if Copilot is acting slow. The servers might be busy! 🕝
53-
5451
7. Once the pull request is created, Mona will start checking your work. Give her a moment and keep watch of the comments. You will see her respond with progress info and the next step!
5552
5653
<details>

.github/steps/4-step.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ While AI assistants like GitHub Copilot can dramatically improve productivity, i
99
1010
### :keyboard: Activity: Review and merge the AI solution
1111

12-
1. Examine the new pull request Copilot helped create. **Tip:** open it in a new window.
12+
1. Open the new pull request created by Copilot in a new tab.
1313

1414
[![Examine the pull request](https://img.shields.io/badge/-Open%20Pull%20Request-1f883d?logo=github)]({{{pull_request_url}}})
1515

1616
> **Bonus:** If your Copilot subcription provides it, you can also use a specialised version of Copilot to [review the changes](https://docs.github.com/en/copilot/using-github-copilot/code-review/using-copilot-code-review?tool=webui).
1717
18-
2. Once you're satisfied with the changes, merge the pull request and verify the linked issue also closed.
18+
2. Review the changes. When you are satisfied, merge the pull request and verify the linked issue also closed.
1919

2020
3. Return to VS code and the active **Copilot Chat** session.
2121

22-
> 🪧 **Tip:** If you previously clicked Done and need to return to a previous conversation, use the **Show Chats** button at the top of the Copilot Chat panel.
22+
> 🪧 **Tip:** If you previously clicked Done and need to return to a previous conversation, use the **Show Chats** button at the top of the Copilot Chat panel to restore it.
2323
2424
4. Ask Copilot to add a comment to the issue we just finished, and to say thanks for the comments and ideas.
2525

.github/workflows/0-start-exercise.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ permissions:
1010
actions: write # Disable/enable workflows
1111
issues: write # Create issue and comment on issues
1212

13-
1413
env:
1514
STEP_1_FILE: ".github/steps/1-step.md"
1615

@@ -22,8 +21,7 @@ jobs:
2221
uses: skills/exercise-toolkit/.github/workflows/start-exercise.yml@v0.2.0
2322
with:
2423
exercise-title: "Integrate MCP with Copilot"
25-
intro-message: "Welcome to the exercise! This exercise will help you learn how to integrate the Model Context Protocol (MCP) with GitHub Copilot."
26-
24+
intro-message: "This exercise will help you learn how to expand GitHub Copilot's capabilities with a Model Context Protocol (MCP)."
2725

2826
post_next_step_content:
2927
name: Post next step content
@@ -32,7 +30,6 @@ jobs:
3230
env:
3331
ISSUE_URL: ${{ needs.start_exercise.outputs.issue-url }}
3432

35-
3633
steps:
3734
- name: Checkout
3835
uses: actions/checkout@v4

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
# Integrate MCP with GitHub Copilot
22

3-
_Learn how to integrate Model Context Protocol (MCP) with GitHub Copilot in less than an hour._
3+
_Learn how to give GitHub Copilot more tools to expand the capabilities of your development workflow. All in less than an hour!_
44

55
## Welcome
66

77
- **Who is this for**: Developers looking to enhance their AI-assisted workflows, GitHub Copilot users, and AI enthusiasts.
8-
- **What you'll learn**: We'll introduce MCP basics, GitHub MCP server setup, and integration with Copilot Agent Mode.
9-
- **What you'll build**: You will fix a bug that was reported on your website's repository.
8+
- **What you'll learn**: We'll introduce MCP basics, a GitHub MCP server setup, and integration with Copilot Agent Mode.
9+
- **What you'll build**: A mixed development workflow that uses GitHub Copilot to manage issues while upgrading the extra curricular activities website for Mergington High School.
1010
- **Prerequisites**: [Getting Started with Copilot](https://github.com/skills/getting-started-with-github-copilot) Exercise
1111
- **How long**: This exercise takes less than one hour to complete.
1212

1313
In this exercise, you will:
1414

15-
1. Configure a GitHub MCP server
16-
2. Integrate MCP with GitHub Copilot Agent Mode
17-
3. Learn how to use MCP Servers to supercharge your workflow.
15+
1. Integrate a GitHub MCP server with GitHub Copilot.
16+
2. Delegate Copilot to research similar projects and open issues.
17+
3. Ask Copilot to find an important issue and implement it from idea to pull request.
18+
4. Add comments to a recently closed issue.
1819

1920
### How to start this exercise
2021

2122
> [!IMPORTANT]
22-
> This exercise may not explain the Copilot basics that were introduced in the [Getting Started with Copilot](https://github.com/skills/getting-started-with-github-copilot) exercise. If you are new to
23-
Copilot we recommend starting with that one.
23+
> This exercise may not explain the Copilot basics that were introduced in the [Getting Started with Copilot](https://github.com/skills/getting-started-with-github-copilot) exercise. If you are new to Copilot we recommend starting with that one.
2424
2525
Simply copy the exercise to your account, then give your favorite Octocat (Mona) **about 20 seconds** to prepare the first lesson, then **refresh the page**.
2626

0 commit comments

Comments
 (0)