Skip to content

feat: implement MCP prompts support - #35

Closed
ezynda3 wants to merge 6 commits into
anomalyco:devfrom
mark3labs:handle-mcp-prompts
Closed

feat: implement MCP prompts support#35
ezynda3 wants to merge 6 commits into
anomalyco:devfrom
mark3labs:handle-mcp-prompts

Conversation

@ezynda3

Copy link
Copy Markdown
Contributor

Summary

  • Adds support for Model Context Protocol (MCP) prompts, which enable servers to define reusable prompt templates and workflows that clients can easily surface to users and LLMs. They provide a powerful way to standardize and share common LLM interactions.
  • Implements fetching prompts from MCP servers, registering them as commands, and handling structured responses with resources.

Test plan

  • Verify MCP prompts appear in the command list
  • Test executing prompts with and without arguments
  • Verify structured responses with resources are properly displayed

🤖 Generated with opencode

ezynda3and others added 6 commits May 18, 2025 15:02
Adds support for Model Context Protocol (MCP) prompts, which enable servers to define reusable prompt templates and workflows that clients can easily surface to users and LLMs. They provide a powerful way to standardize and share common LLM interactions.
Key changes:
- Fetch prompts from MCP servers
- Register prompts as commands with format `<mcp_server>:<prompt_name>`
- Create dialog for prompt arguments
- Process structured responses including resources
- Send formatted messages with attachments
🤖 Generated with opencode
Co-Authored-By: opencode <noreply@opencode.ai>
Updates the MCP Go SDK from v0.17.0 to v0.28.0 to ensure compatibility with the latest MCP protocol features.
🤖 Generated with opencode
Co-Authored-By: opencode <noreply@opencode.ai>
Refactors the MCP client handling to reuse the same client for fetching both tools and prompts from each server. This improves efficiency by:
- Creating a single client per server
- Fetching both tools and prompts in one pass
- Using a shared initialization process
- Properly managing client lifecycle
🤖 Generated with opencode
Co-Authored-By: opencode <noreply@opencode.ai>
@thdxr

Copy link
Copy Markdown
Member

closing as we rewrote the codebase - appreciate it though!

@thdxrthdxr closed this Jun 14, 2025
randomm referenced this pull request in randomm/opencode Jan 9, 2026
Remove development artifacts and nested source code that don't belong in this configuration repository:
- opencode_repo/ (nested Git repository kept for reference)
- tests/ and requirements-test.txt (development artifacts)
- Cache files (.coverage, .mypy_cache/, .DS_Store)
- Deprecated files (.env.example, .screenrc, opencode.json.backup)
This cleanup keeps the repository focused on its core purpose: agent configurations, prompts, instructions, and documentation.
@groeimetai

Copy link
Copy Markdown

✅ Fixed in v9.0.166

This issue has been fully resolved. All console.log statements in the servicenow-mcp-unified MCP server have been converted to console.error to comply with the MCP protocol specification.

Changes Made

Core initialization files:

  • shared/tool-registry.ts - 6 statistics lines → stderr
  • server.ts - 10 statistics lines → stderr
  • index.ts - 2 SIGINT/SIGTERM handlers → stderr
  • shared/permission-validator.ts - 5 permission logs → stderr

Tool execution files:

  • ml_train_incident_classifier.ts - 3 training logs → stderr
  • ml_train_anomaly_detector.ts - 1 epoch log → stderr
  • ml_train_change_risk.ts - 1 epoch log → stderr
  • snow_create_rest_message.ts - 1 fallback log → stderr

Verification

The enterprise-proxy MCP server was already compliant (only using console.error).

After this fix, running:

node dist/mcp/servicenow-mcp-unified/index.js 2>/dev/null

Should produce no output on stdout, ensuring clean JSON-RPC communication with Claude Desktop.

Update

npm install -g snow-flow@latest

Commit:serac-labs/serac@b4715b00
Release:https://github.com/groeimetai/snow-flow/releases/tag/v9.0.166

Sign up for freeto 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.

3 participants

@ezynda3@thdxr@groeimetai