Skip to content

feat(mcp): add generate_questionnaire tool to MCP server and bridge#12

Draft
Copilot wants to merge 2 commits intoDevfrom
copilot/expand-mcp-and-bridge-function
Draft

feat(mcp): add generate_questionnaire tool to MCP server and bridge#12
Copilot wants to merge 2 commits intoDevfrom
copilot/expand-mcp-and-bridge-function

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 19, 2026

Adds a new MCP tool that generates a ready-to-import questionnaire pre-populated with sensible default answers, derived from the structure and examples of an existing questionnaire in the loaded workspace.

Changes

MCP/McpServer/Services/McpSessionManager.cs

  • Registers generate_questionnaire in BuildToolListResponse
  • Dispatches it in BuildToolCallResponseAsync
  • BuildGenerateQuestionnaireResponse implementation:
    • Resolves source questionnaire by ID or name
    • Metadata category: copies structure, resets PII (company/department/contact), preserves execution type and architectural role
    • Regular categories: each entry gets its first available example as an adopt answer
    • Response: Markdown summary of pre-filled entries + indented importable JSON block

mcp-bridge.js

  • Adds generate_questionnaire to handleListTools so VS Code Copilot discovers the tool

Example

generate_questionnaire(questionnaireId: "questionnaire-lj68pb5q")
→ "Sample Questionaire (Generated)" with all entries pre-filled

generate_questionnaire(questionnaireId: "questionnaire-lj68pb5q", name: "My New Service")
→ named questionnaire, same structure, importable JSON in response

Inputs: questionnaireId (required), name (optional, defaults to <source> (Generated))
Output: Markdown with per-category entry summary + complete JSON ready for SolutionInventory import.


📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

Co-authored-by: HerrLoesch <655110+HerrLoesch@users.noreply.github.com>
Copilot AI changed the title [WIP] Add content generation function for question catalog feat(mcp): add generate_questionnaire tool to MCP server and bridge Mar 19, 2026
Copilot AI requested a review from HerrLoesch March 19, 2026 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants