@piatra-open-source/piatra-mcp-server
v0.2.1
Published
MCP server interface to the PIATRA API
Downloads
6
Maintainers
Readme
piatra-mcp-server MCP Server
MCP server interface to the PIATRA API
Overview
This is a Model Context Protocol (MCP) server implementation for piatra-mcp-server. It provides tools and capabilities that can be used by MCP clients to interact with PIATRA API MCP.
Features
- Example Tool: A basic tool demonstrating the MCP server structure
- Add your custom tools and features here
Installation
From npm
npm install -g @piatra-open-source/piatra-mcp-serverFrom source
- Clone the repository:
git clone https://gitlab.com/piatra_eng/machine-learning/piatra-mcp-server
cd piatra-mcp-server- Install dependencies:
npm install- Build the project:
npm run buildConfiguration
Using with Claude Desktop
Add the following to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"piatra-mcp-server": {
"command": "npx",
"args": ["@piatra-open-source/piatra-mcp-server"],
"env": {
// Add any required environment variables here
}
}
}
}Environment Variables
DEBUG: Set totrueto enable debug logging
Available Tools
example_tool
A demonstration tool that processes input and returns a formatted response.
Parameters:
input(required): The input parameter for the example tooloptional(optional): An optional parameter
Example usage:
{
"tool": "example_tool",
"arguments": {
"input": "Hello, world!",
"optional": "Extra information"
}
}Development
Prerequisites
- Node.js 18 or higher
- npm or yarn
Setup
- Install dependencies:
npm install- Build the project:
npm run build- Run in development mode:
npm run devAdding New Tools
- Define your tool in the
TOOLSarray insrc/index.ts - Add the tool handler in the
CallToolRequestSchemaswitch statement - Implement your tool's logic
- Update this README with documentation for your new tool
Testing
Run the server in debug mode:
DEBUG=true npm startBuilding
Build the TypeScript project:
npm run buildWatch for changes during development:
npm run watchContributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
License
PIATRA COMMERCIAL
Support
For issues, questions, or suggestions, please open an issue.
Changelog
See CHANGELOG.md for version history and release notes.
