pvc-mcp-server 0.2.0__tar.gz
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.
- pvc_mcp_server-0.2.0/.claude/settings.local.json +9 -0
- pvc_mcp_server-0.2.0/.idea/inspectionProfiles/Project_Default.xml +33 -0
- pvc_mcp_server-0.2.0/.idea/inspectionProfiles/profiles_settings.xml +6 -0
- pvc_mcp_server-0.2.0/.idea/mcp-demo.iml +7 -0
- pvc_mcp_server-0.2.0/.idea/misc.xml +7 -0
- pvc_mcp_server-0.2.0/.idea/vcs.xml +6 -0
- pvc_mcp_server-0.2.0/.idea/workspace.xml +113 -0
- pvc_mcp_server-0.2.0/.plans/HEAD +1 -0
- pvc_mcp_server-0.2.0/.plans/logs/plan_history.log +4 -0
- pvc_mcp_server-0.2.0/.plans/objects/v7d05787dfeaf98c9.json +31 -0
- pvc_mcp_server-0.2.0/.plans/objects/vd0457c635a9dee8b.json +17 -0
- pvc_mcp_server-0.2.0/.plans/objects/vf57f48345271c663.json +17 -0
- pvc_mcp_server-0.2.0/.plans/refs/heads/main.json +8 -0
- pvc_mcp_server-0.2.0/.plans/refs/tags/v1.0-initial-plan.json +5 -0
- pvc_mcp_server-0.2.0/LICENSE +190 -0
- pvc_mcp_server-0.2.0/PKG-INFO +122 -0
- pvc_mcp_server-0.2.0/README.md +93 -0
- pvc_mcp_server-0.2.0/pvc_demo.py +303 -0
- pvc_mcp_server-0.2.0/pvc_mcp/__init__.py +93 -0
- pvc_mcp_server-0.2.0/pvc_mcp/__main__.py +10 -0
- pvc_mcp_server-0.2.0/pvc_mcp/server.py +2267 -0
- pvc_mcp_server-0.2.0/pyproject.toml +56 -0
- pvc_mcp_server-0.2.0/requirements.txt +5 -0
- pvc_mcp_server-0.2.0/server/PVC_README.md +345 -0
- pvc_mcp_server-0.2.0/server/pvc_server.py +20 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<component name="InspectionProjectProfileManager">
|
|
2
|
+
<profile version="1.0">
|
|
3
|
+
<option name="myName" value="Project Default" />
|
|
4
|
+
<inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true">
|
|
5
|
+
<option name="ignoredPackages">
|
|
6
|
+
<value>
|
|
7
|
+
<list size="20">
|
|
8
|
+
<item index="0" class="java.lang.String" itemvalue="pynput" />
|
|
9
|
+
<item index="1" class="java.lang.String" itemvalue="opencv-python" />
|
|
10
|
+
<item index="2" class="java.lang.String" itemvalue="pyautogui" />
|
|
11
|
+
<item index="3" class="java.lang.String" itemvalue="onnxruntime-gpu" />
|
|
12
|
+
<item index="4" class="java.lang.String" itemvalue="scipy" />
|
|
13
|
+
<item index="5" class="java.lang.String" itemvalue="pydantic" />
|
|
14
|
+
<item index="6" class="java.lang.String" itemvalue="gradio" />
|
|
15
|
+
<item index="7" class="java.lang.String" itemvalue="paddleocr" />
|
|
16
|
+
<item index="8" class="java.lang.String" itemvalue="thop" />
|
|
17
|
+
<item index="9" class="java.lang.String" itemvalue="paddlepaddle-gpu" />
|
|
18
|
+
<item index="10" class="java.lang.String" itemvalue="torch" />
|
|
19
|
+
<item index="11" class="java.lang.String" itemvalue="python-multipart" />
|
|
20
|
+
<item index="12" class="java.lang.String" itemvalue="torchvision" />
|
|
21
|
+
<item index="13" class="java.lang.String" itemvalue="fastapi" />
|
|
22
|
+
<item index="14" class="java.lang.String" itemvalue="uvicorn" />
|
|
23
|
+
<item index="15" class="java.lang.String" itemvalue="torchaudio" />
|
|
24
|
+
<item index="16" class="java.lang.String" itemvalue="huggingface_hub" />
|
|
25
|
+
<item index="17" class="java.lang.String" itemvalue="steampy" />
|
|
26
|
+
<item index="18" class="java.lang.String" itemvalue="playwright" />
|
|
27
|
+
<item index="19" class="java.lang.String" itemvalue="pywebview" />
|
|
28
|
+
</list>
|
|
29
|
+
</value>
|
|
30
|
+
</option>
|
|
31
|
+
</inspection_tool>
|
|
32
|
+
</profile>
|
|
33
|
+
</component>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="Black">
|
|
4
|
+
<option name="sdkName" value="mcp-demo" />
|
|
5
|
+
</component>
|
|
6
|
+
<component name="ProjectRootManager" version="2" project-jdk-name="mcp-demo" project-jdk-type="Python SDK" />
|
|
7
|
+
</project>
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="AutoImportSettings">
|
|
4
|
+
<option name="autoReloadType" value="SELECTIVE" />
|
|
5
|
+
</component>
|
|
6
|
+
<component name="ChangeListManager">
|
|
7
|
+
<list default="true" id="82964956-9f9b-410f-9a19-fb1328857cdf" name="更改" comment="">
|
|
8
|
+
<change beforePath="$PROJECT_DIR$/../adaptive_skip_tracker/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/../adaptive_skip_tracker/README.md" afterDir="false" />
|
|
9
|
+
<change beforePath="$PROJECT_DIR$/../adaptive_skip_tracker/README.zh-CN.md" beforeDir="false" afterPath="$PROJECT_DIR$/../adaptive_skip_tracker/README.zh-CN.md" afterDir="false" />
|
|
10
|
+
<change beforePath="$PROJECT_DIR$/../adaptive_skip_tracker/adaptive_tracker/lk_estimator.py" beforeDir="false" afterPath="$PROJECT_DIR$/../adaptive_skip_tracker/adaptive_tracker/lk_estimator.py" afterDir="false" />
|
|
11
|
+
<change beforePath="$PROJECT_DIR$/../adaptive_skip_tracker/adaptive_tracker/skipping_byte_tracker.py" beforeDir="false" afterPath="$PROJECT_DIR$/../adaptive_skip_tracker/adaptive_tracker/skipping_byte_tracker.py" afterDir="false" />
|
|
12
|
+
</list>
|
|
13
|
+
<option name="SHOW_DIALOG" value="false" />
|
|
14
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
15
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
16
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
|
17
|
+
</component>
|
|
18
|
+
<component name="Git.Settings">
|
|
19
|
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/.." />
|
|
20
|
+
</component>
|
|
21
|
+
<component name="GitHubPullRequestSearchHistory">{
|
|
22
|
+
"lastFilter": {
|
|
23
|
+
"state": "OPEN",
|
|
24
|
+
"assignee": "096v"
|
|
25
|
+
}
|
|
26
|
+
}</component>
|
|
27
|
+
<component name="GithubPullRequestsUISettings">{
|
|
28
|
+
"selectedUrlAndAccountId": {
|
|
29
|
+
"url": "https://github.com/096v/adaptive_skip_tracker.git",
|
|
30
|
+
"accountId": "b29670df-cd03-40bf-8395-91c096fdff88"
|
|
31
|
+
}
|
|
32
|
+
}</component>
|
|
33
|
+
<component name="ProjectColorInfo">{
|
|
34
|
+
"associatedIndex": 2
|
|
35
|
+
}</component>
|
|
36
|
+
<component name="ProjectId" id="3GJ4WqDmdi1ecFCfF2jQFpVFkow" />
|
|
37
|
+
<component name="ProjectViewState">
|
|
38
|
+
<option name="hideEmptyMiddlePackages" value="true" />
|
|
39
|
+
<option name="showLibraryContents" value="true" />
|
|
40
|
+
</component>
|
|
41
|
+
<component name="PropertiesComponent">{
|
|
42
|
+
"keyToString": {
|
|
43
|
+
"Python.mcp_client_deepseek.executor": "Debug",
|
|
44
|
+
"Python.mcp_client_langchain_chat.executor": "Run",
|
|
45
|
+
"Python.pvc_client_test.executor": "Run",
|
|
46
|
+
"Python.pvc_server.executor": "Debug",
|
|
47
|
+
"Python.sdkpp.executor": "Run",
|
|
48
|
+
"RunOnceActivity.ShowReadmeOnStart": "true",
|
|
49
|
+
"RunOnceActivity.git.unshallow": "true",
|
|
50
|
+
"git-widget-placeholder": "main",
|
|
51
|
+
"javascript.nodejs.core.library.configured.version": "22.15.0",
|
|
52
|
+
"javascript.nodejs.core.library.typings.version": "22.15.35",
|
|
53
|
+
"node.js.detected.package.eslint": "true",
|
|
54
|
+
"node.js.detected.package.tslint": "true",
|
|
55
|
+
"node.js.selected.package.eslint": "(autodetect)",
|
|
56
|
+
"node.js.selected.package.tslint": "(autodetect)",
|
|
57
|
+
"nodejs_interpreter_path": "node",
|
|
58
|
+
"nodejs_package_manager_path": "npm",
|
|
59
|
+
"settings.editor.selected.configurable": "preferences.pluginManager",
|
|
60
|
+
"vue.rearranger.settings.migration": "true"
|
|
61
|
+
}
|
|
62
|
+
}</component>
|
|
63
|
+
<component name="SharedIndexes">
|
|
64
|
+
<attachedChunks>
|
|
65
|
+
<set>
|
|
66
|
+
<option value="bundled-js-predefined-d6986cc7102b-e768b9ed790e-JavaScript-PY-243.21565.199" />
|
|
67
|
+
<option value="bundled-python-sdk-cab1f2013843-4ae2d6a61b08-com.jetbrains.pycharm.pro.sharedIndexes.bundled-PY-243.21565.199" />
|
|
68
|
+
</set>
|
|
69
|
+
</attachedChunks>
|
|
70
|
+
</component>
|
|
71
|
+
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="应用程序级" UseSingleDictionary="true" transferred="true" />
|
|
72
|
+
<component name="TaskManager">
|
|
73
|
+
<task active="true" id="Default" summary="默认任务">
|
|
74
|
+
<changelist id="82964956-9f9b-410f-9a19-fb1328857cdf" name="更改" comment="" />
|
|
75
|
+
<created>1783676373577</created>
|
|
76
|
+
<option name="number" value="Default" />
|
|
77
|
+
<option name="presentableId" value="Default" />
|
|
78
|
+
<updated>1783676373577</updated>
|
|
79
|
+
<workItem from="1783676374651" duration="1977000" />
|
|
80
|
+
<workItem from="1783680789027" duration="24721000" />
|
|
81
|
+
<workItem from="1783936919380" duration="28011000" />
|
|
82
|
+
<workItem from="1784804137567" duration="5020000" />
|
|
83
|
+
</task>
|
|
84
|
+
<servers />
|
|
85
|
+
</component>
|
|
86
|
+
<component name="TypeScriptGeneratedFilesManager">
|
|
87
|
+
<option name="version" value="3" />
|
|
88
|
+
</component>
|
|
89
|
+
<component name="XDebuggerManager">
|
|
90
|
+
<breakpoint-manager>
|
|
91
|
+
<default-breakpoints>
|
|
92
|
+
<breakpoint type="python-exception">
|
|
93
|
+
<properties notifyOnTerminate="true" exception="BaseException">
|
|
94
|
+
<option name="notifyOnTerminate" value="true" />
|
|
95
|
+
</properties>
|
|
96
|
+
</breakpoint>
|
|
97
|
+
</default-breakpoints>
|
|
98
|
+
</breakpoint-manager>
|
|
99
|
+
<watches-manager>
|
|
100
|
+
<configuration name="PythonConfigurationType">
|
|
101
|
+
<watch expression="__exception__[1].filename" />
|
|
102
|
+
<watch expression="__exception__[0].errno" />
|
|
103
|
+
</configuration>
|
|
104
|
+
</watches-manager>
|
|
105
|
+
</component>
|
|
106
|
+
<component name="com.intellij.coverage.CoverageDataManagerImpl">
|
|
107
|
+
<SUITE FILE_PATH="coverage/mcp_demo$mcp_client_deepseek.coverage" NAME="mcp_client_deepseek 覆盖结果" MODIFIED="1783849120774" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/server" />
|
|
108
|
+
<SUITE FILE_PATH="coverage/mcp_demo$pvc_client_test.coverage" NAME="pvc_client_test 覆盖结果" MODIFIED="1784561238153" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/server" />
|
|
109
|
+
<SUITE FILE_PATH="coverage/mcp_demo$sdkpp.coverage" NAME="sdkpp 覆盖结果" MODIFIED="1784202424798" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
|
|
110
|
+
<SUITE FILE_PATH="coverage/mcp_demo$pvc_server.coverage" NAME="pvc_server 覆盖结果" MODIFIED="1784630891248" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/server" />
|
|
111
|
+
<SUITE FILE_PATH="coverage/mcp_demo$mcp_client_langchain_chat.coverage" NAME="mcp_client_langchain_chat 覆盖结果" MODIFIED="1783848706115" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/server" />
|
|
112
|
+
</component>
|
|
113
|
+
</project>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ref: refs/heads/main
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
{"timestamp": "2026-07-22T09:05:22.873065+00:00", "action": "commit", "details": {"version": "v7d05787dfeaf98c9", "message": "Initial RAG implementation plan: Spring AI 2.0.0 + DeepSeek/Qwen + BGE-large-zh + Elasticsearch", "parent": null, "branch": "main"}}
|
|
2
|
+
{"timestamp": "2026-07-22T09:05:28.694775+00:00", "action": "tag", "details": {"tag_name": "v1.0-initial-plan", "version_id": "v7d05787dfeaf98c9", "message": "初始 RAG 实施计划基线版本"}}
|
|
3
|
+
{"timestamp": "2026-07-24T09:12:31.003301+00:00", "action": "commit", "details": {"version": "vf57f48345271c663", "message": "简单演示计划", "parent": "v7d05787dfeaf98c9", "branch": "main"}}
|
|
4
|
+
{"timestamp": "2026-07-24T09:58:34.463107+00:00", "action": "commit", "details": {"version": "vd0457c635a9dee8b", "message": "Simple demo plan", "parent": "vf57f48345271c663", "branch": "main"}}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "v7d05787dfeaf98c9",
|
|
3
|
+
"parent": null,
|
|
4
|
+
"timestamp": "2026-07-22T09:05:22.861049+00:00",
|
|
5
|
+
"message": "Initial RAG implementation plan: Spring AI 2.0.0 + DeepSeek/Qwen + BGE-large-zh + Elasticsearch",
|
|
6
|
+
"branch": "main",
|
|
7
|
+
"plan": {
|
|
8
|
+
"goal": "为电子合同 SaaS 平台构建基于 RAG 的智能客服助手系统",
|
|
9
|
+
"tasks": [
|
|
10
|
+
"阶段1: 基础设施 — 更新 pom.xml (Java 21 + Spring AI 2.0.0 BOM + 依赖), 创建 application.yml, 配置类(AiConfig/EmbeddingConfig/ESConfig), 实现 QianfanEmbeddingModel",
|
|
11
|
+
"阶段2: RAG 管道核心 — 5个管道服务(Understanding/Vectorization/Retrieval/Enhancement/Generation), RagPipelineService 编排器, ChatController + DTOs, 多轮对话 MessageChatMemoryAdvisor",
|
|
12
|
+
"阶段3: 文档与知识库 — DocumentProcessingService + ChunkingService, VectorStorageService 完整流程, QAPairGenerationService, DocumentController + KnowledgeBaseController",
|
|
13
|
+
"阶段4: 质量增强 — 意图分类(4领域), Prompt 模板系统(5个领域模板), 意图驱动模板选择+元数据过滤, 引用溯源",
|
|
14
|
+
"阶段5: 生产加固 — SSE 流式接口, Actuator 健康检查, 错误重试/降级, 单元测试+集成测试"
|
|
15
|
+
],
|
|
16
|
+
"constraints": [
|
|
17
|
+
"Spring AI 2.0.0 必须配 Spring Boot 4.x (1.x 不兼容)",
|
|
18
|
+
"Java 升级到 21 (Spring AI 2.0.0 硬性要求)",
|
|
19
|
+
"BGE-large-zh 需自定义 QianfanEmbeddingModel (无官方 starter)",
|
|
20
|
+
"Elasticsearch 8.x 作为向量数据库",
|
|
21
|
+
"DeepSeek 为主 LLM, Qwen 为备选"
|
|
22
|
+
],
|
|
23
|
+
"assumptions": [
|
|
24
|
+
"用户已有百度千帆 API Key/Secret Key",
|
|
25
|
+
"用户已有 DeepSeek API Key",
|
|
26
|
+
"用户已有 Qwen (DashScope) API Key",
|
|
27
|
+
"Elasticsearch 8.x 已部署或可通过 Docker 启动",
|
|
28
|
+
"帮助中心文档格式为 HTML/PDF/Markdown"
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "vd0457c635a9dee8b",
|
|
3
|
+
"parent": "vf57f48345271c663",
|
|
4
|
+
"timestamp": "2026-07-24T09:58:34.458106+00:00",
|
|
5
|
+
"message": "Simple demo plan",
|
|
6
|
+
"branch": "main",
|
|
7
|
+
"plan": {
|
|
8
|
+
"goal": "Complete task A",
|
|
9
|
+
"tasks": [
|
|
10
|
+
"Step1",
|
|
11
|
+
"Step2",
|
|
12
|
+
"Step3"
|
|
13
|
+
],
|
|
14
|
+
"constraints": {},
|
|
15
|
+
"assumptions": []
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "vf57f48345271c663",
|
|
3
|
+
"parent": "v7d05787dfeaf98c9",
|
|
4
|
+
"timestamp": "2026-07-24T09:12:30.997871+00:00",
|
|
5
|
+
"message": "简单演示计划",
|
|
6
|
+
"branch": "main",
|
|
7
|
+
"plan": {
|
|
8
|
+
"goal": "完成任务 A",
|
|
9
|
+
"tasks": [
|
|
10
|
+
"步骤1",
|
|
11
|
+
"步骤2",
|
|
12
|
+
"步骤3"
|
|
13
|
+
],
|
|
14
|
+
"constraints": {},
|
|
15
|
+
"assumptions": []
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
Copyright 2025 FlyAIBox
|
|
179
|
+
|
|
180
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
|
+
you may not use this file except in compliance with the License.
|
|
182
|
+
You may obtain a copy of the License at
|
|
183
|
+
|
|
184
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
185
|
+
|
|
186
|
+
Unless required by applicable law or agreed to in writing, software
|
|
187
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
188
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
189
|
+
See the License for the specific language governing permissions and
|
|
190
|
+
limitations under the License.
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pvc-mcp-server
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: Plan Version Control (PVC) MCP Server — Git-like version control for AI agent decision tracking
|
|
5
|
+
Project-URL: Homepage, https://github.com/aliyun7869160768/pvc-mcp
|
|
6
|
+
Project-URL: Repository, https://github.com/aliyun7869160768/pvc-mcp
|
|
7
|
+
Project-URL: Issues, https://github.com/aliyun7869160768/pvc-mcp/issues
|
|
8
|
+
Author: FlyAIBox
|
|
9
|
+
License: Apache-2.0
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Keywords: agent,decision-tracking,mcp,model-context-protocol,planning,version-control
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
20
|
+
Classifier: Topic :: Software Development :: Version Control
|
|
21
|
+
Requires-Python: >=3.10
|
|
22
|
+
Requires-Dist: deepdiff>=6.0
|
|
23
|
+
Requires-Dist: mcp>=1.0.0
|
|
24
|
+
Provides-Extra: dev
|
|
25
|
+
Requires-Dist: build>=1.0; extra == 'dev'
|
|
26
|
+
Requires-Dist: pytest>=7.0; extra == 'dev'
|
|
27
|
+
Requires-Dist: twine>=5.0; extra == 'dev'
|
|
28
|
+
Description-Content-Type: text/markdown
|
|
29
|
+
|
|
30
|
+
#!/usr/bin/env python3
|
|
31
|
+
# -*- coding: utf-8 -*-
|
|
32
|
+
"""
|
|
33
|
+
Plan Version Control (PVC) MCP Server — Quick Start
|
|
34
|
+
=====================================================
|
|
35
|
+
|
|
36
|
+
A Git-like version control system for AI agent decision tracking.
|
|
37
|
+
Traditional agents remember chat content. PVC agents remember the decision
|
|
38
|
+
evolution process.
|
|
39
|
+
|
|
40
|
+
Installation
|
|
41
|
+
------------
|
|
42
|
+
|
|
43
|
+
pip install pvc-mcp-server
|
|
44
|
+
|
|
45
|
+
CLI Usage
|
|
46
|
+
---------
|
|
47
|
+
|
|
48
|
+
# Start the MCP server
|
|
49
|
+
pvc-mcp
|
|
50
|
+
|
|
51
|
+
# Or as a Python module
|
|
52
|
+
python -m pvc_mcp
|
|
53
|
+
|
|
54
|
+
Claude Desktop Configuration
|
|
55
|
+
-----------------------------
|
|
56
|
+
|
|
57
|
+
Add to your ``claude_desktop_config.json``:
|
|
58
|
+
|
|
59
|
+
.. code-block:: json
|
|
60
|
+
|
|
61
|
+
{
|
|
62
|
+
"mcpServers": {
|
|
63
|
+
"pvc": {
|
|
64
|
+
"command": "python",
|
|
65
|
+
"args": ["-m", "pvc_mcp"]
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
Python API
|
|
71
|
+
----------
|
|
72
|
+
|
|
73
|
+
.. code-block:: python
|
|
74
|
+
|
|
75
|
+
from pvc_mcp import plan_commit, plan_log, plan_diff
|
|
76
|
+
|
|
77
|
+
# Commit a plan
|
|
78
|
+
result = plan_commit(
|
|
79
|
+
plan={"goal": "Build a blog system", "tasks": [...]},
|
|
80
|
+
message="Initial plan"
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
# View history
|
|
84
|
+
history = plan_log(limit=10)
|
|
85
|
+
|
|
86
|
+
# Compare versions
|
|
87
|
+
diff = plan_diff("v1", "v2")
|
|
88
|
+
|
|
89
|
+
Core Concepts
|
|
90
|
+
-------------
|
|
91
|
+
|
|
92
|
+
PVC is like Git for AI agent plans:
|
|
93
|
+
|
|
94
|
+
============ =========== ===========================
|
|
95
|
+
PVC Tool Git Analog Purpose
|
|
96
|
+
============ =========== ===========================
|
|
97
|
+
plan_commit git commit Save a plan version
|
|
98
|
+
plan_diff git diff Compare two versions
|
|
99
|
+
plan_checkout git checkout Restore a historical version
|
|
100
|
+
plan_branch git branch Create an experimental branch
|
|
101
|
+
plan_merge git merge Merge branches (3-way)
|
|
102
|
+
plan_log git log View decision history
|
|
103
|
+
plan_tag git tag Mark milestones
|
|
104
|
+
plan_stash git stash Temporarily shelve changes
|
|
105
|
+
============ =========== ===========================
|
|
106
|
+
|
|
107
|
+
Storage Structure
|
|
108
|
+
-----------------
|
|
109
|
+
|
|
110
|
+
::
|
|
111
|
+
|
|
112
|
+
.plans/
|
|
113
|
+
├── HEAD # Current pointer
|
|
114
|
+
├── refs/heads/ # Branch references
|
|
115
|
+
├── refs/tags/ # Tag references
|
|
116
|
+
├── objects/ # Immutable plan snapshots
|
|
117
|
+
└── logs/ # Operation history
|
|
118
|
+
|
|
119
|
+
License
|
|
120
|
+
-------
|
|
121
|
+
|
|
122
|
+
Apache 2.0 — see LICENSE file.
|