pjkm.mcp.server¶
pjkm MCP server — expose project scaffolding as MCP tools and resources.
Install: pip install pjkm[mcp] Run: python -m pjkm.mcp
pjkm-mcp fastmcp run pjkm.mcp.server:mcp
Attributes¶
Functions¶
|
Create a new Python project with pjkm. |
|
Add package groups to an existing pjkm project. |
|
Preview what a project would look like without creating it. |
List all 22 available project recipes. |
|
|
List available package groups, optionally filtered by category. |
|
Get detailed information about a specific package group. |
|
Search the pjkm registry for community group packs. |
|
Create a custom recipe YAML file for reuse. |
|
Scan an existing project and suggest pjkm groups to adopt. |
|
Show the pjkm status of a project. |
All available pjkm recipes with full details. |
|
All 105 groups organized by category. |
|
|
Detailed info for a specific group. |
Community group pack registry. |
|
Available project archetypes. |
|
Workspace blueprints for multi-service platforms. |
|
Group categories with counts. |
|
|
Recommend the best pjkm recipe and groups for a project. |
|
Design a multi-service architecture using pjkm workspace blueprints. |
|
Guide for scaffolding an AI agent project. |
|
Run the pjkm MCP server. |
Module Contents¶
- pjkm.mcp.server.init_project(name, recipe=None, archetype=None, groups=None, directory='.')[source]¶
Create a new Python project with pjkm.
Use recipe for a pre-configured setup (e.g. “fastapi-service”, “ai-agent”), or specify archetype + groups for custom composition.
- Parameters:
name (str) – Project name (e.g. “my-api”)
recipe (str | None) – Recipe name (overrides archetype/groups). See list_recipes().
archetype (str | None) – Project archetype: single-package, service, poly-repo, script-tool
groups (list[str] | None) – List of group IDs to include (e.g. [“api”, “database”, “redis”])
directory (str) – Parent directory to create the project in
- Returns:
Summary of what was created.
- Return type:
- pjkm.mcp.server.add_groups(groups, directory='.')[source]¶
Add package groups to an existing pjkm project.
Merges dependencies into pyproject.toml, renders scaffolded files, and updates [tool.pjkm.groups].
- pjkm.mcp.server.preview_project(recipe=None, archetype=None, groups=None)[source]¶
Preview what a project would look like without creating it.
Shows the file tree, dependencies, and workflows that would be generated.
- pjkm.mcp.server.list_recipes()[source]¶
List all 22 available project recipes.
Returns recipe names, archetypes, group counts, and descriptions. Use a recipe name with init_project() to create a project.
- Return type:
- pjkm.mcp.server.list_groups(category=None)[source]¶
List available package groups, optionally filtered by category.
- pjkm.mcp.server.get_group_info(group_id)[source]¶
Get detailed information about a specific package group.
- Parameters:
group_id (str) – Group ID (e.g. “database”, “langchain”, “api”)
- Returns:
description, category, dependencies, scaffolded files, required groups, and pyproject.toml tool config.
- Return type:
Full details
- pjkm.mcp.server.search_registry(query='')[source]¶
Search the pjkm registry for community group packs.
- pjkm.mcp.server.create_recipe(name, archetype, groups, description='', directory='.')[source]¶
Create a custom recipe YAML file for reuse.
Saves a recipe definition that can be shared via git or group sources.
- pjkm.mcp.server.adopt_project(directory='.')[source]¶
Scan an existing project and suggest pjkm groups to adopt.
Detects frameworks and tools from pyproject.toml, requirements.txt, and project structure (Dockerfile, alembic/, etc.).
- pjkm.mcp.server.project_status(directory='.')[source]¶
Show the pjkm status of a project.
Displays applied groups, archetype, and dependency drift.
- pjkm.mcp.server.get_recipes_resource()[source]¶
All available pjkm recipes with full details.
- Return type:
- pjkm.mcp.server.get_blueprints_resource()[source]¶
Workspace blueprints for multi-service platforms.
- Return type:
- pjkm.mcp.server.project_advisor(description)[source]¶
Recommend the best pjkm recipe and groups for a project.
Given a description of what the user wants to build, analyze the requirements and suggest the optimal recipe, archetype, and groups.
- pjkm.mcp.server.architecture_advisor(requirements)[source]¶
Design a multi-service architecture using pjkm workspace blueprints.
Given system requirements, suggest a workspace layout with services, shared libraries, and infrastructure.