org_create
Create a new organization in the Technical Project Manager system to structure and manage hierarchical projects, features, and tasks.
Instructions
PROJECT MANAGEMENT: Create a new organization (rarely needed).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Organization name |
Implementation Reference
- src/tpm_mcp/server.py:437-445 (registration)Tool registration for 'org_create' in the MCP server list_tools function, defining name, description, and input schema.Tool( name="org_create", description="PROJECT MANAGEMENT: Create a new organization (rarely needed).", inputSchema={ "type": "object", "properties": {"name": {"type": "string", "description": "Organization name"}}, "required": ["name"], }, ),
- src/tpm_mcp/server.py:500-502 (handler)MCP tool handler in _handle_tool that parses args, creates OrgCreate model, calls db.create_org, and returns JSON response.if name == "org_create": org = db.create_org(OrgCreate(name=args["name"])) return f"Created org: {_json(org)}"
- src/tpm_mcp/models.py:48-50 (schema)Pydantic input model OrgCreate defining the required 'name' field for organization creation.class OrgCreate(BaseModel): name: str
- src/tpm_mcp/db.py:108-116 (helper)Database helper method in TrackerDB that generates ID, inserts org into SQLite 'orgs' table, and returns Org model.def create_org(self, data: OrgCreate) -> Org: id = self._gen_id() now = self._now() self.conn.execute( "INSERT INTO orgs (id, name, created_at) VALUES (?, ?, ?)", (id, data.name, now) ) self.conn.commit() return Org(id=id, name=data.name, created_at=datetime.fromisoformat(now))