@orangepro/orangepro-mcp 0.2.5 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/local/mcp.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
2
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
3
3
  import { z } from "zod";
4
+ import { ORANGEPRO_VERSION } from "./version.js";
4
5
  import { opAnalyze, opAiFlows, opAiLinks, opChanged, opCompare, opDoctor, opProofDoctor, opDynamicProof, opExplain, opExport, opGaps, opGenerate, opProveLoop, opRecordRun, opRtm, opScore, opStats, opStart, opStatus, opUpdate, resolveDiffTargets } from "./operations.js";
5
6
  import { runnableRunHintsFor, AGENT_RUN_WORKFLOW, GROUNDING_CONTRACT } from "./generate/runHints.js";
6
7
  import { preloadTreeSitter } from "./analyze/treeSitter/engine.js";
@@ -22,7 +23,7 @@ const DEFAULT_MARKDOWN_RTM_LIMIT = 500;
22
23
  * Codex, Claude, Copilot, …). First slice exposes NO upload or repo-write tools.
23
24
  */
24
25
  export function createLocalServer() {
25
- const server = new McpServer({ name: "orangepro-local", version: "0.2.0" });
26
+ const server = new McpServer({ name: "orangepro-local", version: ORANGEPRO_VERSION });
26
27
  const root = (ws) => ws || process.cwd();
27
28
  server.registerTool("orangepro_start", {
28
29
  title: "Start OrangePro",
@@ -0,0 +1,6 @@
1
+ import { readFileSync } from "node:fs";
2
+ const manifest = JSON.parse(readFileSync(new URL("../../package.json", import.meta.url), "utf8"));
3
+ if (typeof manifest.version !== "string" || manifest.version.length === 0) {
4
+ throw new Error("OrangePro package version is missing");
5
+ }
6
+ export const ORANGEPRO_VERSION = manifest.version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orangepro/orangepro-mcp",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "private": false,
5
5
  "description": "OrangePro (`opro`) — a local-first, BYOK CLI + MCP server that builds an evidence graph from a local checkout, ingests runtime coverage, and generates grounded tests. Metadata-only exports; no source upload; generated tests stay local.",
6
6
  "license": "MIT",