Context Mesh skills

This feature is currently in Beta and should not be used in a production environment.

A skill is a single SKILL.md file, written in the Agent Skills format, that you attach to a Context Mesh MCP server. It packages task-specific instructions and reference material that an agent can pull in on demand. Unlike a tool, a skill doesn’t call an API. It’s read-only text served over MCP, and Context Mesh never executes it.

For example, a Travel Assistant MCP server exposes tools like listFlights. A skill on that server can describe the steps an agent should follow to search, compare, and book a flight using those tools.

Add skills to Context Mesh to serve a shared library of instructions to several agents. Every agent that connects to the MCP server can discover and read the same skills, so you maintain each procedure in one place instead of copying it into each agent’s configuration. When you update a skill, every agent connected to that server gets the new version.

Use a skill when an agent needs a multi-step procedure for combining the server’s tools, such as the order in which to call them or what to confirm with the user.

If an agent only needs to call an operation, the source’s tools already cover it, and you don’t need a skill.

Skills have the following properties:

  • A skill belongs to exactly one Context Mesh MCP server and can’t be shared with other servers. The skill name must be unique within its MCP server.
  • You submit the SKILL.md content inline, as the raw source type.
  • A skill is a single file. Context Mesh doesn’t support supporting files, scripts, or archive uploads.
  • Skills have no version history. To change a skill, update it.

Skill configuration

You can configure each skill with the following fields:

Field

Description

Required

Display name Skill name in the UI. Yes
Name Machine name. Context Mesh sets it from the name in the SKILL.md frontmatter, so you don’t enter it. It must be unique within the MCP server. Yes
Description A description of the skill, up to 1,024 characters. Yes
Source Where the skill content comes from. Set type to raw and put the full SKILL.md content in config.contents. Yes
Labels Key-value tags for filtering/searching across . Optional in the UI. The API requires this field, so send {} if you don’t want to add any labels. No

SKILL.md frontmatter

The SKILL.md content must begin with a YAML frontmatter block. Context Mesh validates the frontmatter when you create or update the skill, and rejects content that doesn’t meet these rules:

Field

Required

Rules

name Yes Lowercase letters, numbers, and hyphens only. Maximum 64 characters. Becomes the skill’s Name, which must be unique within the MCP server.
description Yes Non-empty. Maximum 1,024 characters.
license No License name or a reference to a bundled license file.
compatibility No Environment requirements for the skill. Maximum 500 characters.
metadata No Key-value pairs of strings.
allowed-tools No Space-separated list of pre-approved tools. The API returns this field as allowed_tools.

Skill status

After validation, the skill has one of the following statuses:

Status

Description

Valid The content passed validation and the skill is ready to be served.
Invalid The content failed validation. The validation_message field explains why.
Pending The content hasn’t been read and validated yet.

Skill changes and deployments

Creating, updating, or deleting a skill automatically triggers a new deployment of the MCP server. You don’t need to restart or redeploy the server yourself. Kong Operator picks up the change and redeploys the MCP server on its control plane with the current set of skills.

If you haven’t deployed the MCP server yet, no deployment happens. Kong Operator includes the skills the first time you deploy the MCP server.

How agents use skills

Context Mesh serves skills on the MCP server as MCP resources, and the MCP client discovers and reads them. Skills don’t appear in the server’s list of tools, and Context Mesh doesn’t add them to an agent’s context. The client does that in the following steps:

  1. The client calls resources/list and finds each skill as skill://SKILL_NAME/SKILL.md.
  2. The client calls resources/read on a skill entry to get the raw markdown.
  3. The client decides when and how to bring that content into the agent’s context.

The client application is responsible for all three steps. If your MCP client doesn’t support reading resources, the skills exist on the server, but your agent can’t use them.

Add a skill

Add a skill to give agents reusable instructions on the MCP server. You can add a skill before or after you deploy the server. If you’ve already deployed the server, adding the skill automatically triggers a new deployment. See Skill changes and deployments.

Write the skill in a SKILL.md file. The name in the frontmatter becomes the name of the skill, so you don’t send it separately. Context Mesh only uses the content, so the local file’s name doesn’t matter. The following example shows a valid skill:

---
name: flight-booking
description: Search, compare, and book flights with the Travel Assistant tools
---

# Flight booking

Use this skill when a user asks to find or book a flight.

1. Call `listFlights` with the origin, destination, and travel date.
1. Present the three cheapest options and ask the user to pick one.
1. Confirm the passenger details before booking.

The Context Mesh API uses /v1/context-interfaces for Context Mesh MCP servers. Wherever the endpoints refer to a context interface, that is a Context Mesh MCP server.

Manage skills

Use the following endpoints to review and change the skills on an MCP server. Updating or deleting a skill automatically triggers a new deployment.

Action

Endpoint

Notes

List skills GET List Skills Returns the skills attached to the MCP server.
Get a skill GET Get a Skill The response includes the parsed frontmatter, the status, and the validation_message if the skill is invalid. It never includes the skill content.
View skill content GET Get Skill Contents Returns a short-lived short-lived URL for the SKILL.md file.
Update a skill PATCH Update a Skill If you send source, it replaces the existing source and the content is validated again. The skill name changes to the name in the new frontmatter, and the update fails with a 409 error if another skill on the MCP server already uses that name. You can’t change the source type.
Delete a skill DELETE Delete a Skill Deletes the skill and its content.

The get, view content, update, and delete endpoints use the ID of the skill. These requests also use the INTERFACE_ID environment variable, which holds the ID of your MCP server. To get it, see Get the MCP and source IDs.

To get the skill ID, send a GET request to the List Skills endpoint. Find your skill in the response and copy its id:

curl -X GET "https://us.api.konghq.com/v1/context-interfaces/$INTERFACE_ID/skills" \
     --no-progress-meter --fail-with-body \
     -H "Authorization: Bearer $KONNECT_TOKEN" \
     | jq '.data[] | {display_name, name, id}'

Export the ID as an environment variable, replacing YOUR_SKILL_ID with the id you copied:

export SKILL_ID='YOUR_SKILL_ID'

For example, to change a skill’s display name without changing its content, send a PATCH request:

curl -X PATCH "https://us.api.konghq.com/v1/context-interfaces/$INTERFACE_ID/skills/$SKILL_ID" \
     --no-progress-meter --fail-with-body  \
     -H "Authorization: Bearer $KONNECT_TOKEN" \
     --json '{
       "display_name": "Flight Booking Guide"
     }'

FAQs

No. A skill belongs to exactly one Context Mesh MCP server. To use the same instructions on another server, create the skill again on that server.

No. A skill is a single SKILL.md file that you submit inline. Context Mesh doesn’t support supporting files, scripts, or archive uploads.

Context Mesh exposes skills as MCP resources, not tools. Clients discover them with resources/list, where each skill appears as skill://SKILL_NAME/SKILL.md, and read them with resources/read.

No. You create skills manually by submitting the SKILL.md content, and there is no version history. To change a skill, update it.

A 400 error means the request is invalid. Either the SKILL.md frontmatter is invalid, or the request includes a name field. Context Mesh takes the skill name from the name in the frontmatter, so don’t send it separately. A 409 error means the MCP server already has a skill with the same name in its frontmatter. Skill names must be unique within an MCP server.

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!