knative / knative/func

mcp: either register prompts or set HasPrompts to false

Open
#3,734 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
365
Forks
223
Avg merge
2d 3h
Merged PRs (30d)
25

Description

Problem

pkg/mcp/mcp.go sets HasPrompts: true on ServerOptions, but New() only registers tools and resources thus no prompts are added anywhere under pkg/mcp/.

Clients that trust capability flags may assume prompts exist when they do not.

Options

  1. Set HasPrompts: false until prompts are implemented, or
  2. Add one or more MCP prompts (e.g. guided “create / build / deploy” workflow) and tests.

References

  • pkg/mcp/mcp.go (HasPrompts: true, tools/resources registration below).

I guess this is kind of bug or area of implementing mcp. But will sure add a good solution :)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in pkg/mcp/mcp.go, inspect ServerOptions and the registrations performed by New(). Confirm how the advertised prompt capability relates to the absence of registered prompts, then choose and document one of the issue's two options. Done means the capability accurately reflects the server behavior, with tests covering the selected behavior if prompts are added.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.