Skip to content

Outbound MCP client should support resources and prompts, not only tools #263

Description

@serge-ivo

Problem

The outbound MCP connector currently implements only:

  • tools/list via mcp_list_tools
  • tools/call via mcp_call_tool

For app-operating agents, that is incomplete. MCP servers can expose resources and prompts that provide context, files, design metadata, workflows, and reusable interaction templates. A PAGS MCP-client agent that only sees tools will be less capable and more likely to guess.

Expected behavior

PAGS outbound MCP should support the read-side MCP surfaces needed for useful agents:

  • resources/list
  • resources/read
  • prompts/list
  • prompts/get

These should use the same endpoint/auth/version-negotiation path as tools.

Acceptance criteria

  • A connected MCP endpoint can list available resources.
  • A connected MCP endpoint can read selected resources and inject/summarize them into agent context safely.
  • A connected MCP endpoint can list and fetch prompts.
  • Settings UI shows resources/prompts availability for the connection.
  • Access respects endpoint auth and instance grants/consent.
  • Large resource reads have size limits, pagination/continuation where applicable, and clear truncation behavior.
  • Tests cover JSON and SSE responses for resources/prompts, plus auth failure and unsupported-method responses.

Related

Code pointers

  • workers/api/src/lib/connectors/mcp.ts
  • workers/api/src/agent-think.ts
  • store/console/src/tabs/SettingsTab.tsx

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions