Skip to content

feat(mcp): return source file and generated flag of resources - #240

Merged
ionos-landgraf-vin merged 2 commits into
mainfrom
feat/mcp-source-info
Nov 6, 2026
Merged

ionos-landgraf-vin merged 2 commits into
mainfrom
feat/mcp-source-info

Conversation

@ionos-landgraf-vin

Copy link
Copy Markdown
Collaborator

Summary

  • query (brief and complete) returns source (path:line, relative to the resources root) and generated for every hit; sources lists all contributing files when documents were merged.
  • brief output always includes kind, so a hit can feed analyze_resource(kind, name).
  • analyze_resource shows the same for the target, plus a related list for its direct relations.
  • Web API output is unchanged (opt-in via with_source:).

Closes #234

Test plan

  • New tests in test/mcp/tools_test.rb (kind-prefixed brief, generated + merged sources, analyze related)
  • Full suite: 2656 runs, 0 failures
  • rubocop clean
  • steep not run

🤖 Generated with Claude Code

ionos-landgraf-vin and others added 2 commits November 6, 2026 09:02
query and analyze_resource now report source (path:line relative to the
resources root), generated and, for merged documents, sources. Brief
output always names the kind. analyze_resource lists the same for its
direct relations.

Closes #234

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…r steep

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@ionos-landgraf-vin
ionos-landgraf-vin merged commit c73ba3b into main Nov 6, 2026
8 checks passed
@ionos-landgraf-vin
ionos-landgraf-vin deleted the feat/mcp-source-info branch November 6, 2026 08:15
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.

MCP: Return the source file and generated flag of resources in MCP query results

1 participant