pvc-mcp-server 0.2.0__py3-none-any.whl
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/__init__.py +93 -0
- pvc_mcp/__main__.py +10 -0
- pvc_mcp/server.py +2267 -0
- pvc_mcp_server-0.2.0.dist-info/METADATA +122 -0
- pvc_mcp_server-0.2.0.dist-info/RECORD +8 -0
- pvc_mcp_server-0.2.0.dist-info/WHEEL +4 -0
- pvc_mcp_server-0.2.0.dist-info/entry_points.txt +2 -0
- pvc_mcp_server-0.2.0.dist-info/licenses/LICENSE +190 -0
pvc_mcp/__init__.py
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
"""
|
|
4
|
+
Plan Version Control (PVC) MCP Server
|
|
5
|
+
======================================
|
|
6
|
+
|
|
7
|
+
A Git-like version control system for AI agent decision tracking.
|
|
8
|
+
|
|
9
|
+
Core philosophy:
|
|
10
|
+
- Traditional agents remember chat content
|
|
11
|
+
- PVC agents remember the decision evolution process
|
|
12
|
+
|
|
13
|
+
Quick Start:
|
|
14
|
+
# Start as an MCP server
|
|
15
|
+
python -m pvc_mcp
|
|
16
|
+
|
|
17
|
+
# Or use in code
|
|
18
|
+
from pvc_mcp.server import mcp, init_plans_directory
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
__version__ = "0.2.0"
|
|
22
|
+
__author__ = "FlyAIBox"
|
|
23
|
+
__license__ = "Apache-2.0"
|
|
24
|
+
|
|
25
|
+
# Re-export commonly used functions for convenience
|
|
26
|
+
from pvc_mcp.server import (
|
|
27
|
+
# Core
|
|
28
|
+
init_plans_directory,
|
|
29
|
+
get_current_head,
|
|
30
|
+
get_current_branch,
|
|
31
|
+
# Version management
|
|
32
|
+
plan_commit,
|
|
33
|
+
plan_diff,
|
|
34
|
+
plan_checkout,
|
|
35
|
+
plan_show,
|
|
36
|
+
plan_log,
|
|
37
|
+
# Branch management
|
|
38
|
+
plan_branch,
|
|
39
|
+
plan_branch_list,
|
|
40
|
+
plan_switch,
|
|
41
|
+
plan_merge,
|
|
42
|
+
plan_delete_branch,
|
|
43
|
+
plan_reset,
|
|
44
|
+
# Advanced
|
|
45
|
+
plan_tag,
|
|
46
|
+
plan_tag_list,
|
|
47
|
+
plan_cherry_pick,
|
|
48
|
+
plan_revert,
|
|
49
|
+
plan_status,
|
|
50
|
+
plan_stash,
|
|
51
|
+
# Low-level
|
|
52
|
+
generate_version_id,
|
|
53
|
+
read_plan_object,
|
|
54
|
+
write_plan_object,
|
|
55
|
+
update_head,
|
|
56
|
+
# MCP instance
|
|
57
|
+
mcp,
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
__all__ = [
|
|
61
|
+
"__version__",
|
|
62
|
+
# Core
|
|
63
|
+
"init_plans_directory",
|
|
64
|
+
"get_current_head",
|
|
65
|
+
"get_current_branch",
|
|
66
|
+
# Version management
|
|
67
|
+
"plan_commit",
|
|
68
|
+
"plan_diff",
|
|
69
|
+
"plan_checkout",
|
|
70
|
+
"plan_show",
|
|
71
|
+
"plan_log",
|
|
72
|
+
# Branch management
|
|
73
|
+
"plan_branch",
|
|
74
|
+
"plan_branch_list",
|
|
75
|
+
"plan_switch",
|
|
76
|
+
"plan_merge",
|
|
77
|
+
"plan_delete_branch",
|
|
78
|
+
"plan_reset",
|
|
79
|
+
# Advanced
|
|
80
|
+
"plan_tag",
|
|
81
|
+
"plan_tag_list",
|
|
82
|
+
"plan_cherry_pick",
|
|
83
|
+
"plan_revert",
|
|
84
|
+
"plan_status",
|
|
85
|
+
"plan_stash",
|
|
86
|
+
# Low-level
|
|
87
|
+
"generate_version_id",
|
|
88
|
+
"read_plan_object",
|
|
89
|
+
"write_plan_object",
|
|
90
|
+
"update_head",
|
|
91
|
+
# MCP instance
|
|
92
|
+
"mcp",
|
|
93
|
+
]
|