-
Notifications
You must be signed in to change notification settings - Fork 1
Prepare for publishing #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| name: Publish | ||
| on: | ||
| push: | ||
| tags: | ||
| - "v*" | ||
|
|
||
| jobs: | ||
| publish: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - name: Setup Node (with npm auth) | ||
| uses: actions/setup-node@v5 | ||
| with: | ||
| node-version: "22" | ||
|
danixeee marked this conversation as resolved.
|
||
| cache: "yarn" | ||
| registry-url: "https://registry.npmjs.org" | ||
| always-auth: true | ||
|
|
||
| - name: Enable Corepack | ||
| run: corepack enable | ||
|
|
||
| - name: Install | ||
| run: yarn install --immutable | ||
|
|
||
| - name: Build | ||
| run: yarn build | ||
|
|
||
| - name: Publish | ||
| env: | ||
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
| run: npm publish --access public | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,20 +1,89 @@ | ||
| # Plainly MCP server | ||
| # Plainly's Official MCP Server | ||
|
|
||
| ## Local configuration | ||
| Implementation of MCP server for [Plainly](https://www.plainlyvideos.com/) in NodeJS. Enables LLM clients to connect and interact with Plainly APIs. | ||
|
|
||
| To configure MCP locally, add `.vscode/mcp.json` like following: | ||
| ## 🎥 Demo | ||
|
|
||
| <p align="center"> | ||
| <a href="https://storage.googleapis.com/plainly-static-data/plainly-mcp-server-demo.mp4"> | ||
| <img src="https://storage.googleapis.com/plainly-static-data/plainly-mcp-server-demo-thumbnail.png" alt="Demo Video" width="500"> | ||
| </a> | ||
| </p> | ||
|
|
||
| ## 📋 Prerequisites | ||
|
|
||
| - [Node.js](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) | ||
|
danixeee marked this conversation as resolved.
Outdated
|
||
| - [NPM](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) | ||
| - [Plainly Account](https://app.plainlyvideos.com) | ||
|
|
||
| ## ▶️ How to run (local installation) | ||
|
|
||
| 1. **Get your Plainly API key** | ||
|
|
||
| - Go to [Settings page](https://app.plainlyvideos.com/dashboard/user/settings/general) | ||
| - Create a new API key | ||
| - Copy the new API key | ||
|
|
||
| 2. **Add config to your editor** | ||
|
|
||
| ```json | ||
| { | ||
| "servers": { | ||
| "Plainly": { | ||
| "plainly": { | ||
| "command": "npx", | ||
| "args": ["-y", "@plainly-videos/mcp-server@latest"], | ||
| "env": { | ||
| "PLAINLY_API_KEY": "<PLAINLY_API_KEY>" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| ## 🛠️ Available tools | ||
|
|
||
| - `list_renderable_items` - returns a list of all criteria matching designs and custom projects for authenticated user | ||
| - `get_renderable_items_details` - returns details of a single design or custom project, such as: required and optional parameters, preview links, aspect ratios, etc. | ||
| - `render_item` - submits a render with all needed parameters | ||
| - `check_render_status` - checks the render status and report error or preview links | ||
|
|
||
| ## 🗣️ Prompts & Resources | ||
|
|
||
| This implementation **does not** include `prompts` or `resources` from the MCP specification. However, this may change in the future when there is broader support across popular MCP clients. | ||
|
|
||
| ## 🚧 Development mode | ||
|
|
||
| If you want to run the server in development mode, you can install dependencies and run the server using the following command: | ||
|
|
||
| 1. Clone, install, and build: | ||
|
|
||
| ```shell | ||
| git clone git@github.com:plainly-videos/mcp-server.git | ||
| cd mcp-server | ||
|
|
||
| yarn install | ||
| yarn build | ||
| ``` | ||
|
|
||
| 2. Add your API key in `.vscode/mcp.json` | ||
|
|
||
| ```json | ||
| { | ||
| "servers": { | ||
| "plainly": { | ||
| "command": "node", | ||
| "args": ["<FULL PATH TO dist/index.js>"], | ||
| "env": { | ||
| "PLAINLY_API_URL": "https://api.test.plainlyvideos.com", | ||
| "PLAINLY_API_KEY": "<TEST API KEY>" | ||
| "PLAINLY_API_KEY": "<PLAINLY_API_KEY>" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| 3. Start MCP server from `.vscode/mcp.json` | ||
|
|
||
| ## 📄 Plainly developer resources | ||
|
|
||
| - [Help center](https://help.plainlyvideos.com/) | ||
| - [API reference](https://app.plainlyvideos.com/api-reference.html) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.