Skip to content

Feature/basic mcp scaffold#4

Merged
abeckDev merged 8 commits intomainfrom
feature/basic-mcp-scaffold
Nov 5, 2025
Merged

Feature/basic mcp scaffold#4
abeckDev merged 8 commits intomainfrom
feature/basic-mcp-scaffold

Conversation

@abeckDev
Copy link
Copy Markdown
Owner

@abeckDev abeckDev commented Nov 5, 2025

Human Summary

Added basic MCP Server scaffold.

Copilot Summary

This pull request introduces a new .NET 9.0 web API project (AbeckDev.DbTimetable.Mcp) that acts as a Model Context Protocol (MCP) server for accessing the Deutsche Bahn Timetable API. It also adds a full development container and VS Code configuration for streamlined local development and debugging. The main changes include project scaffolding, service and tool implementation for the Deutsche Bahn API, and enhancements to the development environment.

Project scaffolding and Deutsche Bahn API integration:

  • Added a new .NET 9.0 web project (AbeckDev.DbTimetable.Mcp) with configuration for the Deutsche Bahn Timetable API, including API key management and HTTP client setup. [1] [2] [3] [4] [5]
  • Implemented TimeTableService to interact with the Deutsche Bahn API, providing methods to fetch timetable changes, station boards, and station information.
  • Created MCP server tools and prompts to expose Deutsche Bahn API functionality via the MCP protocol, including error handling and input validation. [1] [2]

Development environment and tooling:

  • Added a full devcontainer configuration with Node.js and Azure CLI features, port forwarding, and a post-create command to install the MCP Inspector globally.
  • Added VS Code settings, tasks, and launch configurations for building, running, and debugging the MCP server with the Inspector tool. [1] [2] [3]
  • Added solution and project files for Visual Studio compatibility. [1] [2]

These changes collectively provide a ready-to-use MCP server for Deutsche Bahn timetable data, with a robust local development setup.

@abeckDev abeckDev requested a review from Copilot November 5, 2025 21:01
@abeckDev abeckDev self-assigned this Nov 5, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a Model Context Protocol (MCP) server implementation for the Deutsche Bahn Timetable API, providing tools to query train schedules, delays, and station information.

  • Creates an ASP.NET Core MCP server that exposes Deutsche Bahn Timetable API functionality through HTTP transport
  • Implements four tool methods for querying timetables, station boards, recent changes, and station details
  • Configures development environment with VS Code tasks, debug configurations, and devcontainer settings

Reviewed Changes

Copilot reviewed 14 out of 15 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
AbeckDev.DbTimetable.sln New Visual Studio solution file for the project
AbeckDev.DbTimetable.Mcp/AbeckDev.DbTimetable.Mcp.csproj Project file with .NET 9.0 target and MCP package references
AbeckDev.DbTimetable.Mcp/Program.cs Application entry point configuring MCP server with HTTP transport and tools
AbeckDev.DbTimetable.Mcp/Tools.cs MCP tool definitions for Deutsche Bahn API operations
AbeckDev.DbTimetable.Mcp/Services/TimeTableService.cs Service class implementing Deutsche Bahn API HTTP requests
AbeckDev.DbTimetable.Mcp/Models/Configuration.cs Configuration model for API credentials
AbeckDev.DbTimetable.Mcp/Prompts.cs MCP prompt definitions
AbeckDev.DbTimetable.Mcp/appsettings.json Application configuration with API settings
AbeckDev.DbTimetable.Mcp/appsettings.Development.json Development environment logging configuration
AbeckDev.DbTimetable.Mcp/Properties/launchSettings.json Launch profiles for HTTP/HTTPS
.vscode/tasks.json VS Code tasks for building and running the server
.vscode/launch.json Debug configuration for MCP inspector
.vscode/settings.json VS Code workspace settings
.devcontainer/devcontainer.json Dev container configuration with Node.js and port forwarding
.gitignore Updated to exclude Development appsettings

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread AbeckDev.DbTimetable.Mcp/Tools.cs Outdated
Comment thread AbeckDev.DbTimetable.Mcp/Tools.cs
Comment thread AbeckDev.DbTimetable.Mcp/Services/TimeTableService.cs
Comment thread AbeckDev.DbTimetable.Mcp/Program.cs Outdated
Comment thread AbeckDev.DbTimetable.Mcp/Services/TimeTableService.cs Outdated
Comment thread AbeckDev.DbTimetable.Mcp/Tools.cs
Comment thread AbeckDev.DbTimetable.Mcp/Tools.cs
Comment thread AbeckDev.DbTimetable.Mcp/Tools.cs
Comment thread AbeckDev.DbTimetable.Mcp/Tools.cs
abeckDev and others added 3 commits November 5, 2025 22:06
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@abeckDev abeckDev merged commit 77873c0 into main Nov 5, 2025
@abeckDev abeckDev deleted the feature/basic-mcp-scaffold branch November 5, 2025 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants