Model Context Protocol (MCP) server providing integrated tools for Microsoft Team Foundation Server (TFS) operations and OpenWeatherMap API integration. Features include:
Project description
Swapnil MCP Server
A Model Context Protocol (MCP) server that provides automated utilities for Microsoft Visual Studio Team Foundation Server (TFS) repository management.
Features
- Access TFS (Team Foundation Server) repositories using authenticated PAT connections
- Retrieve detailed commit history with user filtering
- Get current weather information for any city worldwide through OpenWeatherMap API
Installation
pip install mistfs-mcp-server
Requirements
- Python 3.9 or higher
mcppackage version 1.2.0 or higher- Access to Microsoft Visual Studio Team Foundation Server
- Valid TFS Personal Access Token (PAT) with appropriate permissions
Usage
Starting the Server
# Run as a command
mistfs-mcp-server
# Or import in your Python code
from mistfs_tools.server import mcp
mcp.run()
Using with MCP Clients
This package implements the Model Context Protocol (MCP), allowing AI assistants and other MCP-compatible clients to interact with Team Foundation Server.
Example of how an MCP client might use this tool:
from mcp.client import Client
client = Client()
# Get repositories in a project
repos = await client.Get_Project_Repositories(project_name="MyProject")
print(repos) # List of repository names in MyProject
# Get commit history for a specific user
commits = await client.Get_Repository_Checkins(
project_name="MyProject",
repository_name="MyRepo",
userupn="user@company.com"
)
print(commits) # List of commits by the specified user
API Reference
Get_Project_Repositories
Retrieves repositories from a specified Microsoft Visual Studio Team Foundation Server project.
Parameters:
project_name(string, required): Name of the Microsoft Visual Studio Team Foundation Server project
Features:
- Authenticates using Personal Access Token (PAT)
- Makes HTTPS requests to TFS API
- Supports enterprise proxy configurations
- Includes detailed error handling and logging
Returns:
- List of repository names in the specified project, or an error message if the operation fails
Get_Repository_Checkins
Retrieves commit history from a specified repository in Microsoft Visual Studio Team Foundation Server.
Parameters:
project_name(string, required): Name of the project in Microsoft Visual Studio Team Foundation Serverrepository_name(string, required): Name of the repository to checkuserupn(string, required): User UPN to filter commits by author
Features:
- Filters commits by specific user
- Returns detailed commit information including IDs, authors, dates, and messages
- Requires TFS_PAT environment variable for authentication
- Supports secure HTTPS connections
- Includes proxy support for enterprise environments
- Comprehensive error handling and logging
Returns:
- List of commit details or appropriate error message
Available Tools
| Tool | Description |
|---|---|
| Get_Project_Repositories | Retrieve repositories from Microsoft Visual Studio Team Foundation Server using PAT authentication |
| Get_Repository_Checkins | Retrieve detailed commit history from TFS repositories with user filtering |
Development
Project Structure
mistfs-mcp-server/
├── src/
│ └── mistfs_tools/
│ ├── __init__.py
│ ├── __main__.py
│ └── server.py
├── LICENSE
├── README.md
└── pyproject.toml
Building and Publishing
python -m build
python -m twine upload dist/*
License
This project is licensed under the MIT License - see the LICENSE file for details.
Author
- Swapnil Dagade (swapnildagade@gmail.com)
Links
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mistfs_mcp_server-0.0.1.tar.gz.
File metadata
- Download URL: mistfs_mcp_server-0.0.1.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6f84ab99412184b7d2ee5f833249fb1c7bf7d5b793f285bf1c2e2e0852cf97f
|
|
| MD5 |
98b45996638e7150f2cb2bf9e3a2c401
|
|
| BLAKE2b-256 |
13ff818fa029451357d0388d4c8413ee270abc6003e5afdb6c959c7f9c024972
|
File details
Details for the file mistfs_mcp_server-0.0.1-py3-none-any.whl.
File metadata
- Download URL: mistfs_mcp_server-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4607635dc62f2ab4c70656f519afcd0a2f47d6a82bce7f8fe3eee416e663a98a
|
|
| MD5 |
375177352b5a07cfec55f3dcfcd2926d
|
|
| BLAKE2b-256 |
8da44e60f39109f1df1d71caf96af910f45f5ee60c3d1389e4133600fae998e7
|