mcp-student-leave-copilot-ab
Manages student leave requests and approvals, integrated with GitHub Copilot for natural language interaction.
README
Student Leave MCP App With Github Copilot Agent
mcp-student-leave-copilot-ab (<domain>-student-leave-<client>-ab)
A lightweight MCP server in Node.js, integrated with Github Copilot, to manage student leave requests and approvals.
Getting Started
Create a project
mkdir mcp-student-leave-copilot-ab
cd mcp-student-leave-copilot-ab
npm init -y
npm i @modelcontextprotocol/sdk zod
node server.js
Student Leave MCP server (stdio) and Github Copilot agent ready!
Create server.js
Add npm scripts (optional)
{
"type": "module",
"scripts": {
"start": "node server.js"
}
}
Wire it up in Github Copilot (VS Code)
Github Copilot looks for MCP servers in its mcp.json
/Users/abhijeetgiram/Library/Application Support/Code/User/mcp.json
{
"servers": {
"mcp-student-leave-copilot-ab": {
"command": "node",
"args": [
"/Users/abhijeetgiram/Workspace/Personal/mcp-student-leave-copilot-ab/server.js"
],
"alwaysAllow": ["list_students", "get_student_details", "approve_leave"],
"disabled": false
}
}
}
Use it from Github Copilot
In a Github Copilot chat, just ask things like:
-
“Show me the student list.” → Github Copilot calls list_students
-
“Get details of E002.” → Github Copilot calls get_student_details with { id: "S002" }
-
“Approve leave L1002 for E002.” → Github Copilot calls approve_leave with { studentId: "S002", leaveId: "L2002" }
Model Context Protocol (MCP)
-
It’s a new open standard by Anthropic that defines how AI models, tools, and apps can talk to each other.
-
Think of it like a “plugin protocol” for AI assistants.
-
MCP Server = Your code (like the student leave manager we built).
-
MCP Client = Something that talks to the server (Github Copilot, Cline, Claude, or any AI agent).
-
They communicate over:
- stdio (local processes, great for Github Copilot in VS Code)
- or HTTP/WebSocket (remote deployment, so web apps / React can call it).
-
MCP turns your Node.js script into a “tool plugin” for AI assistants.
Mock data
{ "students": [ { "id": "S001", "name": "Rahul Sharma", "class": "10A", "leaveBalance": 12 }, { "id": "S002", "name": "Priya Desai", "class": "9B", "leaveBalance": 15 }, { "id": "S003", "name": "Ananya Gupta", "class": "11C", "leaveBalance": 10 } ], "leaves": [ { "id": "L2001", "studentId": "S001", "from": "2025-09-01", "to": "2025-09-02", "days": 2, "status": "pending" }, { "id": "L2002", "studentId": "S002", "from": "2025-09-05", "to": "2025-09-07", "days": 3, "status": "pending" } ] }
Miscellaneous
pwd
/Users/abhijeetgiram/Workspace/Personal/mcp-student-leave-copilot-ab
/Users/abhijeetgiram/Library/Application Support/Code/User/settings.json
To create a file on Mac using the command line, use the touch command. For example, to create a file named
touch mcp.json
You can also create and edit a file using nano:
nano mcp.json
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.