MCP server: add tools to send and read file attachments
I maintainer di solito rispondono entro 1 giorno
@marceloschmidt ci sta già lavorando.
Dal 29/11/2026.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- javascript, typescript
Direzione di ricerca
Start with ALLOWED_TOOL_NAMES in apps/meteor/ee/server/api/mcp/catalog.ts and the rooms.media and rooms.mediaConfirm routes in apps/meteor/server/api/v1/rooms.ts. Trace how MCP tools accept JSON arguments and how the routes handle multipart uploads and confirmation. Done means an MCP tool can send a file attachment with a message in a room or DM; the issue does not name tests to run.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What
The Rocket.Chat MCP server can't send a file, and it can't read one.
- It can post text messages (
post_chat_postMessage,post_chat_sendMessage), but it has no upload tool. When an agent needs to share a file in a room or DM, it can only paste the file's contents as text. - It can read messages, and a message with an attachment carries the file's ID and URL, but no tool returns the file itself. An agent can't open a document someone attached, or see a screenshot.
Why
An agent was asked to send a .md spec as an attachment in a DM. The connector couldn't do it, so the agent opened the web client in the user's browser and uploaded the file there. A connector that can post messages should be able to attach files to them too.
The reverse is as common: a user attaches a file and asks the agent about it. Today the agent sees that a file exists and nothing more.
Current state
ALLOWED_TOOL_NAMESinapps/meteor/ee/server/api/mcp/catalog.tslists no upload routes. The onlyuploadsentry is the commented-outpost_uploads_delete.- Uploads go through
rooms.media/:ridfollowed byrooms.mediaConfirm/:rid/:fileId(apps/meteor/server/api/v1/rooms.ts).rooms.mediatakes a multipart body, but MCP tool calls carry JSON arguments. Adding the route to the allow-list therefore isn't enough on its own. - Files are served from
/file-upload/:id/:name, a plain HTTP route, not a typed REST endpoint, so the catalog can't expose it. Its response is the raw file, while a tool call returns JSON. tools/callreturns every result as one text block. For the model to see an image, the result has to be an MCPimageblock.
- Lingua principale
- TypeScript
- Stelle
- 46.6k
- Fork
- 14.2k
- Merge medio
- 2g 21h
- PR unite (30g)
- 302
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di RocketChat/Rocket.Chat
-
ModerationConsoleTable renders blank area instead of error state when query failsForse già presa @Siddharth-singh18 l’ha presa 2 giorni fa. Apertatype: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
RocketChat/Rocket.Chat#44109 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Composer clears message text when the first uploaded file's media confirmation failsForse già presa @Sravan-0802 l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
RocketChat/Rocket.Chat#44087 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Subsequent OAuth logins overwrite persisted service fields (e.g. refreshToken) with nullForse già presa @ayushbuilds-code l’ha presa 4 giorni fa. Apertatype: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
RocketChat/Rocket.Chat#44053 · 4 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Custom OAuth callback times out when Merge roles from SSO is enabledForse già presa @Pantkartik l’ha presa 6 giorni fa. Apertatype: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
RocketChat/Rocket.Chat#44005 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Heads-up: Issue Dedupe workflow pins claude-sonnet-4-5-20250929, which Anthropic retires Nov 30Forse già presa @Ravichandra531 l’ha presa 6 giorni fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 70/100
RocketChat/Rocket.Chat#43944 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di RocketChat/Rocket.Chat
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
zabuton-app/meguri#875 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100
iruzen-dono/workless#117 ·
I maintainer di solito rispondono entro 1 giorno
-
area:api area:web wave wave:trivial
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
vetro-protocol/vetro-monorepo#1321 ·
I maintainer di solito rispondono entro 1 giorno