Skip to content

Conversation

ribeirogab
Copy link
Owner

@ribeirogab ribeirogab commented Mar 28, 2025

This pull request enhances the documentation and provides a new implementation approach for MCP tools using classes.

Changes

  • Added a new class-based implementation example for MCP tools using the McpTool interface
  • Created a new example file examples/greet-class.ts demonstrating the class-based approach
  • Updated the main README to include documentation about class-based implementations
  • Updated imports to use the simple-mcp package from npm

These changes provide users with more flexibility when implementing MCP servers, allowing them to choose between functional and object-oriented programming styles.

@ribeirogab ribeirogab added the documentation Improvements or additions to documentation label Mar 28, 2025
@ribeirogab ribeirogab self-assigned this Mar 28, 2025
@ribeirogab ribeirogab changed the title Update docs feat: add class-based tool implementation for MCP server Mar 28, 2025
@ribeirogab ribeirogab merged commit 258b02c into main Mar 28, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant