Заведи каркас пакета и утилитный слой MCP-сервера
package.json, tsconfig, eslint, генерация типов из OpenAPI-спеки, модули config/redact/errors/money/sanitize/cache с тестами и обезличенные фикстуры живых ответов API openrusrouter.ru. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
29 files changed
+11350
No files matched your search
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"name": "@openrusrouter/mcp",
|
||||
"version": "0.1.0",
|
||||
"description": "MCP-сервер (stdio) для площадки openrusrouter.ru: баланс, каталог моделей, ключи, расход",
|
||||
"type": "module",
|
||||
"bin": {
|
||||
"openrusrouter-mcp": "dist/index.js"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"README.md",
|
||||
"LICENSE",
|
||||
"CHANGELOG.md"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://git.realmanual.ru/pub/openrusrouter-mcp.git"
|
||||
},
|
||||
"homepage": "https://git.realmanual.ru/pub/openrusrouter-mcp",
|
||||
"keywords": [
|
||||
"mcp",
|
||||
"openrusrouter",
|
||||
"openrouter",
|
||||
"llm"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tsc -p tsconfig.build.json",
|
||||
"typecheck": "tsc --noEmit && tsc -p tsconfig.test.json",
|
||||
"test": "node --import tsx --test \"test/**/*.test.ts\"",
|
||||
"lint": "eslint .",
|
||||
"gen:types": "node scripts/gen-types.mjs",
|
||||
"prepublishOnly": "npm run typecheck && npm test && npm run build",
|
||||
"pack:check": "npm pack --dry-run"
|
||||
},
|
||||
"dependencies": {
|
||||
"@modelcontextprotocol/sdk": "1.32.2",
|
||||
"zod": "^4.6.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^10.0.1",
|
||||
"@types/node": "^20.19.43",
|
||||
"eslint": "^10.13.0",
|
||||
"openapi-typescript": "^7.13.0",
|
||||
"tsx": "^4.23.15",
|
||||
"typescript": "5.9.3",
|
||||
"typescript-eslint": "^8.72.0"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user