About Agent Foyer
Agent Foyer is an MCP server published by AIsa-team in the Blockchain category: a place where agents work: identity, context, a place to ship, resources and guardrails for your agents, over MCP. Conduid read 99 tools from its source: add_lark_columns, ai_resources, app_guide, browse_connection, call_app, call_connected_tool and 93 more. No package is published for it, so it installs from a source checkout.
The repository has 26 stars and 2 forks, and its last commit was on 15 Nov 2026. Conduid has no tagged release on record for it. Its topics include agent-native, ai-native, internal-tools, lark and self-hosted.
Install
git clone https://github.com/AIsa-team/agent-foyerTools (99)
add_lark_columnsAdd columns at the end of a table the user named (Lark Base table, or a spreadsheet sheet where row 1 holds the names), as the user. Existing columns are never renamed, removed or changed; names that exist are skipped. Use it when the app must keep something the table has no column for.ai_resourcesWhether apps on this hub can use AI models (and data APIs) through /__hub/ai without a key of their own: the provider, every model it offers, whether data APIs are there, the daily limits, and how to call it. See app_guide for using it in an app.app_guideHow to build, publish and report on an app on this hub, step by step (data, interface, hub SDK, checks, report). Call it before building or changing an app.browse_connectionWhat a data connection can read (e.g. Metabase questions), searchable, to register one with save_data_source (connection + item); for connections that run SQL, also the databases (connection + database + sql). Dashboards (boards: true) are for admins importing them.call_appTake one operation an app offers to agents (see list_apps), as the user and with their access: <table>.find / .add / .update on the app's Lark tables, or one of its own actions (the app sees who you act for and that an agent made the call). Operations with write: true change data: tell the user what you will do and call after they agree, unless they asked beforehand for it to be done without asking. Returns what the table or the app answered.call_connected_toolCall one tool of a connected service (see list_connected_tools) as the user, with their own account and access there. Tools not marked readOnly can change things (create, update, comment, delete): tell the user what you will do and call after they agree, unless they asked beforehand for it to be done without asking. Returns what the service answered.check_alert_ruleCheck an alert rule right now and return its value and state. With notify (default true) due messages go out (if the hub can message people), still subject to the cooldown, quiet hours and the admins-only setting; notify=false only checks.check_new_messagesThe user's new Lark messages since the last check (at most once a minute), grouped by conversation: direct chats, and groups where they were @mentioned or that they chose to watch. Bot messages are left out unless they @mention the user, and so are the user's own; you_replied says the user already answered. Shadow mode: predict with record_prediction, never send. Each message may carry reactions (Lark's emoji replies, 表情回复), e.g. ["OK (me)", "THUMBSUP (周明)"]: "me" is the user, and a reaction is an answer in itself.check_skill_updatesGiven installed skills (from their .hub-skill.json), return those with newer versions in the market.check_slugCheck whether a subdomain is free (<slug>.${config.appsDomain}). Your own existing apps count as available (publishing updates them).create_app_requestAsk for an app (需求) on the user's behalf: put it in the pool for whoever has time (posted to the team's Lark group) or invite one colleague. Write it so a builder can start: the problem, who will use it, where the data is (a Lark table link…), what done looks like. First list_app_requests (query) and list_apps for something that already does it. Show the user the text and who it goes to, and submit after they agree.create_lark_baseCreate a Lark Base (multidimensional table) as the user for an app to keep its records in, with the tables and columns the app needs. Use it when the user named no table: business records belong in Lark, not in the app. The first column of each table is its title column (make it text, e.g. the customer name). Works before or after the app is published: once the app declares it (set_app_lark), it is shared with whoever may open the app and re-shared when that changes. Returns links with ?table= to pass to set_app_lark.create_lark_docCreates a Lark document from Markdown as the user (they own it) and returns its link. Headings, lists, tables, quotes, code and links carry over; images are left out. Without parent it goes to the user's own space; parent can be a wiki page (the document becomes a page under it) or a Drive folder. Show the user the outline first if they have not seen the content, and send them the link afterwards.create_uploadGet a one-time upload URL (valid 30 min) and the shell command to upload a project folder as a .tar.gz${LARK ? ', or (purpose "file") one file as it is, for send_lark_message or upload_lark_file' : ''}.delete_alert_ruleDelete an alert rule you own.delete_appPermanently delete your app, its files and its subdomain. Only call after the user explicitly confirms.delete_boardDelete a data board (same permissions as save_board; someone's own board only by them).delete_checkDelete a data check you created (and its issues).delete_data_sourceRemove a data source you registered (home modules and alert rules using it stop working).delete_resourceAdmin only. Remove a link (kind=resource) or a whole group with its links (kind=group) from the resources page.edit_lark_docChanges a Lark document as the user: edits replace the whole text of table cells or paragraphs by their id (from read_lark_doc with tables: true; a line break starts a new paragraph in a cell), written with inline Markdown as read: **bold**, *italic*, ~~strikethrough~~, `code`, [links](https://…) (\* for a literal *); @mentions cannot be written, so a replaced cell loses its mentions. append adds Markdown at the end. The user can only change documents they may edit in Lark, and Lark shows them as the editor. Read the document first, change only what the user meant, and keep everything else.find_colleaguesSearch company colleagues by name or email (for members access).find_lark_chatFinds Lark group chats the user is in (or may see) by a word in their name or a member's name, as the user, only if they turned reading on. Returns chat_id and name for read_lark_messages.get_app_requestOne app request in full: what is needed and why, who asked, who else needs it (with their notes), its state and what the user may do with it (can). To build it: take it (update_app_request take), follow app_guide, and publish_app with request_id.get_app_sourceDownload command for the code of an app's live version (owner, collaborators and admins), to change an app you did not build on this machine. Start from it instead of an old local copy.get_app_statusStatus, recent releases with build logs, and runtime logs of one of your apps.get_backtestA backtest waiting to be answered (the oldest, or the one named), blind: two versions of the twin's documents as A and B, and past messages as they stood then, without what the user did. Answer it in a session that did not write the change, then submit_backtest.get_company_okrsEveryone's Lark OKRs for a period (default: current), read with the user's Lark access: each objective with owner, progress and what it aligns to, the company's objectives, objectives not aligned to anything, each person's average progress and who has no OKRs yet. Good for OKR reviews and weekly reports.get_homepageRead a hub home page layout plus the departments you belong to / can configure. Start from this before changing a home page. For scope me it is the page as the user sees it: the company or department layout it is built on (modules with own: false) with their changes, and their own modules (own: true).get_libraryThe hub resources page: company mission/vision/values and grouped links (sections: policies, brand), with ids and every language.get_okrsLark OKRs with the user's Lark access: objectives and key results with progress (0–1) for a period (default: current), the overall progress and how much of the period has passed.import_boardAdmins: import (or sync) a dashboard of a data connection, e.g. a Metabase dashboard, as boards on the Data page: each chart's question becomes a data source (new ones seen by admins only unless you pass an audience), each card a module, one board per tab. Find dashboards with browse_connection (boards: true). Importing the same dashboard again rebuilds its boards.inspect_app_dataFetch the rows a hub app serves for a data source, as the user would get them: field names and types the hub inferred, row count, how many rows have _id / _url, and 5 sample rows. Use it to check a data app before save_data_source.inspect_baseLook inside a Lark Base (Bitable) or spreadsheet link with the user's Lark access. Base: its tables, and for the chosen table (from ?table= in the link, or `table`) the fields with their types and 5 sample rows. Spreadsheet: its sheets, and for the chosen sheet (?sheet= or `table`) the columns from row 1 and the last 5 rows.install_skillGet the download command to install (or update) a skill from the company market.lark_data_statusWhether the user has connected their Lark data (needed before reading Base tables). If not, returns the link they open once to approve.list_alert_rulesAlert rules the user owns or is told about, with their current state (ok / firing / error / paused).list_app_requestsApp requests (需求): apps colleagues need and want someone to build. Pool requests are open to everyone; invitations only to the people involved. status: open (waiting for someone), taken, done, closed, all; mine: the ones the user asked for, was invited to, builds or also needs; query: words in title or text.list_appsApps the user may open, and the operations an agent can take in each (call_app). Pass app for that app's operations with their input schemas (table columns, select options); query narrows the list by words in names, descriptions and operations.list_boardsData boards on the hub's Data page that the user can see, with their layouts: company and department boards, their own boards (mine, with whom they share them) and colleagues' boards shared with them; plus the departments they may build boards for.list_calendar_eventsThe user's own events in their Lark primary calendar, read with their Lark access: title, start and end (company time zone), all-day or not, location, meeting rooms, video meeting link, organizer, link to the event and its description. Recurring events are expanded; cancelled ones are left out. Dates are YYYY-MM-DD in the company time zone; default today; at most 31 days.list_checksAll data checks: rule, level, data source, how many issues each found last time.list_connected_toolsOther services the company reaches through the hub (e.g. Linear), each with the user's own account there, or shared: one company credential for everyone, nothing to connect. Without service: which services the user may use and whether they connected their account (if not, give them connectUrl). With service: its tools with descriptions and input schemas; readOnly says the service marked a tool as only reading.list_connectionsThe data connections (e.g. Metabase) admins set up on the hub's admin page: anyone can read through them into their own data sources (browse_connection, then save_data_source); sql says it can also run a read-only SQL query. Admins also get their settings and status, never their keys: keys are only ever entered on the admin page, never through an agent.list_data_sourcesData sources registered in the hub (id, title, what it counts, link, owner): Lark Base tables, data apps, and items read through a data connection (e.g. Metabase questions; only those the user may see are listed). Start here when the user asks about company numbers; the description says how each one counts (who is left out, time zone, window).list_feedbackWhat colleagues said about the apps and Skills you own (bugs, missing features, confusing steps), newest first, with who said it, where from (hub page, the button inside the app, or their agent) and any details the sender added (context). Default: open items on everything you own.list_issuesData issues the user may see: per check the records to fix, with owners; mine_only for the ones assigned to the user.list_lark_wikiThe pages under a Lark wiki page (title, link, type, when created), with the user's own Lark access, e.g. to find a page by its title among many. title keeps the pages whose title contains it.list_my_appsApps you own or collaborate on (myRole says which).list_okr_periodsLark OKR periods (id, name, date range when it can be read from the name).list_predictionsFor the daily reflection: your predictions whose outcome is known and that you have not learned from yet (all: true for every recent one), with your predicted reply and the user's actual one.list_skillsSkills in the company market, with your installed version.my_message_historyThe user's past Lark conversations, for the twin's cold start and replay. Without chat_id: the conversations of the last `days` (default 30, at most 90). With chat_id: that conversation's latest messages from people, about 100 a page in time order, with the bot messages that matter to them (ones people replied to or answered right after, or that @mention the user; from "bot"); other bot messages are left out and counted. older_page_token as page_token reads further back. Learn from what the user answered to what, and what they left unanswered; keep conclusions with remember, never the messages. Each message may carry reactions (Lark's emoji replies, 表情回复), e.g. ["OK (me)", "THUMBSUP (周明)"]: "me" is the user, and a reaction is an answer in itself.preview_homepageValidate a home page layout and get a private preview link (valid 24h, only you can open it). Send the link to the user and wait for their OK before save_homepage.publish_appPublish (or update) an app from an upload. First publish needs name. Choose name, subdomain and icon yourself unless the user gave them; a new app is private unless visibility says otherwise. Follow app_guide.publish_skillPublish an uploaded skill folder to the company Skill market (new version if it already exists). Pass localized market text for every hub language.query_dataRun a query on a data source as the user and see the numbers (use this to check a chart or alert before saving it).read_data_rowsThe rows of a data source themselves (not totals), read with the user's own access: optionally filtered, only some fields, sorted, at most 200. Use it to answer questions like "who paid for the first time last week"; use query_data for counts and sums.read_lark_docReads a Lark document (or the document behind a wiki page) as Markdown, with the user's own Lark access: policies, SOPs, meeting notes, specs, reports. Give its link. tables: true also returns each table under the heading it sits under, row by row, each cell with its id, text and the people @mentioned in it, for edit_lark_doc. A link to a file in the wiki or Drive (e.g. an uploaded HTML page) returns the file: its text when it is a small text file (HTML, Markdown, CSV, JSON…), and always a download link valid 10 minutes.read_lark_messagesReads one Lark conversation as the user, only if they turned reading on (Me page, Lark data card): their direct chat with a colleague (e.g. what they replied) or a group chat (chat_id from find_lark_chat). Recent messages, oldest first, with sender, time (company time zone) and text; files and images come with a download link valid 10 minutes. Read only the conversation the user asked about. Each message may carry reactions (Lark's emoji replies, 表情回复), e.g. ["OK (me)", "THUMBSUP (周明)"]: "me" is the user, and a reaction is an answer in itself.read_skillReads a Skill from the company market without installing it: its SKILL.md instructions (always the latest version) and the list of its other files; pass file to read one of them. For agents that cannot install Skills (hosted agents, scheduled tasks) or a task that should always follow the latest version: read it and follow it as if it were installed. Scripts in it need an agent that can run commands; otherwise do their steps with the tools you have.recall_memoryThe twin's memories: in full (detail, source, validity) by ids from twin_context (up to 50) or by words to search for; with neither, every memory that holds, one line each (to merge or correct them).record_predictionShadow mode: records your prediction for a message someone sent the user (from check_new_messages): whether they would reply, how urgently, and what they would say. Nothing is sent. Live, the hub later fills in what the user actually did. For past messages (cold start), pass replay with what the user did.rememberAdds one memory to the twin's Base (one fact per memory, with its source), or changes one by id. A memory that got something wrong is corrected in place (Lark keeps the record's history); mark it replaced (with replaced_by) when a newer one supersedes it, or wrong only when nothing true is left. Never delete. Things that change get valid_until. Do not keep message text, sensitive personal matters about colleagues, or passwords and codes.reset_homepageRemove a customised home page so it falls back to the department / company / built-in default (for scope me: drop all of the user's own changes).resolve_feedbackMark a feedback item done (fixed and published) or declined (will not change), with a short reply in the language the person wrote in. The person who sent it gets a message.review_predictionAfter comparing a prediction with what the user did: why it differed (cause), how close your reply was (1–5), and that you learned from it (distilled). replied_elsewhere when the user tells you they answered another way.run_checksRun one data check (id) or all of them now, and return the results.save_alert_ruleCreate (no id) or update an alert rule on a data source. Checked every every_minutes as you; it shows on the home pages of you and the recipients${MESSAGES ?save_boardCreate or replace a data board on the Data page. scope "me": the user's own board (anyone may make any number; only they change it; private unless shared with share). "company": everyone sees it, admins only. "department" (with department_id): its members see it, its leaders change it. An existing board keeps its scope. Same modules as home pages; numbers are read as each viewer, so sharing never shows anyone data they may not see. Show the user the result at the returned URL.save_checkCreate (no id) or update a data check: a rule that finds records in a data source that need fixing. It runs right away as you and returns how many records it found plus a sample, so you can tune it before showing the team.save_data_sourceRegister (or update, if you own it) a named data source for home pages, boards, alerts and data checks: ${LARK ? 'a Lark Base table (url), ' : ''}rows served by a hub app (app + path, see "Data apps" in the instructions), or something read through a data connection: an item (connection + item, e.g. a Metabase question) or a read-only SQL query (connection + database + sql: one SELECT, nothing that writes). Anyone may add those for themselves: only they and admins see it until an admin shares it (audience). The hub reads it once to check it.save_homepageSave a home page layout after the user approved the preview.save_resourceAdmin only. Create (no id) or update a link in a resources group: a Lark doc/wiki URL for a policy or SOP, or brand material.save_resource_groupAdmin only. Create (no id) or update a group on the resources page, e.g. "HR policies" under section policies.search_lark_docsSearches Lark documents and wiki pages by keyword with the user's own Lark access (only what they may open), most relevant first: title, type, link, a matching snippet, owner and when it changed. Use it to find a document by name or topic, then read_lark_doc with its link. The first time, the user is asked once to allow searching.send_feedbackTell the owner of an app or Skill about a problem or wish, as the user. Only after the user has seen and agreed to the exact text. The owner gets a message and the user is told when it is handled.send_lark_messageSends a Lark message, and optionally a file, as the user (colleagues see it from them), only if the user turned this on (Me page, Lark data card). Every message ends with a line saying it was sent by the user's AI twin. Call with to, text and/or file. If your app can show the user a question, the hub asks them there and sends once they accept (the result says what happened). Otherwise you get a preview and a send_code: show the user exactly who gets what; only after they agree, call again with only send_code (copied from the preview result, valid 10 minutes) and that exact message is sent. Where the hub sends the user the preview as a card in Lark, they may send it there instead; then calling with the send_code says so, and nothing is sent twice. Calling with to/text again never sends; it only repeats the preview. Never send anything the user has not seen. If the user turned off confirming on their Me page, the first call sends at once (the result says so): only call it when they asked for that message, and tell them afterwards what went to whom. Up to 10 colleagues. A file (at most 30 MB): if you can run commands, create_upload with purpose "file", upload it with the command it gives, then pass file {upload_id, name}. On a platform that cannot run commands, the platform may put the attached file in as file {name, mime_type, data} (data: the file in base64); never write data yourself. Pictures (up to 10 MB) are sent as images that show in the chat. For formatting (bold, lists, links, code), write the text in Markdown and pass format "markdown"; Lark shows it as rich text.set_app_accessChange who can open your app. members replaces the member list when given.set_app_envSet (or delete with null) environment variables for a container app, stored encrypted. Restarts the app to apply.set_app_larkDeclare which Lark Base tables or spreadsheets an app may use (read or write), whom it may notify through the hub bot, whether it may save email drafts in the person's mailbox and create Lark documents. Each colleague agrees once before the app can act as them; changing the declaration asks again. A Base made with create_lark_base becomes the app's and is shared with whoever may open it. Send empty lists to remove it.set_app_runningStop or start your app without deleting it.set_collaboratorsColleagues who look after an app or Skill with its owner: they can publish new versions, change the listing, access and env, and handle feedback; deleting, choosing collaborators and handing it over stay with the owner (and admins). Added people get a Lark message. Call with neither add nor remove to see the list. Anyone can remove themselves.set_cultureAdmin only. Set the company mission, vision and/or values shown on the resources page. Give every hub language.set_data_source_audienceAdmins: who besides admins may see a data source read through a data connection (everyone in the company, chosen colleagues, departments). Nothing = admins only. Lark tables follow Lark access and app data follows who may open the app instead.set_data_source_descriptionWrite what a data source counts, per hub language (whoever registered it, or an admin). Pass null to go back to the description from the other system (e.g. the Metabase question's).setup_twinCreates the AI twin's memory in the user's own Lark, once: a Base (memories, shadow predictions, corrections) and two documents ("who I am", "how I reply"). Later calls return the links. Needs the user to have turned on the AI twin on their Me page.share_boardShare one of the user's own boards (scope "me") with the company, colleagues (email or name) or departments, replacing whom it was shared with; {} makes it private again. They see it on their Data page with every number read as themselves; a module on a data source only the user may read (e.g. one they registered through a data connection) stays hidden for them until an admin shares that source.submit_backtestYour answers to a backtest from get_backtest: for every case, what you predict the user would do acting with documents A and with documents B. The hub, which alone knows which is the change, scores both against what the user actually did; the change goes on (applying by itself when small, else to the user with the result) only if it does better by more than noise.suggest_twin_doc_changeProposes a new version of one of the twin's documents ("profile": who the user is; "style": how they reply), as the whole new text in Markdown (at most 2000 characters; people and chats by name, never ids), with the reason. The first version waits for the user. After that it starts a blind backtest, answered by a fresh session (get_backtest, submit_backtest), never the one that wrote the change; only a candidate that does better goes on, a small one applying by itself (the user can undo it), a bigger one waiting for the user with the result. At most two backtests per document a day. You cannot edit these documents directly.transfer_ownershipHand an app or Skill you own to a colleague, who becomes its owner; you stay on as a collaborator. Confirm with the user first.twin_contextRead before every prediction: the twin's "who I am" and "how I reply" documents, and a one-line index of the memories about this colleague or chat (and about the user in general) that hold today, plus the level (shadow). Details with recall_memory.twin_guideHow to run the user's AI twin (cold start, patrol, reflection, morning prep, guardrails), with its progress so far and the step to take next. Call it at the start of every session in which you act as the user's AI twin / 分身 or keep an eye on their Lark messages: the twin's state lives in the hub and the user's Lark, not in your conversation.twin_settingsWhich group chats the twin looks at, when the user asks to change it: group_mode "mentions" (only messages that @mention them, plus watched groups; the default) or "all"; watch / unwatch group chat_ids (find_lark_chat finds them). Direct chats are always included.update_appChange the listing text (per language), name, description or icon of your app, or hide the 「feedback」 button the hub adds inside it.update_app_requestAct on an app request (see its can). take: start building it. decline: say no to an invitation. release: give it back. invite (user): ask a colleague. to_pool: open it to everyone. close (reason): no longer needed. edit (title/body/due). me_too (note): the user needs it too; not_me undoes it. deliver (app): it became this app (publish_app with request_id does it for you). The people concerned are told in Lark, so confirm with the user first.update_skillChange the market listing of a Skill you published: per-language name/description, icon, the optional related app, or hide it (listed=false). Does not change the Skill content.upload_lark_filePuts a file in Lark as the user (they own it) and returns its link, e.g. an HTML page, which Lark shows as a web page, or a PDF. Without parent it goes to the user's own space; parent can be a wiki page (the file becomes a page under it and takes its sharing) or a Drive folder. At most 20 MB. For text that people will edit or comment on, create_lark_doc is better. If you can run commands, create_upload with purpose "file", upload it with the command it gives, then pass file {upload_id, name}. On a platform that cannot run commands, the platform may put the attached file in as file {name, mime_type, data} (data: the file in base64); never write data yourself.whoamiWho the hub thinks you are, and the app domain.Security checks
6 checks have not been run yet.