Skip to content

Commit d923730

Browse files
committed
Rename project from 'struct' to 'structkit' to avoid Python stdlib conflict
- Update package name in pyproject.toml to 'structkit' - Update CLI entry point from 'struct' to 'structkit' - Update repository URLs to point to structkit - Update MCP server name to 'structkit-mcp-server' - Update Docker Compose service names - Update all string references throughout project
1 parent 890bbe0 commit d923730

5 files changed

Lines changed: 18 additions & 18 deletions

File tree

docker-compose.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
services:
2-
struct-dry-run:
2+
structkit-dry-run:
33
build: .
44
volumes:
55
- .:/app
@@ -17,7 +17,7 @@ services:
1717
"/app/example/structure.yaml",
1818
"/app/example_project"
1919
]
20-
struct-test:
20+
structkit-test:
2121
build: .
2222
volumes:
2323
- .:/app

docs/mcp-integration.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ Add the following to your Claude Desktop configuration file:
130130
```json
131131
{
132132
"mcpServers": {
133-
"struct": {
134-
"command": "struct",
133+
"structkit": {
134+
"command": "structkit",
135135
"args": ["mcp", "--server"],
136136
"cwd": "/path/to/your/project"
137137
}
@@ -146,8 +146,8 @@ For Cline (VS Code extension), add to your `.cline_mcp_settings.json`:
146146
```json
147147
{
148148
"mcpServers": {
149-
"struct": {
150-
"command": "struct",
149+
"structkit": {
150+
"command": "structkit",
151151
"args": ["mcp", "--server"]
152152
}
153153
}
@@ -189,7 +189,7 @@ from mcp.client.stdio import stdio_client
189189

190190
async def main():
191191
server_params = StdioServerParameters(
192-
command="struct",
192+
command="structkit",
193193
args=["mcp", "--server"]
194194
)
195195

@@ -277,15 +277,15 @@ The MCP server respects the same environment variables as the regular struct too
277277
#### 1. Basic Configuration
278278
```json
279279
{
280-
"command": "struct",
280+
"command": "structkit",
281281
"args": ["mcp", "--server"]
282282
}
283283
```
284284

285285
#### 2. With Custom Structures Path
286286
```json
287287
{
288-
"command": "struct",
288+
"command": "structkit",
289289
"args": ["mcp", "--server"],
290290
"env": {
291291
"STRUCT_STRUCTURES_PATH": "/path/to/custom/structures"

pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = ["setuptools>=65.0", "wheel"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
6-
name = "struct"
6+
name = "structkit"
77
version = "1.0.0"
88
description = "A structured data processing tool"
99
readme = "README.md"
@@ -45,8 +45,8 @@ gcs = [
4545
"google-api-core>=2.11.0",
4646
]
4747
cloud = [
48-
"struct[s3]",
49-
"struct[gcs]"
48+
"structkit[s3]",
49+
"structkit[gcs]"
5050
]
5151
dev = [
5252
"pytest>=7.0.0",
@@ -57,11 +57,11 @@ dev = [
5757
]
5858

5959
[project.urls]
60-
Homepage = "https://github.com/httpdss/struct"
61-
Repository = "https://github.com/httpdss/struct.git"
60+
Homepage = "https://github.com/httpdss/structkit"
61+
Repository = "https://github.com/httpdss/structkit.git"
6262

6363
[project.scripts]
64-
struct = "struct_module.main:main"
64+
structkit = "struct_module.main:main"
6565

6666
[tool.setuptools]
6767
include-package-data = true

struct_module/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
def get_parser():
2323
parser = argparse.ArgumentParser(
2424
description="Generate project structure from YAML configuration.",
25-
prog="struct",
25+
prog="structkit",
2626
epilog="Thanks for using %(prog)s! :)",
2727
)
2828

struct_module/mcp_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class StructMCPServer:
2424
"""FastMCP-based MCP Server for struct tool operations."""
2525

2626
def __init__(self):
27-
self.app = FastMCP("struct-mcp-server", version="1.0.0")
27+
self.app = FastMCP("structkit-mcp-server", version="1.0.0")
2828
self.logger = logging.getLogger(__name__)
2929
self._register_tools()
3030

@@ -94,7 +94,7 @@ def _get_structure_info_logic(self, structure_name: Optional[str], structures_pa
9494
for folder, content in item.items():
9595
result_lines.append(f" - {folder}\n")
9696
if isinstance(content, dict):
97-
structs = content.get("struct")
97+
structs = content.get("structkit")
9898
if isinstance(structs, list):
9999
result_lines.append(" • struct(s):\n")
100100
for s in structs:

0 commit comments

Comments
 (0)