giu-mcp 0.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
giu_mcp-0.2.0/LICENSE ADDED
@@ -0,0 +1,75 @@
1
+ Required Notice: Copyright (c) 2026 Youssef-Hany-codes (https://github.com/Youssef-Hany-codes/GIU-MCP)
2
+
3
+ # PolyForm Noncommercial License 1.0.0
4
+
5
+ <https://polyformproject.org/licenses/noncommercial/1.0.0>
6
+
7
+ ## Acceptance
8
+
9
+ In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
10
+
11
+ ## Copyright License
12
+
13
+ The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it for any permitted purpose. However, you may only distribute the software according to [Distribution License](#distribution-license) and make changes or new works based on the software according to [Changes and New Works License](#changes-and-new-works-license).
14
+
15
+ ## Distribution License
16
+
17
+ The licensor grants you an additional copyright license to distribute copies of the software. Your license to distribute covers distributing the software with changes and new works permitted by [Changes and New Works License](#changes-and-new-works-license).
18
+
19
+ ## Notices
20
+
21
+ You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with `Required Notice:` that the licensor provided with the software. For example:
22
+
23
+ > Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
24
+
25
+ ## Changes and New Works License
26
+
27
+ The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose.
28
+
29
+ ## Patent License
30
+
31
+ The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software.
32
+
33
+ ## Noncommercial Purposes
34
+
35
+ Any noncommercial purpose is a permitted purpose.
36
+
37
+ ## Personal Uses
38
+
39
+ Personal use for research, experiment, and testing for the benefit of public knowledge, personal study, private entertainment, hobby projects, amateur pursuits, or religious observance, without any anticipated commercial application, is use for a permitted purpose.
40
+
41
+ ## Noncommercial Organizations
42
+
43
+ Use by any charitable organization, educational institution, public research organization, public safety or health organization, environmental protection organization, or government institution is use for a permitted purpose regardless of the source of funding or obligations resulting from the funding.
44
+
45
+ ## Fair Use
46
+
47
+ You may have "fair use" rights for the software under the law. These terms do not limit them.
48
+
49
+ ## No Other Rights
50
+
51
+ These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses.
52
+
53
+ ## Patent Defense
54
+
55
+ If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
56
+
57
+ ## Violations
58
+
59
+ The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice. Otherwise, all your licenses end immediately.
60
+
61
+ ## No Liability
62
+
63
+ ***As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.***
64
+
65
+ ## Definitions
66
+
67
+ The **licensor** is the individual or entity offering these terms, and the **software** is the software the licensor makes available under these terms.
68
+
69
+ **You** refers to the individual or entity agreeing to these terms.
70
+
71
+ **Your company** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. **Control** means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
72
+
73
+ **Your licenses** are all the licenses granted to you for the software under these terms.
74
+
75
+ **Use** means anything you do with the software requiring one of your licenses.
giu_mcp-0.2.0/PKG-INFO ADDED
@@ -0,0 +1,260 @@
1
+ Metadata-Version: 2.4
2
+ Name: giu-mcp
3
+ Version: 0.2.0
4
+ Summary: MCP server for the GIU student portal and CMS
5
+ License-Expression: PolyForm-Noncommercial-1.0.0
6
+ Project-URL: Homepage, https://github.com/Youssef-Hany-codes/GIU-MCP
7
+ Project-URL: Issues, https://github.com/Youssef-Hany-codes/GIU-MCP/issues
8
+ Keywords: mcp,giu,german international university,student portal,cms
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Operating System :: OS Independent
11
+ Classifier: Topic :: Education
12
+ Requires-Python: >=3.11
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE
15
+ Requires-Dist: mcp<3,>=2.3
16
+ Requires-Dist: requests>=2.32
17
+ Requires-Dist: requests-ntlm>=1.3
18
+ Requires-Dist: beautifulsoup4>=4.12
19
+ Requires-Dist: lxml>=5
20
+ Requires-Dist: python-dotenv>=1
21
+ Requires-Dist: pypdf>=5
22
+ Requires-Dist: python-pptx>=1
23
+ Requires-Dist: python-docx>=1.1
24
+ Requires-Dist: keyring>=25
25
+ Dynamic: license-file
26
+
27
+ <h1 align="center">
28
+ <picture>
29
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/Youssef-Hany-codes/GIU-MCP/main/assets/png/giu-mcp-horizontal-dark.png">
30
+ <img src="https://raw.githubusercontent.com/Youssef-Hany-codes/GIU-MCP/main/assets/png/giu-mcp-horizontal.png" alt="GIU MCP" width="420">
31
+ </picture>
32
+ </h1>
33
+
34
+ Let your AI assistant read **your own** GIU student portal (`portal.giu-uni.de`) and CMS
35
+ (`cms.giu-uni.de`). Ask things like *"what's my schedule tomorrow?"*, *"how am I doing in
36
+ Databases?"*, *"summarise this week's lecture slides"* or *"download all OS lab manuals"*.
37
+
38
+ It works with any AI app that supports local MCP servers: Claude Code, Claude Desktop,
39
+ Cursor, VS Code (Copilot agent mode), Windsurf, Gemini CLI, OpenAI Codex CLI, LM Studio
40
+ and others.
41
+
42
+ <p align="center">
43
+ <a href="https://github.com/Youssef-Hany-codes/GIU-MCP/releases/latest/download/giu-mcp.mcpb">
44
+ <img src="https://raw.githubusercontent.com/Youssef-Hany-codes/GIU-MCP/main/assets/download-button.svg" alt="Download for Claude Desktop" width="420">
45
+ </a>
46
+ <br>
47
+ <sub>Other AI apps: <code>uvx giu-mcp login</code> · <a href="#any-other-ai-app-claude-code-cursor-vs-code-">setup guide</a></sub>
48
+ <br><br>
49
+ <a href="https://pypi.org/project/giu-mcp/"><img src="https://img.shields.io/pypi/v/giu-mcp?label=PyPI&color=1A1A1A" alt="PyPI"></a>
50
+ <a href="https://github.com/Youssef-Hany-codes/GIU-MCP/releases/latest"><img src="https://img.shields.io/github/v/release/Youssef-Hany-codes/GIU-MCP?label=release&color=DD0000" alt="Latest release"></a>
51
+ </p>
52
+
53
+ > **Unofficial.** This is a student project, not made or endorsed by GIU. It reads the
54
+ > same pages you see in your browser, signed in as you.
55
+ >
56
+ > **Free for personal and non-commercial use.** If you share it or build on it, keep the
57
+ > credit line. Commercial use needs permission first. See [License](#license).
58
+
59
+ ## Your account and your data stay with you
60
+
61
+ - Every student runs their **own copy** on their own computer with their **own** GIU
62
+ username and password. Nobody else, including whoever shared this with you, ever sees
63
+ your password or your data.
64
+ - Your password is kept in secure storage, never a plain file: the Claude Desktop
65
+ extension uses the app's secure storage, and `giu-mcp login` uses your operating
66
+ system's credential store (Windows Credential Manager / macOS Keychain / Linux Secret
67
+ Service).
68
+ - Your password is only ever sent to `portal.giu-uni.de` and `cms.giu-uni.de`. Every
69
+ redirect is checked first, so it is never sent anywhere else.
70
+ - **Read-only.** It never submits anything: no registration, evaluations, excuses,
71
+ uploads or payments. The only thing it writes is files you ask it to download, saved
72
+ to your own Downloads folder.
73
+
74
+ ## Install
75
+
76
+ ### Claude Desktop: no terminal
77
+
78
+ 1. **[Download giu-mcp.mcpb](https://github.com/Youssef-Hany-codes/GIU-MCP/releases/latest/download/giu-mcp.mcpb)**
79
+ (always the newest version).
80
+ 2. In Claude Desktop, open **Settings → Desktop app → Extensions → Advanced settings**,
81
+ click **Install extension**, and pick the file you downloaded.
82
+
83
+ <img src="https://raw.githubusercontent.com/Youssef-Hany-codes/GIU-MCP/main/assets/screenshots/install-extension.png" alt="Claude settings: Desktop app, then Extensions, Advanced settings, Install extension" width="640">
84
+
85
+ Double-clicking the file only works on some installs. On Windows, the Microsoft
86
+ Store version of Claude doesn't register `.mcpb` files, so Windows will say it has
87
+ no app to open it.
88
+ 3. Fill in your **GIU username and password**, the same ones you use on the portal, then
89
+ click **Save** and enable the extension.
90
+
91
+ <img src="https://raw.githubusercontent.com/Youssef-Hany-codes/GIU-MCP/main/assets/screenshots/configure-form.png" alt="The GIU MCP settings form: GIU username, GIU password, optional download folder" width="480">
92
+
93
+ That's it: you don't need to install Python or anything else first. The very first start
94
+ takes a few seconds while Claude Desktop sets it up. To change your password later, go to
95
+ **Settings → Desktop app → Extensions → GIU MCP → Configure**.
96
+
97
+ ### Any other AI app (Claude Code, Cursor, VS Code, …)
98
+
99
+ You need [uv](https://docs.astral.sh/uv/). It also installs Python for you, so nothing
100
+ else is required. Install it once:
101
+
102
+ ```powershell
103
+ # Windows (macOS/Linux: curl -LsSf https://astral.sh/uv/install.sh | sh)
104
+ powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
105
+ ```
106
+
107
+ Then, in a new terminal (about 2 minutes):
108
+
109
+ ```powershell
110
+ uvx giu-mcp login # asks for your GIU username + password, checks them, saves them securely
111
+ uvx giu-mcp status # optional: confirms the portal and CMS both work
112
+ uvx giu-mcp config # prints the exact snippet for your AI app
113
+ ```
114
+
115
+ `uvx` downloads `giu-mcp` from [PyPI](https://pypi.org/project/giu-mcp/) and runs it; there
116
+ is no separate install step. Use the same username and password as the browser sign-in
117
+ box on the portal. To get a newer version later, run `uvx --refresh giu-mcp --version`
118
+ and restart your AI app.
119
+
120
+ > Prefer a permanent install? `uv tool install giu-mcp` (or `pipx install giu-mcp`), then
121
+ > use `giu-mcp login` / `giu-mcp config` without the `uvx`.
122
+
123
+ Then add the server to your app with the snippet `config` printed:
124
+
125
+ - **Claude Code:** run the printed `claude mcp add giu …` command once.
126
+ - **Claude Desktop:** Settings → Developer → Edit Config, paste the `"giu"` entry inside
127
+ `"mcpServers"`, then restart Claude Desktop.
128
+ - **Cursor / Windsurf / Gemini CLI / most others:** the same `"mcpServers"` JSON in that
129
+ app's MCP config file.
130
+ - **VS Code:** `uvx giu-mcp config vscode`. **Codex CLI:** `uvx giu-mcp config codex`.
131
+
132
+ Restart the app, and the GIU tools will show up. To switch accounts, run
133
+ `uvx giu-mcp login` again. To remove yours, run `uvx giu-mcp logout`.
134
+
135
+ ## What it can do
136
+
137
+ | Tool | What it returns |
138
+ | --- | --- |
139
+ | `giu_profile` | Name, student ID, username, faculty, major |
140
+ | `portal_schedule` | Your weekly timetable (day → period → course, room, group, type) |
141
+ | `portal_group_schedule` | Timetable of any study group (empty = list groups) |
142
+ | `portal_grades` | This semester's midterm % per course + every quiz/assignment score |
143
+ | `portal_previous_grades` | The same for a past season (empty = list seasons) |
144
+ | `portal_transcript` | Final grades, hours and cumulative GPA, by semester |
145
+ | `portal_attendance` | Absence warning levels, attended/absent counts, every session |
146
+ | `portal_exam_seats` | Exam date, time, hall and seat |
147
+ | `cms_courses` | Your CMS courses (current or all seasons) |
148
+ | `cms_course_content` | Course announcement + weekly items (slides, assignments, videos) |
149
+ | `cms_whats_new` | Unopened content per course and the latest posts |
150
+ | `cms_notifications` | Recent CMS notifications |
151
+ | `cms_read_file` | Text of a course PDF / PPTX / DOCX so the AI can summarise or quiz you |
152
+ | `cms_download` | Save course files to `~/Downloads/GIU/<course>/<week>/` |
153
+
154
+ Courses can be named loosely: `"INCS101"`, `"databases"`, `"German"`.
155
+
156
+ ### Ready-made prompts
157
+
158
+ In apps that support MCP prompts, these show up as commands you can pick from a menu.
159
+ In Claude Desktop they're in the **+** menu; in Claude Code, type `/mcp__giu__` and pick
160
+ one.
161
+
162
+ | Prompt | What it does |
163
+ | --- | --- |
164
+ | `weekly_briefing` | Classes, deadlines, new CMS content, grades, absence warnings and exams in one summary |
165
+ | `whats_due` | Every upcoming deadline, quiz and exam across your courses, as a dated table |
166
+ | `quiz_me` | Quizzes you one question at a time on a lecture or topic (`course`, optional `topic`) |
167
+ | `summarize_lecture` | Main ideas, definitions, an example and self-check questions (`course`, optional `lecture`) |
168
+ | `exam_prep` | A day-by-day study plan for a course's exam (`course`, optional `exam_date`) |
169
+
170
+ In apps without prompt menus, just ask in your own words, e.g. *"quiz me on the latest
171
+ Databases lecture"*.
172
+
173
+ ## Settings
174
+
175
+ All optional. Set them as environment variables, or in a `.env` file in the config
176
+ folder (`uvx giu-mcp status` shows where that is).
177
+
178
+ | Variable | Meaning |
179
+ | --- | --- |
180
+ | `GIU_USERNAME`, `GIU_PASSWORD` | Use these instead of the account saved by `giu-mcp login` |
181
+ | `GIU_DOMAIN` | Windows domain, only if sign-in fails without it |
182
+ | `GIU_DOWNLOAD_DIR` | Where `cms_download` saves files (default `~/Downloads/GIU`) |
183
+ | `GIU_TIMEOUT` | Request timeout in seconds (default 45) |
184
+
185
+ ## Troubleshooting
186
+
187
+ - **"No GIU account is set up"**: run `uvx giu-mcp login` in a terminal. With the
188
+ Claude Desktop extension, fill in Settings → Desktop app → Extensions → GIU MCP → Configure instead.
189
+ - **"GIU rejected the username/password"**: your password probably changed. Update it
190
+ in Settings → Desktop app → Extensions → GIU MCP → Configure (extension) or run `uvx giu-mcp login` again.
191
+ - **A tool returns a "Portal message"**: that page is closed on the portal right now
192
+ (for example, outside its registration or evaluation window).
193
+ - **Tools disappeared after an update**: restart the AI app.
194
+
195
+ ## Reporting problems
196
+
197
+ If a tool breaks or shows wrong data, GIU probably changed that page.
198
+ [Open an issue](https://github.com/Youssef-Hany-codes/GIU-MCP/issues) saying which tool
199
+ and what went wrong. **Don't paste your password, grades or other personal data** into
200
+ the issue.
201
+
202
+ ## For developers
203
+
204
+ ```powershell
205
+ git clone https://github.com/Youssef-Hany-codes/GIU-MCP
206
+ cd GIU-MCP
207
+ python -m venv .venv
208
+ .venv\Scripts\python.exe -m pip install -e .
209
+ .venv\Scripts\giu-mcp.exe login
210
+ .venv\Scripts\python.exe scripts\smoke_test.py # calls every tool for your account
211
+ ```
212
+
213
+ - `giu_mcp/client.py`: one `requests` session with NTLM auth. Redirects are followed by
214
+ hand so each hop is host-checked before the handshake. It also replays ASP.NET WebForms
215
+ postbacks for the "choose a course / season / year" dropdowns. The portal only sets up
216
+ its session once `Home.aspx` loads, so the client opens that page first.
217
+ - `giu_mcp/portal.py`, `giu_mcp/cms.py`: HTML scrapers for each page.
218
+ - `giu_mcp/server.py`: the MCP tools (Python MCP SDK 2.x, stdio transport).
219
+ - `giu_mcp/credentials.py`, `giu_mcp/config.py`, `giu_mcp/cli.py`: per-user account
220
+ storage and the `giu-mcp` command.
221
+ - `scripts/discover.py`: a read-only crawler that saves your pages to `.discovery/`
222
+ (git-ignored, it holds personal data), for fixing scrapers when GIU changes a page.
223
+ - `scripts/smoke_test.py`: calls every tool against the live sites for whichever account
224
+ is signed in. It picks courses and seasons from that account, so it works for anyone.
225
+ - `giu_mcp/prompts.py`: the ready-made prompts.
226
+
227
+ ### Building the Claude Desktop extension
228
+
229
+ ```powershell
230
+ .venv\Scripts\python.exe -m pip install uv # also needs Node.js, for the packer
231
+ .venv\Scripts\python.exe scripts\build_extension.py # -> dist\giu-mcp-<version>.mcpb
232
+ ```
233
+
234
+ The extension uses the MCPB `uv` server type: Claude Desktop installs Python and the
235
+ locked dependencies itself, so one `.mcpb` file works on Windows, macOS and Linux.
236
+ `scripts/build_extension.py` copies only an allow-list of files (never `.env` or
237
+ `.discovery/`). It also generates `manifest.json`, including the tool and prompt lists,
238
+ from the server itself, so the manifest can't drift from the code.
239
+
240
+ ### Logo
241
+
242
+ The logo files live in `assets/` (SVG and PNG; colours `#1A1A1A`, `#DD0000`,
243
+ `#FFCE00`). `scripts/make_brand_assets.py` regenerates the extension icon, the MCP
244
+ server icon and `assets/social-preview.png` from them. Run it again after changing the
245
+ logo, then rebuild the extension.
246
+
247
+ ## License
248
+
249
+ [PolyForm Noncommercial 1.0.0](https://github.com/Youssef-Hany-codes/GIU-MCP/blob/main/LICENSE). In plain words (the license text is what counts):
250
+
251
+ - **You can** use, copy, modify and share it for any non-commercial purpose: personal
252
+ use, study, student clubs, schools and universities.
253
+ - **You must** give credit. Anyone you pass it on to, changed or not, must also get the
254
+ license terms and this line:
255
+
256
+ `Required Notice: Copyright (c) 2026 Youssef-Hany-codes (https://github.com/Youssef-Hany-codes/GIU-MCP)`
257
+
258
+ - **You need permission** for any commercial use, such as selling it, putting it in a
259
+ paid product or service, or using it at a company. Ask through
260
+ [GitHub](https://github.com/Youssef-Hany-codes).
@@ -0,0 +1,234 @@
1
+ <h1 align="center">
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/Youssef-Hany-codes/GIU-MCP/main/assets/png/giu-mcp-horizontal-dark.png">
4
+ <img src="https://raw.githubusercontent.com/Youssef-Hany-codes/GIU-MCP/main/assets/png/giu-mcp-horizontal.png" alt="GIU MCP" width="420">
5
+ </picture>
6
+ </h1>
7
+
8
+ Let your AI assistant read **your own** GIU student portal (`portal.giu-uni.de`) and CMS
9
+ (`cms.giu-uni.de`). Ask things like *"what's my schedule tomorrow?"*, *"how am I doing in
10
+ Databases?"*, *"summarise this week's lecture slides"* or *"download all OS lab manuals"*.
11
+
12
+ It works with any AI app that supports local MCP servers: Claude Code, Claude Desktop,
13
+ Cursor, VS Code (Copilot agent mode), Windsurf, Gemini CLI, OpenAI Codex CLI, LM Studio
14
+ and others.
15
+
16
+ <p align="center">
17
+ <a href="https://github.com/Youssef-Hany-codes/GIU-MCP/releases/latest/download/giu-mcp.mcpb">
18
+ <img src="https://raw.githubusercontent.com/Youssef-Hany-codes/GIU-MCP/main/assets/download-button.svg" alt="Download for Claude Desktop" width="420">
19
+ </a>
20
+ <br>
21
+ <sub>Other AI apps: <code>uvx giu-mcp login</code> · <a href="#any-other-ai-app-claude-code-cursor-vs-code-">setup guide</a></sub>
22
+ <br><br>
23
+ <a href="https://pypi.org/project/giu-mcp/"><img src="https://img.shields.io/pypi/v/giu-mcp?label=PyPI&color=1A1A1A" alt="PyPI"></a>
24
+ <a href="https://github.com/Youssef-Hany-codes/GIU-MCP/releases/latest"><img src="https://img.shields.io/github/v/release/Youssef-Hany-codes/GIU-MCP?label=release&color=DD0000" alt="Latest release"></a>
25
+ </p>
26
+
27
+ > **Unofficial.** This is a student project, not made or endorsed by GIU. It reads the
28
+ > same pages you see in your browser, signed in as you.
29
+ >
30
+ > **Free for personal and non-commercial use.** If you share it or build on it, keep the
31
+ > credit line. Commercial use needs permission first. See [License](#license).
32
+
33
+ ## Your account and your data stay with you
34
+
35
+ - Every student runs their **own copy** on their own computer with their **own** GIU
36
+ username and password. Nobody else, including whoever shared this with you, ever sees
37
+ your password or your data.
38
+ - Your password is kept in secure storage, never a plain file: the Claude Desktop
39
+ extension uses the app's secure storage, and `giu-mcp login` uses your operating
40
+ system's credential store (Windows Credential Manager / macOS Keychain / Linux Secret
41
+ Service).
42
+ - Your password is only ever sent to `portal.giu-uni.de` and `cms.giu-uni.de`. Every
43
+ redirect is checked first, so it is never sent anywhere else.
44
+ - **Read-only.** It never submits anything: no registration, evaluations, excuses,
45
+ uploads or payments. The only thing it writes is files you ask it to download, saved
46
+ to your own Downloads folder.
47
+
48
+ ## Install
49
+
50
+ ### Claude Desktop: no terminal
51
+
52
+ 1. **[Download giu-mcp.mcpb](https://github.com/Youssef-Hany-codes/GIU-MCP/releases/latest/download/giu-mcp.mcpb)**
53
+ (always the newest version).
54
+ 2. In Claude Desktop, open **Settings → Desktop app → Extensions → Advanced settings**,
55
+ click **Install extension**, and pick the file you downloaded.
56
+
57
+ <img src="https://raw.githubusercontent.com/Youssef-Hany-codes/GIU-MCP/main/assets/screenshots/install-extension.png" alt="Claude settings: Desktop app, then Extensions, Advanced settings, Install extension" width="640">
58
+
59
+ Double-clicking the file only works on some installs. On Windows, the Microsoft
60
+ Store version of Claude doesn't register `.mcpb` files, so Windows will say it has
61
+ no app to open it.
62
+ 3. Fill in your **GIU username and password**, the same ones you use on the portal, then
63
+ click **Save** and enable the extension.
64
+
65
+ <img src="https://raw.githubusercontent.com/Youssef-Hany-codes/GIU-MCP/main/assets/screenshots/configure-form.png" alt="The GIU MCP settings form: GIU username, GIU password, optional download folder" width="480">
66
+
67
+ That's it: you don't need to install Python or anything else first. The very first start
68
+ takes a few seconds while Claude Desktop sets it up. To change your password later, go to
69
+ **Settings → Desktop app → Extensions → GIU MCP → Configure**.
70
+
71
+ ### Any other AI app (Claude Code, Cursor, VS Code, …)
72
+
73
+ You need [uv](https://docs.astral.sh/uv/). It also installs Python for you, so nothing
74
+ else is required. Install it once:
75
+
76
+ ```powershell
77
+ # Windows (macOS/Linux: curl -LsSf https://astral.sh/uv/install.sh | sh)
78
+ powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
79
+ ```
80
+
81
+ Then, in a new terminal (about 2 minutes):
82
+
83
+ ```powershell
84
+ uvx giu-mcp login # asks for your GIU username + password, checks them, saves them securely
85
+ uvx giu-mcp status # optional: confirms the portal and CMS both work
86
+ uvx giu-mcp config # prints the exact snippet for your AI app
87
+ ```
88
+
89
+ `uvx` downloads `giu-mcp` from [PyPI](https://pypi.org/project/giu-mcp/) and runs it; there
90
+ is no separate install step. Use the same username and password as the browser sign-in
91
+ box on the portal. To get a newer version later, run `uvx --refresh giu-mcp --version`
92
+ and restart your AI app.
93
+
94
+ > Prefer a permanent install? `uv tool install giu-mcp` (or `pipx install giu-mcp`), then
95
+ > use `giu-mcp login` / `giu-mcp config` without the `uvx`.
96
+
97
+ Then add the server to your app with the snippet `config` printed:
98
+
99
+ - **Claude Code:** run the printed `claude mcp add giu …` command once.
100
+ - **Claude Desktop:** Settings → Developer → Edit Config, paste the `"giu"` entry inside
101
+ `"mcpServers"`, then restart Claude Desktop.
102
+ - **Cursor / Windsurf / Gemini CLI / most others:** the same `"mcpServers"` JSON in that
103
+ app's MCP config file.
104
+ - **VS Code:** `uvx giu-mcp config vscode`. **Codex CLI:** `uvx giu-mcp config codex`.
105
+
106
+ Restart the app, and the GIU tools will show up. To switch accounts, run
107
+ `uvx giu-mcp login` again. To remove yours, run `uvx giu-mcp logout`.
108
+
109
+ ## What it can do
110
+
111
+ | Tool | What it returns |
112
+ | --- | --- |
113
+ | `giu_profile` | Name, student ID, username, faculty, major |
114
+ | `portal_schedule` | Your weekly timetable (day → period → course, room, group, type) |
115
+ | `portal_group_schedule` | Timetable of any study group (empty = list groups) |
116
+ | `portal_grades` | This semester's midterm % per course + every quiz/assignment score |
117
+ | `portal_previous_grades` | The same for a past season (empty = list seasons) |
118
+ | `portal_transcript` | Final grades, hours and cumulative GPA, by semester |
119
+ | `portal_attendance` | Absence warning levels, attended/absent counts, every session |
120
+ | `portal_exam_seats` | Exam date, time, hall and seat |
121
+ | `cms_courses` | Your CMS courses (current or all seasons) |
122
+ | `cms_course_content` | Course announcement + weekly items (slides, assignments, videos) |
123
+ | `cms_whats_new` | Unopened content per course and the latest posts |
124
+ | `cms_notifications` | Recent CMS notifications |
125
+ | `cms_read_file` | Text of a course PDF / PPTX / DOCX so the AI can summarise or quiz you |
126
+ | `cms_download` | Save course files to `~/Downloads/GIU/<course>/<week>/` |
127
+
128
+ Courses can be named loosely: `"INCS101"`, `"databases"`, `"German"`.
129
+
130
+ ### Ready-made prompts
131
+
132
+ In apps that support MCP prompts, these show up as commands you can pick from a menu.
133
+ In Claude Desktop they're in the **+** menu; in Claude Code, type `/mcp__giu__` and pick
134
+ one.
135
+
136
+ | Prompt | What it does |
137
+ | --- | --- |
138
+ | `weekly_briefing` | Classes, deadlines, new CMS content, grades, absence warnings and exams in one summary |
139
+ | `whats_due` | Every upcoming deadline, quiz and exam across your courses, as a dated table |
140
+ | `quiz_me` | Quizzes you one question at a time on a lecture or topic (`course`, optional `topic`) |
141
+ | `summarize_lecture` | Main ideas, definitions, an example and self-check questions (`course`, optional `lecture`) |
142
+ | `exam_prep` | A day-by-day study plan for a course's exam (`course`, optional `exam_date`) |
143
+
144
+ In apps without prompt menus, just ask in your own words, e.g. *"quiz me on the latest
145
+ Databases lecture"*.
146
+
147
+ ## Settings
148
+
149
+ All optional. Set them as environment variables, or in a `.env` file in the config
150
+ folder (`uvx giu-mcp status` shows where that is).
151
+
152
+ | Variable | Meaning |
153
+ | --- | --- |
154
+ | `GIU_USERNAME`, `GIU_PASSWORD` | Use these instead of the account saved by `giu-mcp login` |
155
+ | `GIU_DOMAIN` | Windows domain, only if sign-in fails without it |
156
+ | `GIU_DOWNLOAD_DIR` | Where `cms_download` saves files (default `~/Downloads/GIU`) |
157
+ | `GIU_TIMEOUT` | Request timeout in seconds (default 45) |
158
+
159
+ ## Troubleshooting
160
+
161
+ - **"No GIU account is set up"**: run `uvx giu-mcp login` in a terminal. With the
162
+ Claude Desktop extension, fill in Settings → Desktop app → Extensions → GIU MCP → Configure instead.
163
+ - **"GIU rejected the username/password"**: your password probably changed. Update it
164
+ in Settings → Desktop app → Extensions → GIU MCP → Configure (extension) or run `uvx giu-mcp login` again.
165
+ - **A tool returns a "Portal message"**: that page is closed on the portal right now
166
+ (for example, outside its registration or evaluation window).
167
+ - **Tools disappeared after an update**: restart the AI app.
168
+
169
+ ## Reporting problems
170
+
171
+ If a tool breaks or shows wrong data, GIU probably changed that page.
172
+ [Open an issue](https://github.com/Youssef-Hany-codes/GIU-MCP/issues) saying which tool
173
+ and what went wrong. **Don't paste your password, grades or other personal data** into
174
+ the issue.
175
+
176
+ ## For developers
177
+
178
+ ```powershell
179
+ git clone https://github.com/Youssef-Hany-codes/GIU-MCP
180
+ cd GIU-MCP
181
+ python -m venv .venv
182
+ .venv\Scripts\python.exe -m pip install -e .
183
+ .venv\Scripts\giu-mcp.exe login
184
+ .venv\Scripts\python.exe scripts\smoke_test.py # calls every tool for your account
185
+ ```
186
+
187
+ - `giu_mcp/client.py`: one `requests` session with NTLM auth. Redirects are followed by
188
+ hand so each hop is host-checked before the handshake. It also replays ASP.NET WebForms
189
+ postbacks for the "choose a course / season / year" dropdowns. The portal only sets up
190
+ its session once `Home.aspx` loads, so the client opens that page first.
191
+ - `giu_mcp/portal.py`, `giu_mcp/cms.py`: HTML scrapers for each page.
192
+ - `giu_mcp/server.py`: the MCP tools (Python MCP SDK 2.x, stdio transport).
193
+ - `giu_mcp/credentials.py`, `giu_mcp/config.py`, `giu_mcp/cli.py`: per-user account
194
+ storage and the `giu-mcp` command.
195
+ - `scripts/discover.py`: a read-only crawler that saves your pages to `.discovery/`
196
+ (git-ignored, it holds personal data), for fixing scrapers when GIU changes a page.
197
+ - `scripts/smoke_test.py`: calls every tool against the live sites for whichever account
198
+ is signed in. It picks courses and seasons from that account, so it works for anyone.
199
+ - `giu_mcp/prompts.py`: the ready-made prompts.
200
+
201
+ ### Building the Claude Desktop extension
202
+
203
+ ```powershell
204
+ .venv\Scripts\python.exe -m pip install uv # also needs Node.js, for the packer
205
+ .venv\Scripts\python.exe scripts\build_extension.py # -> dist\giu-mcp-<version>.mcpb
206
+ ```
207
+
208
+ The extension uses the MCPB `uv` server type: Claude Desktop installs Python and the
209
+ locked dependencies itself, so one `.mcpb` file works on Windows, macOS and Linux.
210
+ `scripts/build_extension.py` copies only an allow-list of files (never `.env` or
211
+ `.discovery/`). It also generates `manifest.json`, including the tool and prompt lists,
212
+ from the server itself, so the manifest can't drift from the code.
213
+
214
+ ### Logo
215
+
216
+ The logo files live in `assets/` (SVG and PNG; colours `#1A1A1A`, `#DD0000`,
217
+ `#FFCE00`). `scripts/make_brand_assets.py` regenerates the extension icon, the MCP
218
+ server icon and `assets/social-preview.png` from them. Run it again after changing the
219
+ logo, then rebuild the extension.
220
+
221
+ ## License
222
+
223
+ [PolyForm Noncommercial 1.0.0](https://github.com/Youssef-Hany-codes/GIU-MCP/blob/main/LICENSE). In plain words (the license text is what counts):
224
+
225
+ - **You can** use, copy, modify and share it for any non-commercial purpose: personal
226
+ use, study, student clubs, schools and universities.
227
+ - **You must** give credit. Anyone you pass it on to, changed or not, must also get the
228
+ license terms and this line:
229
+
230
+ `Required Notice: Copyright (c) 2026 Youssef-Hany-codes (https://github.com/Youssef-Hany-codes/GIU-MCP)`
231
+
232
+ - **You need permission** for any commercial use, such as selling it, putting it in a
233
+ paid product or service, or using it at a company. Ask through
234
+ [GitHub](https://github.com/Youssef-Hany-codes).
@@ -0,0 +1,3 @@
1
+ """MCP server for the GIU student portal (portal.giu-uni.de) and CMS (cms.giu-uni.de)."""
2
+
3
+ __version__ = "0.2.0"
@@ -0,0 +1,5 @@
1
+ import sys
2
+
3
+ from .cli import main
4
+
5
+ sys.exit(main())