From 89f69a5d8588d73a32b6f75cdb27f663e9a5d883 Mon Sep 17 00:00:00 2001 From: Steven Chou Date: Thu, 30 Apr 2026 22:06:53 +0800 Subject: [PATCH] chore: polish repo health signals --- LICENSE | 21 +++++++++++++++++++++ README.md | 5 +++++ mcp-server.js | 2 +- scripts/test-mcp-server.js | 5 +---- 4 files changed, 28 insertions(+), 5 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..26bd375 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 Steven Chou + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index b21d476..5ab6dfa 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,11 @@ ### 让 AI 写出老板看得懂、能决策的中文职场汇报 +[![npm](https://img.shields.io/npm/v/manage-up-mcp?style=flat-square)](https://www.npmjs.com/package/manage-up-mcp) +[![MCP](https://img.shields.io/badge/MCP-ready-blueviolet?style=flat-square)](https://modelcontextprotocol.io/) +[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square)](./LICENSE) +[![Website](https://img.shields.io/badge/website-live-brightgreen?style=flat-square)](https://stevenchouai.github.io/manage-up/) + **[🇨🇳 中文](#manageup)** | **[🇺🇸 English](#english)** > 大模型写的报告为什么不好?因为它没有你的数据,也不知道中文职场里“老板需要拿它做决策”。ManageUp 的核心思路:**先收集事实,再组织成结论、进展、风险、需要决策**。 diff --git a/mcp-server.js b/mcp-server.js index cfacdb3..8ea34c9 100755 --- a/mcp-server.js +++ b/mcp-server.js @@ -16,7 +16,7 @@ import { } from "@modelcontextprotocol/sdk/types.js"; const SERVER_NAME = "manage-up-mcp"; -const SERVER_VERSION = "1.1.0"; +const SERVER_VERSION = "1.1.1"; const DEFAULT_LOG_DIR = path.join(os.homedir(), ".manage-up-mcp", "logs"); const FALLBACK_LOG_DIR = path.join(process.cwd(), ".manage-up-mcp", "logs"); const SESSION_ID = randomUUID(); diff --git a/scripts/test-mcp-server.js b/scripts/test-mcp-server.js index 9e4e54c..e6f5cad 100755 --- a/scripts/test-mcp-server.js +++ b/scripts/test-mcp-server.js @@ -1,7 +1,6 @@ #!/usr/bin/env node import fs from "node:fs"; -import os from "node:os"; import path from "node:path"; import { Client } from "@modelcontextprotocol/sdk/client/index.js"; @@ -11,10 +10,8 @@ import { ListToolsResultSchema, } from "@modelcontextprotocol/sdk/types.js"; -const preferredLogDir = - process.env.MANAGE_UP_MCP_LOG_DIR || - path.join(os.homedir(), ".manage-up-mcp", "logs"); const fallbackLogDir = path.join(process.cwd(), ".manage-up-mcp", "logs"); +const preferredLogDir = process.env.MANAGE_UP_MCP_LOG_DIR || fallbackLogDir; const defaultEntry = path.resolve("mcp-server.js"); const command = process.env.MANAGE_UP_MCP_COMMAND || process.execPath; const args = process.env.MANAGE_UP_MCP_COMMAND