Spaces:
Sleeping
Sleeping
Merge pull request #1 from pinkpixel-dev/smithery/config-n63q
Browse files- Dockerfile +16 -0
- README.md +10 -0
- smithery.yaml +13 -0
Dockerfile
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
|
| 2 |
+
FROM node:lts-alpine
|
| 3 |
+
WORKDIR /app
|
| 4 |
+
|
| 5 |
+
# Copy package files and install dependencies
|
| 6 |
+
COPY package*.json ./
|
| 7 |
+
RUN npm install --ignore-scripts
|
| 8 |
+
|
| 9 |
+
# Copy the rest of the application
|
| 10 |
+
COPY . .
|
| 11 |
+
|
| 12 |
+
# Expose port if needed (optional, as MCP servers might not require it)
|
| 13 |
+
# EXPOSE 3000
|
| 14 |
+
|
| 15 |
+
# Run the MCP server
|
| 16 |
+
CMD ["node", "pollinations-mcp-server.js"]
|
README.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
# MCPollinations Multimodal MCP Server
|
| 2 |
|
|
|
|
| 3 |
A Model Context Protocol (MCP) server that enables AI assistants to generate images, text, and audio through the Pollinations APIs
|
| 4 |
|
| 5 |
## Features
|
|
@@ -21,6 +22,14 @@ A Model Context Protocol (MCP) server that enables AI assistants to generate ima
|
|
| 21 |
|
| 22 |
## Quick Start
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
The easiest way to use the MCP server:
|
| 25 |
|
| 26 |
```bash
|
|
@@ -223,3 +232,4 @@ npm install @pinkpixel/mcpollinations
|
|
| 223 |
# Import in your code
|
| 224 |
import { generateImageUrl, generateImage, repsondText, respondAudio, listTextModels, listImageModels, listAudioVoices } from '@pinkpixel/mcpollinations';
|
| 225 |
```
|
|
|
|
|
|
| 1 |
# MCPollinations Multimodal MCP Server
|
| 2 |
|
| 3 |
+
[](https://smithery.ai/server/@pinkpixel-dev/mcpollinations)
|
| 4 |
A Model Context Protocol (MCP) server that enables AI assistants to generate images, text, and audio through the Pollinations APIs
|
| 5 |
|
| 6 |
## Features
|
|
|
|
| 22 |
|
| 23 |
## Quick Start
|
| 24 |
|
| 25 |
+
### Installing via Smithery
|
| 26 |
+
|
| 27 |
+
To install mcpollinations for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@pinkpixel-dev/mcpollinations):
|
| 28 |
+
|
| 29 |
+
```bash
|
| 30 |
+
npx -y @smithery/cli install @pinkpixel-dev/mcpollinations --client claude
|
| 31 |
+
```
|
| 32 |
+
|
| 33 |
The easiest way to use the MCP server:
|
| 34 |
|
| 35 |
```bash
|
|
|
|
| 232 |
# Import in your code
|
| 233 |
import { generateImageUrl, generateImage, repsondText, respondAudio, listTextModels, listImageModels, listAudioVoices } from '@pinkpixel/mcpollinations';
|
| 234 |
```
|
| 235 |
+
|
smithery.yaml
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml
|
| 2 |
+
|
| 3 |
+
startCommand:
|
| 4 |
+
type: stdio
|
| 5 |
+
configSchema:
|
| 6 |
+
# JSON Schema defining the configuration options for the MCP.
|
| 7 |
+
type: object
|
| 8 |
+
properties: {}
|
| 9 |
+
commandFunction:
|
| 10 |
+
# A JS function that produces the CLI command based on the given config to start the MCP on stdio.
|
| 11 |
+
|-
|
| 12 |
+
(config) => ({ command: 'node', args: ['pollinations-mcp-server.js'] })
|
| 13 |
+
exampleConfig: {}
|