WinFormsApp-MCP

WinFormsApp-MCP

By Robert-GitHubUserName GitHub

WinFormsApp-MCP Windows Forms application demonstrating Semantic Kernel with Model Context Protocol (MCP). Provides tool functionality for GitHub, GitLab, and filesystem operations. Works with ChatGPT models. API key required.

Overview

What is WinFormsApp-MCP?

WinFormsApp-MCP is a Windows Forms application that demonstrates the integration of the Semantic Kernel with the Model Context Protocol (MCP), enabling interactions with GitHub, GitLab, and filesystem operations using ChatGPT models.

How to use WinFormsApp-MCP?

To use WinFormsApp-MCP, clone the repository, open the solution in Visual Studio, configure your OpenAI API key and MCP settings, and run the application.

Key features of WinFormsApp-MCP?

  • Support for OpenAI (ChatGPT) models.
  • Tool functionality for accessing GitHub and GitLab repositories.
  • Filesystem operations with context-aware interactions.
  • Configuration options for API keys and model selection.

Use cases of WinFormsApp-MCP?

  1. Managing GitHub and GitLab repositories through a user-friendly interface.
  2. Performing filesystem operations with AI assistance.
  3. Integrating large language models into Windows applications for enhanced functionality.

FAQ from WinFormsApp-MCP?

  • What are the requirements to run WinFormsApp-MCP?

You need .NET 8.0 or later and an API key for OpenAI.

  • How do I configure the application?

You can configure the application through the settings interface or by setting environment variables for the API key and model ID.

  • Is there documentation available for the Model Context Protocol?

Yes, you can find the official MCP documentation and additional resources linked within the application.

Content

WinFormsApp-MCP

WinFormsApp-MCP is a Windows Forms application demonstrating Semantic Kernel with Model Context Protocol (MCP). It provides tool functionality for GitHub, GitLab, and filesystem operations, and works with ChatGPT models.

Overview

This application showcases the integration of large language models (LLMs) with Microsoft's Semantic Kernel framework, allowing models to interact with local and remote resources through the Model Context Protocol (MCP).

The implementation is based on the step-by-step guide from the Microsoft Semantic Kernel blog.

WinFormsApp-MCP Screenshot

Features

  • LLM Support:
    • OpenAI (ChatGPT) models
  • Tool Functionality:
    • GitLab repository access
    • GitHub repository access
    • Filesystem operations
    • Context-aware interactions

Requirements

  • .NET 8.0 or later
  • API key for OpenAI

Configuration

The application provides a settings interface to configure:

  • API key
  • Model selection
  • GitLab integration settings
  • Filesystem access controls

You can also configure the application using environment variables:

string? apiKey = Environment.GetEnvironmentVariable("OpenAI__ApiKey");
string? modelId = Environment.GetEnvironmentVariable("OpenAI__ChatModelId") ?? "gpt-4o-mini";

The application will check for these environment variables:

  • OpenAI__ApiKey: Your OpenAI API key
  • OpenAI__ChatModelId: The model to use (defaults to "gpt-4o-mini" if not specified)

Getting Started

  1. Clone the repository
  2. Open the solution in Visual Studio
  3. Add your API key in the Settings dialog or set it as an environment variable
  4. Configure MCP settings as needed
  5. Run the application

MCP Resources

License

[Include your license information here]

No tools information available.
No content found.