Merge pull request #1 from modelcontextprotocol/chore/scaffolding
Initial project structure for MCP variants
This commit is contained in:
parent
4c989fd9f6
commit
4f98e0aab3
9 changed files with 855 additions and 3 deletions
24
typescript/sdk/.eslintrc.json
Normal file
24
typescript/sdk/.eslintrc.json
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"root": true,
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"parserOptions": {
|
||||
"ecmaVersion": "latest",
|
||||
"sourceType": "module",
|
||||
"project": "./tsconfig.json"
|
||||
},
|
||||
"plugins": ["@typescript-eslint"],
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:@typescript-eslint/recommended",
|
||||
"plugin:@typescript-eslint/recommended-requiring-type-checking"
|
||||
],
|
||||
"env": {
|
||||
"node": true,
|
||||
"es2022": true
|
||||
},
|
||||
"rules": {
|
||||
"@typescript-eslint/explicit-module-boundary-types": "error",
|
||||
"@typescript-eslint/no-explicit-any": "error",
|
||||
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }]
|
||||
}
|
||||
}
|
||||
1
typescript/sdk/.nvmrc
Normal file
1
typescript/sdk/.nvmrc
Normal file
|
|
@ -0,0 +1 @@
|
|||
20
|
||||
3
typescript/sdk/README.md
Normal file
3
typescript/sdk/README.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# MCP Variants - TypeScript Implementation
|
||||
|
||||
This will contain the TypeScript implementation of the MCP Variants based on [SEP-2053](https://github.com/modelcontextprotocol/modelcontextprotocol/pull/2053).
|
||||
56
typescript/sdk/package.json
Normal file
56
typescript/sdk/package.json
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
{
|
||||
"name": "@ext-modelcontextprotocol/variants",
|
||||
"version": "0.1.0",
|
||||
"description": "TypeScript SDK for Model Context Protocol variants",
|
||||
"type": "module",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"import": "./dist/index.js"
|
||||
}
|
||||
},
|
||||
"main": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"test": "vitest run",
|
||||
"test:watch": "vitest",
|
||||
"lint": "eslint src --ext .ts",
|
||||
"prepublishOnly": "npm run build"
|
||||
},
|
||||
"keywords": [
|
||||
"mcp",
|
||||
"model-context-protocol",
|
||||
"variants"
|
||||
],
|
||||
"author": "The MCP Variants Authors",
|
||||
"license": "Apache-2.0",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/modelcontextprotocol/experimental-ext-variants.git",
|
||||
"directory": "typescript/sdk"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/modelcontextprotocol/experimental-ext-variants/issues"
|
||||
},
|
||||
"homepage": "https://github.com/modelcontextprotocol/experimental-ext-variants",
|
||||
"files": [
|
||||
"dist",
|
||||
"src",
|
||||
"README.md"
|
||||
],
|
||||
"peerDependencies": {
|
||||
"@modelcontextprotocol/sdk": "^1.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^20.0.0",
|
||||
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
||||
"@typescript-eslint/parser": "^6.0.0",
|
||||
"eslint": "^8.0.0",
|
||||
"typescript": "^5.0.0",
|
||||
"vitest": "^2.0.0"
|
||||
}
|
||||
}
|
||||
11
typescript/sdk/src/index.ts
Normal file
11
typescript/sdk/src/index.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
// Copyright 2025 The MCP Variants Authors. All rights reserved.
|
||||
// Use of this source code is governed by a Apache-2.0
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* MCP Variants TypeScript SDK
|
||||
*
|
||||
* Implements experimental MCP Variants for extended functionality.
|
||||
*/
|
||||
|
||||
export * from './variants.js';
|
||||
11
typescript/sdk/src/variants.test.ts
Normal file
11
typescript/sdk/src/variants.test.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
// Copyright 2025 The MCP Variants Authors. All rights reserved.
|
||||
// Use of this source code is governed by a Apache-2.0
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
import { describe, it, expect } from 'vitest';
|
||||
|
||||
describe('Variants', () => {
|
||||
it('should be defined', () => {
|
||||
expect(true).toBe(true);
|
||||
});
|
||||
});
|
||||
11
typescript/sdk/src/variants.ts
Normal file
11
typescript/sdk/src/variants.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
// Copyright 2025 The MCP Variants Authors. All rights reserved.
|
||||
// Use of this source code is governed by a Apache-2.0
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* Core variant functionality for MCP
|
||||
*
|
||||
* Experimental variant implementations for extended MCP functionality.
|
||||
*/
|
||||
|
||||
// Placeholder for variant implementation
|
||||
22
typescript/sdk/tsconfig.json
Normal file
22
typescript/sdk/tsconfig.json
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "esnext",
|
||||
"module": "NodeNext",
|
||||
"lib": ["esnext"],
|
||||
"outDir": "./dist",
|
||||
"rootDir": "./src",
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"sourceMap": true,
|
||||
"strict": true,
|
||||
"isolatedModules": true,
|
||||
"esModuleInterop": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"skipLibCheck": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"moduleResolution": "NodeNext",
|
||||
"resolveJsonModule": true
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
"exclude": ["node_modules", "dist"]
|
||||
}
|
||||
10
typescript/sdk/vitest.config.js
Normal file
10
typescript/sdk/vitest.config.js
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import { defineConfig } from 'vitest/config';
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
globals: true,
|
||||
environment: 'node',
|
||||
include: ['src/**/*.test.ts', 'test/**/*.test.ts'],
|
||||
exclude: ['**/node_modules/**', '**/dist/**']
|
||||
}
|
||||
});
|
||||
Loading…
Reference in a new issue