Skip to content

docs: agent documentation review pass (LFXV2-2468)#101

Open
emsearcy wants to merge 2 commits into
mainfrom
lfxv2-2468-agent-docs-review
Open

docs: agent documentation review pass (LFXV2-2468)#101
emsearcy wants to merge 2 commits into
mainfrom
lfxv2-2468-agent-docs-review

Conversation

@emsearcy

@emsearcy emsearcy commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR completes a review pass on agent documentation in the lfx-mcp repo (LFXV2-2468), covering three tasks:

1. Remove DEVELOPER.md

Removed DEVELOPER.md after verifying it contained no information missing from AGENTS.md. Preserved the flag+env table, stdio OAuth limitation note, and curl example in AGENTS.md where appropriate.

2. Review and refresh AGENTS.md

  • Replace hardcoded Go and SDK versions with references to go.mod
  • Replace env-var-only table with a combined flag+env table
  • Add stdio OAuth limitation note to Prerequisites
  • Remove pedantic/stale sections: Expected JSON-RPC Messages, Future Extensions (already implemented), Debugging Tips (duplicated Logging section, used wrong log pattern)
  • Fix SDK reference URL to point to main branch
  • Fix directory tree to reflect actual internal/ subdirectories

3. Add .github/copilot-instructions.md for Copilot cloud agent

Onboards the repository for GitHub Copilot cloud code reviews. Scoped to what a cloud agent needs to generate correct PRs without exploring the repo each time: CI rules (license header, active MegaLinter checks vs. disabled ones), project layout, tool-adding pattern, key conventions, and common pitfalls. Local developer workflow remains in AGENTS.md.

Jira: LFXV2-2468


🤖 Generated with GitHub Copilot (via OpenCode)

emsearcy added 2 commits June 22, 2026 09:54
- Remove DEVELOPER.md (no unique information was missing from AGENTS.md;
  the flag+env table, stdio OAuth note, and curl example have been
  preserved in AGENTS.md where needed)
- Replace hardcoded Go and SDK versions with references to go.mod
- Replace env-var-only table with combined flag+env table
- Add stdio OAuth limitation note to Prerequisites
- Remove Expected JSON-RPC Messages sub-section (pedantic, hard to keep
  current)
- Remove Future Extensions section (describes tools already implemented)
- Remove Debugging Tips section (duplicated the Logging section and used
  log.Printf which is the wrong pattern)
- Fix SDK reference URL to point to main branch instead of pinned tag
- Fix directory tree to reflect actual internal/ subdirectories

Assisted-by: github-copilot:claude-sonnet-4.6
Signed-off-by: Eric Searcy <eric@linuxfoundation.org>
Onboard the repository to GitHub Copilot cloud agent with instructions
covering CI rules (license headers, MegaLinter checks), project layout,
tool-adding patterns, key conventions, and common pitfalls.

Assisted-by: github-copilot:claude-opus-4.6
Signed-off-by: Eric Searcy <eric@linuxfoundation.org>
Copilot AI review requested due to automatic review settings June 22, 2026 18:24
@emsearcy emsearcy changed the title Add .github/copilot-instructions.md for Copilot cloud agent docs: agent documentation review pass (LFXV2-2468) Jun 22, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

Comment thread AGENTS.md
go version
```

> **Note:** The stdio transport only exposes the `hello_world` tool. All LFX data tools require OAuth authentication, which is only supported via the HTTP transport. There is currently no personal access token (PAT) capability in LFX, so running the full server locally for end-to-end use is not practical without a complete OAuth setup.

- Forgetting the license header on new files is the #1 cause of CI failure.
- New `.go` files without a package doc comment will fail the revive `package-comments` rule.
- The `defaultTools` list in `main.go` controls which tools are enabled; adding a Register call without adding the name to `defaultTools` means the tool is never active.
Comment thread AGENTS.md
├── cmd/
│ └── lfx-mcp-server/ # Main application entry point
├── internal/
│ ├── auth/ # OAuth token exchange and JWT validation
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