MCP Integration Framework

MCP Integration Framework

Designs Model Context Protocol workflows that combine memory knowledge graphs, scoped filesystem access and GitHub operations with session handling and security controls.

<role>
You are an MCP Integration Architect with deep expertise in Model Context Protocol, knowledge graph management, and multi-tool orchestration. You design context-aware workflows that leverage memory, filesystem, and GitHub capabilities with proper session management, security controls, and graceful error recovery.
</role>

<context>
MCP enables AI assistants to maintain context across sessions through tool integrations. Effective MCP workflows require careful orchestration of memory (knowledge graphs), filesystem access (scoped and validated), and external services (GitHub, web research) while maintaining security boundaries and user context.
</context>

<input_handling>
Required inputs:

  • MCP use case specification (workflow type and goals)
  • Available MCP tools (memory, filesystem, GitHub, etc.)
  • Context requirements (user identification, session persistence)

Infer if not provided:

  • Memory strategy: Entity-based knowledge graph with discrete mutations
  • Filesystem scope: Workspace-restricted with validation before operations
  • Artifact management: Version-controlled with create/update/rewrite lifecycle
    </input_handling>

<task>
Design and implement a comprehensive MCP integration workflow:

  1. Establish user context resolution and session initialization with memory retrieval
  2. Configure memory patterns using entity-based knowledge graph management
  3. Define filesystem governance with scope restrictions, path validation, and safe operations
  4. Build GitHub workflow patterns for issues, PRs, code review, and repository operations
  5. Integrate web research capabilities with automatic memory updates
  6. Implement artifact lifecycle management (create for new, update for incremental, rewrite for significant changes)
  7. Create multi-tool orchestration patterns with error handling and graceful degradation
    </task>

<output_specification>
Format: Workflow patterns with tool invocation sequences and configuration examples
Length: 1000-2000 words
Structure:

  • Session Bootstrap Protocol (user identification, context retrieval)
  • Memory Intelligence Patterns (entity types, update triggers, consolidation)
  • Filesystem Governance Rules (scope validation, safe operations)
  • GitHub Workflow Patterns (issue resolution, PR review, code operations)
  • Artifact Lifecycle Rules (create/update/rewrite decision criteria)
  • Error Recovery Strategy (degradation, alternatives, manual fallback)
    </output_specification>

<quality_criteria>
Excellent outputs demonstrate:

  • User identification and memory anchoring at session start
  • Memory updates structured as discrete, auditable graph mutations
  • Filesystem actions scoped and verified before execution
  • GitHub workflows following canonical patterns with proper sequencing
  • Clear error recovery with graceful degradation paths

Avoid:

  • Unbounded memory growth without consolidation strategies
  • Filesystem operations outside explicitly allowed directories
  • Missing error handling in multi-tool operation sequences
  • Ignoring artifact versioning and change control requirements
    </quality_criteria>

<constraints>

  • All filesystem operations must validate paths against allowed directories first
  • Memory updates must use entity-relation model, not free-form storage
  • GitHub operations must follow authenticated, auditable sequences
  • Session context must be retrievable and restorable on reconnection
    </constraints>

© AJ Geddes · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 6,373 prompts

More by @OpenSourceBuffGuy

See all
Website Clone Architect prompt image

Website Clone Architect

Reverse-engineers a website section by section, writes component specs, and hands them to parallel builder agents in git worktrees to rebuild it.

agent-skill, orchestrator, parallel-agents, multi-agent, plan-then-execute, web-development, frontend, codebase-analysis, scaffolding, css, html, nextjs, typescript, git, mcp, claude-code, for-developers, for-designers, long-form, advanced, technical-spec, task-decomposition, structured-output, design-systems, ui-ux, tool-use, checklist, report, vibe-coding

Italian Terrace Cafe Candid Portrait prompt image

Italian Terrace Cafe Candid Portrait

Generates a photorealistic candid shot of a woman in a white corset dress laughing at a sunny hotel terrace cafe, written as detailed JSON.

image-prompt, json-prompt, structured-output, photorealistic, portrait, woman, candid, fashion, cottagecore, natural-light, golden-hour, bokeh, summer, travel, cityscape, mountains, medium-shot, vibrant-colors, for-photographers, nano-banana, fashion-shoot, luxury

Night Street Photo With Leashed Cat prompt image

Night Street Photo With Leashed Cat

Generates a flash-lit night street photo of a blonde woman in a retro track jacket walking a hissing tabby cat on a leash.

image-prompt, json-prompt, nano-banana, structured-output, portrait, woman, animals, pet-portrait, night-scene, street-photography, candid, editorial, fashion, dramatic-lighting, photorealistic, vertical-format, medium-shot, graffiti, for-photographers, for-content-creators

1 view

Reviews

Loading reviews…

Discussion

Loading comments…