Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ Implementation of MCP server for [Plainly](https://www.plainlyvideos.com/) in No
{
"servers": {
"plainly": {
"command": "yarn",
"args": ["dlx", "@plainly-videos/mcp-server@latest", "mcp-server"],
"command": "npx",
"args": ["-y", "@plainly-videos/mcp-server@latest"],
"env": {
"PLAINLY_API_KEY": "<PLAINLY_API_KEY>"
}
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@plainly-videos/mcp-server",
"version": "1.0.1",
"version": "1.0.2",
"description": "MCP server for Plainly Videos that allows browsing designs and projects, as well as rendering videos.",
"license": "MIT",
"author": "PlainlyVideos <contact@planlyvideos.com>",
Expand Down Expand Up @@ -29,6 +29,7 @@
"javascript",
"typescript"
],
"type": "module",
"bin": "dist/index.js",
"files": [
"dist"
Expand Down
2 changes: 1 addition & 1 deletion src/utils/toolResponse.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CallToolResult } from "@modelcontextprotocol/sdk/types";
import { CallToolResult } from "@modelcontextprotocol/sdk/types.js";

export const toToolResponse = (
output: {
Expand Down
28 changes: 6 additions & 22 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,14 @@
{
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
"lib": [
"ES2022"
],
"moduleResolution": "node",
"rootDir": "./src",
"outDir": "./dist",
"target": "es2017",
"module": "es2022",
"strict": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"moduleResolution": "bundler",
"skipLibCheck": true,
"resolveJsonModule": true,
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"allowSyntheticDefaultImports": true,
"isolatedModules": true,
Comment on lines -15 to -24
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's with all these? why not keep them? noUnusedLocals, noUnusedParameters, noImplicitReturns, etc

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i can revert that yup

"types": [
"node"
]
"rootDir": "src",
"outDir": "dist"
},
"include": [
"src/**/*"
Expand Down
34 changes: 17 additions & 17 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
import { defineConfig } from 'vite';
import { resolve } from 'path';
import { defineConfig } from "vite";
import { resolve } from "path";

export default defineConfig({
build: {
target: 'node20',
target: "node18",
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the only change, everything else is formatting ' -> "

lib: {
entry: resolve(__dirname, 'src/index.ts'),
formats: ['es'],
fileName: 'index',
entry: resolve(__dirname, "src/index.ts"),
formats: ["es"],
fileName: "index",
},
rollupOptions: {
external: [
'@modelcontextprotocol/sdk',
'@modelcontextprotocol/sdk/server/index.js',
'@modelcontextprotocol/sdk/server/stdio.js',
'@modelcontextprotocol/sdk/types.js',
'node:process',
'node:console',
"@modelcontextprotocol/sdk",
"@modelcontextprotocol/sdk/server/index.js",
"@modelcontextprotocol/sdk/server/stdio.js",
"@modelcontextprotocol/sdk/types.js",
"node:process",
"node:console",
],
output: {
format: 'es',
format: "es",
preserveModules: false,
entryFileNames: 'index.js',
entryFileNames: "index.js",
},
},
outDir: 'dist',
outDir: "dist",
emptyOutDir: true,
minify: false,
sourcemap: false,
},
resolve: {
extensions: ['.ts', '.js'],
extensions: [".ts", ".js"],
},
});
});