GitHub Stars
1
User Rating
Not Rated
Favorites
0
Views
403
Forks
1
Issues
1
MCP - Dev.to
This project integrates with the Dev.to API to provide tools for interacting with articles, users, and other resources on the platform. It is built using .NET 9.0 and leverages the ModelContextProtocol framework for server-side tooling.
Features
- Fetch latest and top articles from Dev.to.
- Search articles by tag, username, or query.
- Retrieve detailed information about articles and users.
- Create and update articles on Dev.to.
- Format responses for better readability.
Project Structure
- mcp-devto: Main project containing the server and tool definitions.
- Service: Contains the
DevToServiceimplementation for interacting with the Dev.to API. - Model: (Placeholder for shared models, if needed in the future).
Prerequisites
- .NET 9.0 SDK
- Visual Studio 2022 or any compatible IDE.
- A valid Dev.to API key.
Setup
Clone the repository:
git clone <repository-url> cd mcp-devtoAdd your Dev.to API key to
appsettings.json:"DevTo": { "ApiKey": "your-api-key-here" }Restore dependencies:
dotnet restoreRun the project:
dotnet run --project mcp-devto/mcp-devto.csproj
Usage
HTTP Endpoints
The project exposes HTTP endpoints for interacting with the Dev.to API. Use the mcp-devto.http file for testing the endpoints with tools like REST Client.
MCP Server Tools
The project also provides tools accessible via the ModelContextProtocol server. These tools include:
GetLatestArticles: Fetch the latest articles.GetTopArticles: Fetch top articles.GetArticlesByTag: Fetch articles by a specific tag.GetArticleById: Fetch details of an article by its ID.CreateArticle: Create a new article.
Docker Support
The project includes a Dockerfile for containerization. To build and run the container:
Build the Docker image:
docker build -t mcp-devto .Run the container:
docker run -p 8080:8080 -p 8081:8081 mcp-devto
Contributing
Contributions are welcome! Please fork the repository and submit a pull request.
License
This project is licensed under the MIT License.
0
Followers
0
Repositories
0
Gists
0
Total Contributions
The collector-service is a data collection service built in C#. It aims to gather and organize information from various data sources. It provides an easy-to-use API designed for developers to integrate seamlessly. With error handling and logging features, it ensures reliable data collection.
AICalendar is a calendar management tool developed in C#. It features the ability to monitor specific ports and forcefully terminate processes. It also includes commands for updating Entity Framework tools, facilitating easy integration with databases. Overall, it focuses on developer-oriented functionalities, but there is a lack of information regarding user interface and usability.